pub trait AnyClass:
Debug
+ Send
+ Sync {
// Required methods
fn name(&self) -> &str;
fn index(&self) -> usize;
fn add_dev(&self, name: &str) -> Result<Arc<dyn AnyDev>>;
}Expand description
A class of any model, which is how the server holds its classes.
Required Methods§
Sourcefn index(&self) -> usize
fn index(&self) -> usize
The rank of that class among the classes of its server, which is the order they
were made in and the order their devices are initialized in, see Server::sync.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".