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

pub struct PrimaryBlockBuilder { /* fields omitted */ }

Builder for PrimaryBlock.

Methods

impl PrimaryBlockBuilder[src]

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

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

pub fn crc(self, value: CrcValue) -> Self[src]

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

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

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

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

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

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

pub fn total_data_length(self, value: TotalDataLengthType) -> 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]

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, 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,