Trait FromSegmentFrame

Source
pub trait FromSegmentFrame: Sized {
    // Required method
    fn from_segment_frame(frame: &Frame) -> Result<Self, CommandError>;
}
Expand description

Used to create a value from a Segment frame

Required Methods§

Source

fn from_segment_frame(frame: &Frame) -> Result<Self, CommandError>

Creates a new value from Segment frame

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.

Implementations on Foreign Types§

Source§

impl FromSegmentFrame for bool

Source§

impl FromSegmentFrame for f32

Source§

impl FromSegmentFrame for f64

Source§

impl FromSegmentFrame for i8

Source§

impl FromSegmentFrame for i16

Source§

impl FromSegmentFrame for i32

Source§

impl FromSegmentFrame for i64

Source§

impl FromSegmentFrame for u8

Source§

impl FromSegmentFrame for u16

Source§

impl FromSegmentFrame for u32

Source§

impl FromSegmentFrame for u64

Source§

impl FromSegmentFrame for String

Source§

impl FromSegmentFrame for Bytes

Source§

impl<K, V> FromSegmentFrame for HashMap<K, V>

Source§

impl<T: FromSegmentFrame> FromSegmentFrame for Option<T>

Source§

impl<T: FromSegmentFrame> FromSegmentFrame for Vec<T>

Implementors§