pub struct IDLDeserialize<'de> { /* private fields */ }
Expand description
Use this struct to deserialize a sequence of Rust values (heterogeneous) from IDL binary message.
Implementations§
source§impl<'de> IDLDeserialize<'de>
impl<'de> IDLDeserialize<'de>
sourcepub fn new(bytes: &'de [u8]) -> Result<Self>
pub fn new(bytes: &'de [u8]) -> Result<Self>
Create a new deserializer with IDL binary message.
sourcepub fn new_with_config(bytes: &'de [u8], config: &DecoderConfig) -> Result<Self>
pub fn new_with_config(bytes: &'de [u8], config: &DecoderConfig) -> Result<Self>
Create a new deserializer with IDL binary message. The config is used to adjust some parameters in the deserializer.
sourcepub fn get_value<T>(&mut self) -> Result<T>where
T: Deserialize<'de> + CandidType,
pub fn get_value<T>(&mut self) -> Result<T>where
T: Deserialize<'de> + CandidType,
Deserialize one value from deserializer.
sourcepub fn get_config(&self) -> DecoderConfig
pub fn get_config(&self) -> DecoderConfig
Return the current DecoderConfig, mainly to extract the remaining quota.
Auto Trait Implementations§
impl<'de> Freeze for IDLDeserialize<'de>
impl<'de> RefUnwindSafe for IDLDeserialize<'de>
impl<'de> !Send for IDLDeserialize<'de>
impl<'de> !Sync for IDLDeserialize<'de>
impl<'de> Unpin for IDLDeserialize<'de>
impl<'de> UnwindSafe for IDLDeserialize<'de>
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