Struct bee_tangle::metadata::IndexId[][src]

pub struct IndexId(_, _);

A type used to associate two particular interesting Cone Root Indexes with a message in the Tangle, i.e. the Oldest Cone Root Index (OCRI), and the Youngest Cone Root Index (YCRI)

Implementations

impl IndexId[src]

pub fn new(index: MilestoneIndex, id: MessageId) -> Self[src]

Create a new IndexId.

pub fn index(&self) -> MilestoneIndex[src]

Get the milestone index of this IndexId.

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

Get the message ID of this IndexId.

pub fn set_index(&mut self, index: MilestoneIndex)[src]

Update this IndexId with a new milestone index.

Trait Implementations

impl Clone for IndexId[src]

impl Copy for IndexId[src]

impl Debug for IndexId[src]

impl Eq for IndexId[src]

impl Ord for IndexId[src]

impl Packable for IndexId[src]

type Error = IndexIdError

Associated error type.

impl PartialEq<IndexId> for IndexId[src]

impl PartialOrd<IndexId> for IndexId[src]

impl Serialize for IndexId[src]

Auto Trait Implementations

impl RefUnwindSafe for IndexId

impl Send for IndexId

impl Sync for IndexId

impl Unpin for IndexId

impl UnwindSafe for IndexId

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,