Struct bp7::primary::PrimaryBlockBuilder
source · pub struct PrimaryBlockBuilder { /* private fields */ }
Implementations§
source§impl PrimaryBlockBuilder
impl PrimaryBlockBuilder
pub fn new() -> Self
pub fn bundle_control_flags(self, flags: BundleControlFlagsType) -> Self
pub fn crc(self, crc: CrcValue) -> Self
pub fn destination(self, dest: EndpointID) -> Self
pub fn source(self, source: EndpointID) -> Self
pub fn report_to(self, report_to: EndpointID) -> Self
pub fn creation_timestamp(self, creation_timestamp: CreationTimestamp) -> Self
pub fn lifetime(self, lifetime: Duration) -> Self
pub fn fragmentation_offset(self, offset: FragOffsetType) -> Self
pub fn total_data_length(self, length: TotalDataLengthType) -> Self
pub fn build(self) -> Result<PrimaryBlock, PrimaryBuilderError>
Trait Implementations§
source§impl Clone for PrimaryBlockBuilder
impl Clone for PrimaryBlockBuilder
source§fn clone(&self) -> PrimaryBlockBuilder
fn clone(&self) -> PrimaryBlockBuilder
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 PrimaryBlockBuilder
impl Debug for PrimaryBlockBuilder
source§impl Default for PrimaryBlockBuilder
impl Default for PrimaryBlockBuilder
source§fn default() -> PrimaryBlockBuilder
fn default() -> PrimaryBlockBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PrimaryBlockBuilder
impl PartialEq for PrimaryBlockBuilder
source§fn eq(&self, other: &PrimaryBlockBuilder) -> bool
fn eq(&self, other: &PrimaryBlockBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PrimaryBlockBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PrimaryBlockBuilder
impl Send for PrimaryBlockBuilder
impl Sync for PrimaryBlockBuilder
impl Unpin for PrimaryBlockBuilder
impl UnwindSafe for PrimaryBlockBuilder
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