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