pub struct JsonFfiFormat;Expand description
A JSON serialisation format implementation used in the FFI calls. Uses serde_json.
Trait Implementations§
Source§impl Debug for JsonFfiFormat
impl Debug for JsonFfiFormat
Source§impl FfiFormat for JsonFfiFormat
impl FfiFormat for JsonFfiFormat
type Error = Error
Source§fn serialize<T: Serialize>(
buffer: &mut Vec<u8>,
value: &T,
) -> Result<(), Self::Error>
fn serialize<T: Serialize>( buffer: &mut Vec<u8>, value: &T, ) -> Result<(), Self::Error>
Serialize an instance of
T into the provided growable byte buffer. Read moreSource§fn deserialize<'de, T: Deserialize<'de>>(
bytes: &'de [u8],
) -> Result<T, Self::Error>
fn deserialize<'de, T: Deserialize<'de>>( bytes: &'de [u8], ) -> Result<T, Self::Error>
Deserialize an instance of
T from the provided byte slice. Read moreAuto Trait Implementations§
impl Freeze for JsonFfiFormat
impl RefUnwindSafe for JsonFfiFormat
impl Send for JsonFfiFormat
impl Sync for JsonFfiFormat
impl Unpin for JsonFfiFormat
impl UnsafeUnpin for JsonFfiFormat
impl UnwindSafe for JsonFfiFormat
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