Struct bee_message::MessageBuilder
source · [−]pub struct MessageBuilder<P: NonceProvider = Miner> { /* private fields */ }
Expand description
A builder to build a Message
.
Implementations
sourceimpl<P: NonceProvider> MessageBuilder<P>
impl<P: NonceProvider> MessageBuilder<P>
sourcepub fn with_network_id(self, network_id: u64) -> Self
pub fn with_network_id(self, network_id: u64) -> Self
Adds a network id to a MessageBuilder
.
sourcepub fn with_parents(self, parents: Parents) -> Self
pub fn with_parents(self, parents: Parents) -> Self
Adds parents to a MessageBuilder
.
sourcepub fn with_payload(self, payload: Payload) -> Self
pub fn with_payload(self, payload: Payload) -> Self
Adds a payload to a MessageBuilder
.
sourcepub fn with_nonce_provider(self, nonce_provider: P, target_score: f64) -> Self
pub fn with_nonce_provider(self, nonce_provider: P, target_score: f64) -> Self
Adds a nonce provider to a MessageBuilder
.
Trait Implementations
sourceimpl<P: NonceProvider> Default for MessageBuilder<P>
impl<P: NonceProvider> Default for MessageBuilder<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for MessageBuilder<P> where
P: RefUnwindSafe,
impl<P> Send for MessageBuilder<P> where
P: Send,
impl<P> Sync for MessageBuilder<P> where
P: Sync,
impl<P> Unpin for MessageBuilder<P> where
P: Unpin,
impl<P> UnwindSafe for MessageBuilder<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more