Struct bp7::primary::PrimaryBlockBuilder
source · [−]pub struct PrimaryBlockBuilder { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for PrimaryBlockBuilder
impl Clone for PrimaryBlockBuilder
sourcefn clone(&self) -> PrimaryBlockBuilder
fn clone(&self) -> PrimaryBlockBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrimaryBlockBuilder
impl Debug for PrimaryBlockBuilder
sourceimpl Default for PrimaryBlockBuilder
impl Default for PrimaryBlockBuilder
sourcefn default() -> PrimaryBlockBuilder
fn default() -> PrimaryBlockBuilder
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PrimaryBlockBuilder> for PrimaryBlockBuilder
impl PartialEq<PrimaryBlockBuilder> for PrimaryBlockBuilder
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PrimaryBlockBuilder) -> bool
fn ne(&self, other: &PrimaryBlockBuilder) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more