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§
Sourcefn from_segment_frame(frame: &Frame) -> Result<Self, CommandError>
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.