Struct bee_message::prelude::Message [−][src]
pub struct Message { /* fields omitted */ }Represent the object that nodes gossip around the network.
Implementations
impl Message[src]
pub fn builder() -> MessageBuilder[src]
Creates a new MessageBuilder to construct an instance of a Message.
pub fn id(&self) -> (MessageId, Vec<u8>)[src]
Computes the identifier of the message.
pub fn network_id(&self) -> u64[src]
Returns the network id of a Message.
pub fn parents(&self) -> &Parents[src]
Returns the parents of a Message.
pub fn payload(&self) -> &Option<Payload>[src]
Returns the optional payload of a Message.
pub fn nonce(&self) -> u64[src]
Returns the nonce of a Message.
Trait Implementations
impl Clone for Message[src]
impl Debug for Message[src]
impl Eq for Message[src]
impl Packable for Message[src]
type Error = Error
Associated error type.
fn packed_len(&self) -> usize[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>ⓘ[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
impl PartialEq<Message> for Message[src]
impl StructuralEq for Message[src]
impl StructuralPartialEq for Message[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,