Enum bp7::canonical::CanonicalData
source · pub enum CanonicalData {
HopCount(u8, u8),
Data(ByteBuffer),
BundleAge(u64),
PreviousNode(EndpointID),
Unknown(ByteBuffer),
DecodingError,
}
Variants§
HopCount(u8, u8)
Data(ByteBuffer)
BundleAge(u64)
PreviousNode(EndpointID)
Unknown(ByteBuffer)
DecodingError
Implementations§
source§impl CanonicalData
impl CanonicalData
pub fn to_cbor(&self) -> ByteBuffer
Trait Implementations§
source§impl Clone for CanonicalData
impl Clone for CanonicalData
source§fn clone(&self) -> CanonicalData
fn clone(&self) -> CanonicalData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CanonicalData
impl Debug for CanonicalData
source§impl<'de> Deserialize<'de> for CanonicalData
impl<'de> Deserialize<'de> for CanonicalData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CanonicalData
impl PartialEq for CanonicalData
source§fn eq(&self, other: &CanonicalData) -> bool
fn eq(&self, other: &CanonicalData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CanonicalData
impl Serialize for CanonicalData
impl StructuralPartialEq for CanonicalData
Auto Trait Implementations§
impl RefUnwindSafe for CanonicalData
impl Send for CanonicalData
impl Sync for CanonicalData
impl Unpin for CanonicalData
impl UnwindSafe for CanonicalData
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