pub enum UnitCommand {}Expand description
A unit command is a command that does not take any arguments. Command arguments are always optional, which is why this type never needs to be instantiated and is therefore an empty enum.
Trait Implementations§
Source§impl Clone for UnitCommand
impl Clone for UnitCommand
Source§fn clone(&self) -> UnitCommand
fn clone(&self) -> UnitCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for UnitCommand
impl Command for UnitCommand
Source§fn commands() -> Vec<String>
fn commands() -> Vec<String>
Returns a vector of commands that can be executed by this server.
Source§fn serialize<T: Serializer>(&self, _: T) -> Result<T::Ok, T::Error>
fn serialize<T: Serializer>(&self, _: T) -> Result<T::Ok, T::Error>
This is beeing forwared to the
serde::Serialize::serialize implementation.Source§fn deserialize<'de, T: Deserializer<'de>>(
deserializer: T,
) -> Result<Self, T::Error>where
Self: Sized,
fn deserialize<'de, T: Deserializer<'de>>(
deserializer: T,
) -> Result<Self, T::Error>where
Self: Sized,
This is beeing forwared to the
serde::Deserialize::deserialize implementation.Source§impl Debug for UnitCommand
impl Debug for UnitCommand
Source§impl<'de> Deserialize<'de> for UnitCommand
impl<'de> Deserialize<'de> for UnitCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnitCommand
impl RefUnwindSafe for UnitCommand
impl Send for UnitCommand
impl Sync for UnitCommand
impl Unpin for UnitCommand
impl UnwindSafe for UnitCommand
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