Trait kwap_msg::TryFromBytes
source ·
[−]pub trait TryFromBytes<T>: Sized {
type Error;
fn try_from_bytes<I: IntoIterator<Item = T>>(
bytes: I
) -> Result<Self, Self::Error>;
}
Expand description
Trait for converting a sequence of bytes into some data structure
Associated Types
Required methods
fn try_from_bytes<I: IntoIterator<Item = T>>(
bytes: I
) -> Result<Self, Self::Error>
fn try_from_bytes<I: IntoIterator<Item = T>>(
bytes: I
) -> Result<Self, Self::Error>
Try to convert from some sequence of bytes T
into Self