pub struct Serdery;Expand description
Serder factory for generating serder instances by protocol type
Implementations§
Source§impl Serdery
impl Serdery
Sourcepub fn reap(
&self,
ims: &[u8],
_genus: &str,
_gvrsn: &Versionage,
native: Option<bool>,
skip: Option<usize>,
) -> Result<Box<dyn Serder>, KERIError>
pub fn reap( &self, ims: &[u8], _genus: &str, _gvrsn: &Versionage, native: Option<bool>, skip: Option<usize>, ) -> Result<Box<dyn Serder>, KERIError>
Extract and return Serder implementation based on protocol type detected in message
§Arguments
ims- Serialized incoming message stream. Assumes start of stream is raw Serder.genus- CESR genus code from stream parser.gvrsn- Instance CESR genus code table version (Major, Minor)native- True means may be CESR native message so snuff instead of smell. False means not CESR native i.e JSON, CBOR, MGPK field map, so use smell.skip- Bytes to skip at front of ims. Useful for CESR native serialization.
§Returns
Box
Auto Trait Implementations§
impl Freeze for Serdery
impl RefUnwindSafe for Serdery
impl Send for Serdery
impl Sync for Serdery
impl Unpin for Serdery
impl UnsafeUnpin for Serdery
impl UnwindSafe for Serdery
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