Struct bee_message::Message [−][src]
pub struct Message { /* fields omitted */ }
Represent the object that nodes gossip around the network.
Implementations
impl Message
[src]
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 Packable 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 StructuralEq for Message
[src]
impl StructuralEq for Message
[src]impl StructuralPartialEq for Message
[src]
impl StructuralPartialEq for Message
[src]Auto Trait Implementations
impl RefUnwindSafe for Message
impl RefUnwindSafe for Message
impl UnwindSafe for Message
impl UnwindSafe for Message