[−][src]Struct bp7::primary::PrimaryBlock
Fields
bundle_control_flags: BundleControlFlags
crc_type: CRCType
destination: EndpointID
source: EndpointID
report_to: EndpointID
creation_timestamp: CreationTimestamp
lifetime: LifetimeType
fragmentation_offset: FragOffsetType
total_data_length: TotalDataLengthType
Methods
impl PrimaryBlock
[src]
pub fn new() -> PrimaryBlock
[src]
pub fn has_fragmentation(&self) -> bool
[src]
pub fn validation_errors(&self) -> Option<Bp7ErrorList>
[src]
Trait Implementations
impl Block for PrimaryBlock
[src]
fn has_crc(&self) -> bool
[src]
fn crc(&self) -> ByteBuffer
[src]
fn set_crc_type(&mut self, crc_type: CRCType)
[src]
fn crc_type(&self) -> CRCType
[src]
fn set_crc(&mut self, crc: ByteBuffer)
[src]
fn to_cbor(&self) -> ByteBuffer
[src]
fn calculate_crc(&mut self)
[src]
fn check_crc(&self) -> bool
[src]
fn reset_crc(&mut self)
[src]
Reset crc field to an empty value
impl PartialEq<PrimaryBlock> for PrimaryBlock
[src]
fn eq(&self, other: &PrimaryBlock) -> bool
[src]
fn ne(&self, other: &PrimaryBlock) -> bool
[src]
impl Clone for PrimaryBlock
[src]
fn clone(&self) -> PrimaryBlock
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for PrimaryBlock
[src]
impl Debug for PrimaryBlock
[src]
impl Serialize for PrimaryBlock
[src]
impl<'de> Deserialize<'de> for PrimaryBlock
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for PrimaryBlock
impl Sync for PrimaryBlock
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,