Skip to main content

PlatformT

Trait PlatformT 

Source
pub trait PlatformT:
    DeserializeOwned
    + Debug
    + Clone
    + Copy
    + Hash
    + Eq
    + PartialEq
    + Send
    + Sync
    + Unpin
    + 'static
    + IntoEnumIterator {
    // Required methods
    fn request_from_json(&self, json: &str) -> Result<Box<dyn WorkerRequest>>;
    fn to_repr(&self) -> usize;
    fn from_repr(repr: usize) -> Self;
}

Required Methods§

Source

fn request_from_json(&self, json: &str) -> Result<Box<dyn WorkerRequest>>

Source

fn to_repr(&self) -> usize

Source

fn from_repr(repr: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§