pub struct Command {
pub id: CommandId,
pub name: &'static str,
pub to_server: bool,
pub response: Option<CommandId>,
pub access: Access,
pub conform: Conform,
}Expand description
One command.
Fields§
§id: CommandIdIts id.
name: &'static strIts name in the specification — “OffWithEffect”.
to_server: boolWhether the client sends it to the server, or the reverse. A response command is
to_client, and a server’s accepted command list must not contain one.
response: Option<CommandId>The command that answers it, if the answer is not a bare status.
access: AccessThe privilege an invoke needs, and whether it must be Timed.
conform: ConformWhen the command may or must be present.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more