Trait splinter::network::dispatch::FromMessageBytes[][src]

pub trait FromMessageBytes: Any + Sized {
    fn from_message_bytes(message_bytes: &[u8]) -> Result<Self, DispatchError>;
}

Converts bytes into a concrete message instance

Required methods

fn from_message_bytes(message_bytes: &[u8]) -> Result<Self, DispatchError>[src]

Converts the given bytes into the target type

Errors

Any issues that occur during deserialization will result in a DispatchError.

Loading content...

Implementors

impl FromMessageBytes for RawBytes[src]

fn from_message_bytes(message_bytes: &[u8]) -> Result<Self, DispatchError>[src]

impl<M> FromMessageBytes for M where
    M: Message + Sized
[src]

fn from_message_bytes(message_bytes: &[u8]) -> Result<Self, DispatchError>[src]

Loading content...