Struct bee_message::milestone::Milestone[][src]

pub struct Milestone { /* fields omitted */ }

Defines a coordinator milestone.

Implementations

impl Milestone[src]

pub fn new(message_id: MessageId, timestamp: u64) -> Self[src]

Creates a new Milestone.

pub fn message_id(&self) -> &MessageId[src]

Returns the message id of a Milestone.

pub fn timestamp(&self) -> u64[src]

Returns the timestamp of a Milestone.

Trait Implementations

impl Clone for Milestone[src]

impl Debug for Milestone[src]

impl Eq for Milestone[src]

impl Packable for Milestone[src]

type Error = Error

Associated error type.

impl PartialEq<Milestone> for Milestone[src]

impl StructuralEq for Milestone[src]

impl StructuralPartialEq for Milestone[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.