shared::utils::fragment_result_impl

Trait FragmentResultOperation

Source
pub trait FragmentResultOperation {
    // Required methods
    fn new(
        id: U8Data,
        resolution: Resolution,
        range: Range,
        pixels: PixelData,
    ) -> Self;
    fn serialize(&self) -> Result<String, Error>;
    fn deserialize(message: &str) -> Result<Self, Error>
       where Self: Sized;
}

Required Methods§

Source

fn new( id: U8Data, resolution: Resolution, range: Range, pixels: PixelData, ) -> Self

Source

fn serialize(&self) -> Result<String, Error>

Source

fn deserialize(message: &str) -> Result<Self, Error>
where Self: Sized,

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§