pub struct CertsCell {
pub certificates: Vec<Certificate>,
pub unused: Vec<u8>,
}Expand description
Relay certificates cell.
CERTS cells contain certificates used to authenticate the relay. They are sent during the link handshake after VERSIONS negotiation.
§Wire Format
Variable-size cell:
[ CircID (0) ][ 129 (CERTS) ][ Length ][ Cert Count (1) ][ Certificates... ]Each certificate is encoded as:
[ Type (1) ][ Length (2) ][ Certificate Data ]Fields§
§certificates: Vec<Certificate>List of certificates.
unused: Vec<u8>Unused trailing bytes.
Implementations§
Source§impl CertsCell
impl CertsCell
Trait Implementations§
impl StructuralPartialEq for CertsCell
Auto Trait Implementations§
impl Freeze for CertsCell
impl RefUnwindSafe for CertsCell
impl Send for CertsCell
impl Sync for CertsCell
impl Unpin for CertsCell
impl UnwindSafe for CertsCell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more