[−][src]Struct cjdns_ann::AnnouncementHeader
Deserialized announcement message header.
As it was stated previously, header size is 120 bytes:
signature
takes first 64 bytes;pub_signing_key
takes 32 bytes after thesignature
;super_node_ip6
length is 16 bytes as it should be for cjdns IPv6 addresses.
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: String
pub_signing_key: String
snode_ip: CJDNS_IP6
version: u8
is_reset: bool
timestamp: u64
Trait Implementations
impl Clone for AnnouncementHeader
[src]
fn clone(&self) -> AnnouncementHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AnnouncementHeader
[src]
impl Eq for AnnouncementHeader
[src]
impl PartialEq<AnnouncementHeader> for AnnouncementHeader
[src]
fn eq(&self, other: &AnnouncementHeader) -> bool
[src]
fn ne(&self, other: &AnnouncementHeader) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,