pub struct MesgId(_);Expand description
Unique messag identifier
Trait Implementations
sourceimpl BorrowMut<<MesgId as Wrapper>::Inner> for MesgId
impl BorrowMut<<MesgId as Wrapper>::Inner> for MesgId
sourcefn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Mutably borrows from an owned value. Read more
sourceimpl<Msg> CommitVerify<Msg, PrehashedProtocol> for MesgId where
Msg: AsRef<[u8]>,
impl<Msg> CommitVerify<Msg, PrehashedProtocol> for MesgId where
Msg: AsRef<[u8]>,
sourceimpl Ord for MesgId
impl Ord for MesgId
sourceimpl PartialOrd<MesgId> for MesgId
impl PartialOrd<MesgId> for MesgId
sourcefn partial_cmp(&self, other: &MesgId) -> Option<Ordering>
fn partial_cmp(&self, other: &MesgId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl StrictDecode for MesgId
impl StrictDecode for MesgId
sourcefn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given std::io::Read instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode Read more
sourceimpl StrictEncode for MesgId
impl StrictEncode for MesgId
sourcefn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given std::io::Write instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
sourceimpl Wrapper for MesgId
impl Wrapper for MesgId
sourcefn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
sourcefn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
sourcefn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner representation for the wrapper type Read more
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for MesgId
impl Eq for MesgId
impl StructuralEq for MesgId
impl StructuralPartialEq for MesgId
Auto Trait Implementations
impl RefUnwindSafe for MesgId
impl Send for MesgId
impl Sync for MesgId
impl Unpin for MesgId
impl UnwindSafe for MesgId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, U, T> TaggedHash<'a, T> for U where
U: Wrapper<Inner = Hash<T>>,
T: 'a + Tag,
impl<'a, U, T> TaggedHash<'a, T> for U where
U: Wrapper<Inner = Hash<T>>,
T: 'a + Tag,
sourcefn from_hash<X>(hash: X) -> Self where
X: Hash<Inner = [u8; 32]>,
fn from_hash<X>(hash: X) -> Self where
X: Hash<Inner = [u8; 32]>,
Constructs tagged hash out of other hash type. Read more
sourcefn from_slice(slice: &[u8]) -> Result<Self, Error>
fn from_slice(slice: &[u8]) -> Result<Self, Error>
Constructs tagged hash from byte slice. If slice length is not equal to
32 bytes, fails with Error::InvalidLength (this is just a
wrapper for sha256t::Hash::from_slice). Read more
sourcefn as_slice(&'a self) -> &'a [u8; 32]
fn as_slice(&'a self) -> &'a [u8; 32]
Returns a reference to 32-byte slice array representing internal hash data Read more