Skip to main content

FromSbe

Trait FromSbe 

Source
pub trait FromSbe: Sized {
    // Required method
    fn from_sbe(bytes: &[u8]) -> Result<Self, SbeDecodeError>;
}

Required Methods§

Source

fn from_sbe(bytes: &[u8]) -> Result<Self, SbeDecodeError>

Decodes the value from an SBE message buffer.

§Errors

Returns an error if the header is invalid or the payload is malformed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> FromSbe for T
where T: MarketSbeMessage,