pub enum Command {
ToServer(ToServerCommand),
ToClient(ToClientCommand),
}
Variants§
ToServer(ToServerCommand)
ToClient(ToClientCommand)
Trait Implementations§
Source§impl CommandProperties for Command
impl CommandProperties for Command
fn direction(&self) -> CommandDirection
fn default_channel(&self) -> ChannelId
fn default_reliability(&self) -> bool
fn command_name(&self) -> &'static str
Source§impl CommandRef for Command
impl CommandRef for Command
fn toserver_ref(&self) -> Option<&ToServerCommand>
fn toclient_ref(&self) -> Option<&ToClientCommand>
Source§impl Deserialize for Command
impl Deserialize for Command
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self::Output>
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin 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