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§
fn request_from_json(&self, json: &str) -> Result<Box<dyn WorkerRequest>>
fn to_repr(&self) -> usize
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".