Struct CborEncoding
pub struct CborEncoding;Expand description
CBOR encoding via ciborium.
Trait Implementations§
§impl Clone for CborEncoding
impl Clone for CborEncoding
§fn clone(&self) -> CborEncoding
fn clone(&self) -> CborEncoding
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for CborEncoding
impl Debug for CborEncoding
§impl Default for CborEncoding
impl Default for CborEncoding
§fn default() -> CborEncoding
fn default() -> CborEncoding
Returns the “default value” for a type. Read more
§impl JournalEncoding for CborEncoding
impl JournalEncoding for CborEncoding
§fn encode(&self, event: &EngineEvent) -> Result<Vec<u8>, JournalError>
fn encode(&self, event: &EngineEvent) -> Result<Vec<u8>, JournalError>
Serialize an event to bytes.
§fn decode(&self, bytes: &[u8]) -> Result<EngineEvent, JournalError>
fn decode(&self, bytes: &[u8]) -> Result<EngineEvent, JournalError>
Deserialize an event from bytes.
impl Copy for CborEncoding
Auto Trait Implementations§
impl Freeze for CborEncoding
impl RefUnwindSafe for CborEncoding
impl Send for CborEncoding
impl Sync for CborEncoding
impl Unpin for CborEncoding
impl UnsafeUnpin for CborEncoding
impl UnwindSafe for CborEncoding
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)