pub struct ManagedSerializer<M>where
M: ManagedTypeApi + ErrorApi + 'static,{ /* private fields */ }
Implementations§
Source§impl<M> ManagedSerializer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedSerializer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
pub fn new() -> Self
pub fn top_encode_to_managed_buffer<T: TopEncode>( &self, value: &T, ) -> ManagedBuffer<M>
pub fn top_encode_to_boxed_bytes<T: TopEncode>(&self, value: &T) -> BoxedBytes
pub fn top_decode_from_managed_buffer<T: TopDecode>( &self, buffer: &ManagedBuffer<M>, ) -> T
pub fn top_decode_from_managed_buffer_custom_message<T: TopDecode>( &self, buffer: &ManagedBuffer<M>, error_message: &'static str, ) -> T
pub fn top_decode_from_byte_slice<T: TopDecode>(&self, slice: &[u8]) -> T
Trait Implementations§
Source§impl<M> Default for ManagedSerializer<M>
impl<M> Default for ManagedSerializer<M>
Source§fn default() -> ManagedSerializer<M>
fn default() -> ManagedSerializer<M>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<M> Freeze for ManagedSerializer<M>
impl<M> RefUnwindSafe for ManagedSerializer<M>where
M: RefUnwindSafe,
impl<M> Send for ManagedSerializer<M>where
M: Send,
impl<M> Sync for ManagedSerializer<M>where
M: Sync,
impl<M> Unpin for ManagedSerializer<M>where
M: Unpin,
impl<M> UnwindSafe for ManagedSerializer<M>where
M: UnwindSafe,
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