pub trait OneshotObject {
// Required methods
fn name(&self) -> &str;
fn path(&self) -> &str;
fn size(&self) -> usize;
fn encodings(&self) -> &[Encoding];
}Expand description
An object that will be fetched from a OneshotSource.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".