Struct internet2::presentation::message::TypeId
source · pub struct TypeId(_);
Expand description
Message type field value
Trait Implementations§
source§impl LightningDecode for TypeId
impl LightningDecode for TypeId
source§fn lightning_decode<D: Read>(d: D) -> Result<Self, Error>
fn lightning_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.source§fn lightning_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn lightning_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
LightningDecode::lightning_decode
function.source§impl LightningEncode for TypeId
impl LightningEncode for TypeId
source§fn lightning_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn lightning_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.source§fn lightning_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn lightning_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using
LightningEncode::lightning_encode
function.source§impl Ord for TypeId
impl Ord for TypeId
source§impl PartialEq<TypeId> for TypeId
impl PartialEq<TypeId> for TypeId
source§impl PartialOrd<TypeId> for TypeId
impl PartialOrd<TypeId> for TypeId
1.0.0 · source§fn 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 moresource§impl Wrapper for TypeId
impl Wrapper for TypeId
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn 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
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type