pub struct Command {
pub id: u32,
pub name: &'static str,
pub request: Option<&'static StructDef>,
pub response: Option<&'static StructDef>,
pub timed: bool,
}Expand description
A command a server accepts.
Fields§
§id: u32Command id.
name: &'static strIDL name, UpperCamelCase.
request: Option<&'static StructDef>The request’s fields, or None for a command without any.
response: Option<&'static StructDef>The response command’s fields, or None when the server answers with
a status only.
timed: boolWhether the command must be invoked in a timed interaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.