[][src]Struct bp7::primary::PrimaryBlockBuilder

pub struct PrimaryBlockBuilder { /* fields omitted */ }

Builder for PrimaryBlock.

Methods

impl PrimaryBlockBuilder[src]

pub fn version(&mut self, value: DtnVersionType) -> &mut Self[src]

pub fn bundle_control_flags(&mut self, value: BundleControlFlags) -> &mut Self[src]

pub fn crc_type(&mut self, value: CRCType) -> &mut Self[src]

pub fn destination(&mut self, value: EndpointID) -> &mut Self[src]

pub fn source(&mut self, value: EndpointID) -> &mut Self[src]

pub fn report_to(&mut self, value: EndpointID) -> &mut Self[src]

pub fn creation_timestamp(&mut self, value: CreationTimestamp) -> &mut Self[src]

pub fn lifetime(&mut self, value: LifetimeType) -> &mut Self[src]

pub fn fragmentation_offset(&mut self, value: FragOffsetType) -> &mut Self[src]

pub fn total_data_length(&mut self, value: TotalDataLengthType) -> &mut Self[src]

pub fn crc(&mut self, value: ByteBuffer) -> &mut Self[src]

pub fn build(&self) -> Result<PrimaryBlock, String>[src]

Builds a new PrimaryBlock.

Errors

If a required field has not been initialized.

Trait Implementations

impl Default for PrimaryBlockBuilder[src]

impl Clone for PrimaryBlockBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

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.

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

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

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