Trait AdminObj

Source
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§

Source

fn create(owner: ObjectId, target: DeviceId, cmd: AdminCommand) -> Self

Source

fn target(&self) -> &DeviceId

Source

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.

Implementors§