pub struct MetadataRepr {
pub init: TypesRepr,
pub handle: TypesRepr,
pub reply: Option<u32>,
pub others: TypesRepr,
pub signal: Option<u32>,
pub state: TypesRepr,
pub registry: Vec<u8>,
}
Expand description
Metadata internal representation.
Fields§
§init: TypesRepr
Internal representation for Metadata::Init
type.
handle: TypesRepr
Internal representation for Metadata::Handle
type.
reply: Option<u32>
Internal representation for Metadata::Reply
type.
others: TypesRepr
Internal representation for Metadata::Others
type.
signal: Option<u32>
Internal representation for Metadata::Signal
type.
state: TypesRepr
Internal representation for Metadata::State
type.
registry: Vec<u8>
Encoded registry of types.
Implementations§
Source§impl MetadataRepr
impl MetadataRepr
Sourcepub fn from_bytes(data: impl AsRef<[u8]>) -> Result<Self, MetadataParseError>
pub fn from_bytes(data: impl AsRef<[u8]>) -> Result<Self, MetadataParseError>
Decode metadata from bytes using codec.
Trait Implementations§
Source§impl Debug for MetadataRepr
impl Debug for MetadataRepr
Source§impl Decode for MetadataRepr
impl Decode for MetadataRepr
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for MetadataRepr
impl Encode for MetadataRepr
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl PartialEq for MetadataRepr
impl PartialEq for MetadataRepr
impl EncodeLike for MetadataRepr
impl Eq for MetadataRepr
impl StructuralPartialEq for MetadataRepr
Auto Trait Implementations§
impl Freeze for MetadataRepr
impl RefUnwindSafe for MetadataRepr
impl Send for MetadataRepr
impl Sync for MetadataRepr
impl Unpin for MetadataRepr
impl UnwindSafe for MetadataRepr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more