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]
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 Packable for IndexId[src]
impl Packable for IndexId[src]type Error = IndexIdError
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 PartialOrd<IndexId> for IndexId[src]
impl PartialOrd<IndexId> for IndexId[src]Auto Trait Implementations
impl RefUnwindSafe for IndexId
impl RefUnwindSafe for IndexIdimpl UnwindSafe for IndexId
impl UnwindSafe for IndexId