[−][src]Struct bp7::primary::PrimaryBlockBuilder
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]
Trait Implementations
impl Clone for PrimaryBlockBuilder
[src]
fn clone(&self) -> PrimaryBlockBuilder
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for PrimaryBlockBuilder
[src]
fn default() -> PrimaryBlockBuilder
[src]
Auto Trait Implementations
impl Send for PrimaryBlockBuilder
impl Sync for PrimaryBlockBuilder
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,