[][src]Struct cjdns_ann::AnnouncementHeader

pub struct AnnouncementHeader {
    pub signature: String,
    pub pub_signing_key: String,
    pub snode_ip: CJDNS_IP6,
    pub version: u8,
    pub is_reset: bool,
    pub timestamp: u64,
}

Deserialized announcement message header.

As it was stated previously, header size is 120 bytes:

Rest data packed in 8 bytes and reserved for timestamp. Fields is_reset and version are encoded in first 4 bits from the right of the timestamp.

Fields

signature: Stringpub_signing_key: Stringsnode_ip: CJDNS_IP6version: u8is_reset: booltimestamp: u64

Trait Implementations

impl Clone for AnnouncementHeader[src]

impl Debug for AnnouncementHeader[src]

impl Eq for AnnouncementHeader[src]

impl PartialEq<AnnouncementHeader> for AnnouncementHeader[src]

impl StructuralEq for AnnouncementHeader[src]

impl StructuralPartialEq for AnnouncementHeader[src]

Auto Trait Implementations

impl RefUnwindSafe for AnnouncementHeader

impl Send for AnnouncementHeader

impl Sync for AnnouncementHeader

impl Unpin for AnnouncementHeader

impl UnwindSafe for AnnouncementHeader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.