Struct bp7::bundle::BundleBuilder
source · [−]pub struct BundleBuilder { /* private fields */ }
Implementations
sourceimpl BundleBuilder
impl BundleBuilder
pub fn new() -> Self
pub fn primary(self, primary: PrimaryBlock) -> Self
pub fn canonicals(self, canonicals: Vec<CanonicalBlock>) -> Self
pub fn payload(self, payload: ByteBuffer) -> Self
pub fn build(self) -> Result<Bundle, BundleBuilderError>
Trait Implementations
sourceimpl Clone for BundleBuilder
impl Clone for BundleBuilder
sourcefn clone(&self) -> BundleBuilder
fn clone(&self) -> BundleBuilder
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 BundleBuilder
impl Debug for BundleBuilder
sourceimpl Default for BundleBuilder
impl Default for BundleBuilder
sourcefn default() -> BundleBuilder
fn default() -> BundleBuilder
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BundleBuilder> for BundleBuilder
impl PartialEq<BundleBuilder> for BundleBuilder
sourcefn eq(&self, other: &BundleBuilder) -> bool
fn eq(&self, other: &BundleBuilder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BundleBuilder) -> bool
fn ne(&self, other: &BundleBuilder) -> bool
This method tests for !=
.
impl StructuralPartialEq for BundleBuilder
Auto Trait Implementations
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnwindSafe for BundleBuilder
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