pub trait AdminObj {
// Required methods
fn create(owner: ObjectId, target: DeviceId, cmd: AdminCommand) -> Self;
fn target(&self) -> &DeviceId;
fn into_command(self) -> AdminCommand;
}
Required Methods§
fn create(owner: ObjectId, target: DeviceId, cmd: AdminCommand) -> Self
fn target(&self) -> &DeviceId
fn into_command(self) -> AdminCommand
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.