pub enum InputCommand {
PerformActions(PerformActions),
ReleaseActions(ReleaseActions),
SetFiles(SetFiles),
}Variants§
Implementations§
Source§impl InputCommand
impl InputCommand
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for InputCommand
impl Clone for InputCommand
Source§fn clone(&self) -> InputCommand
fn clone(&self) -> InputCommand
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 Debug for InputCommand
impl Debug for InputCommand
Source§impl<'de> Deserialize<'de> for InputCommand
impl<'de> Deserialize<'de> for InputCommand
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
Source§impl From<InputCommand> for Command
impl From<InputCommand> for Command
Source§fn from(v: InputCommand) -> Self
fn from(v: InputCommand) -> Self
Converts to this type from the input type.
Source§impl From<PerformActions> for InputCommand
impl From<PerformActions> for InputCommand
Source§fn from(v: PerformActions) -> Self
fn from(v: PerformActions) -> Self
Converts to this type from the input type.
Source§impl From<ReleaseActions> for InputCommand
impl From<ReleaseActions> for InputCommand
Source§fn from(v: ReleaseActions) -> Self
fn from(v: ReleaseActions) -> Self
Converts to this type from the input type.
Source§impl From<SetFiles> for InputCommand
impl From<SetFiles> for InputCommand
Source§impl PartialEq for InputCommand
impl PartialEq for InputCommand
Source§impl Serialize for InputCommand
impl Serialize for InputCommand
Source§impl TryFrom<Command> for InputCommand
impl TryFrom<Command> for InputCommand
Source§impl TryFrom<InputCommand> for PerformActions
impl TryFrom<InputCommand> for PerformActions
Source§type Error = InputCommand
type Error = InputCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: InputCommand,
) -> Result<Self, <PerformActions as TryFrom<InputCommand>>::Error>
fn try_from( e: InputCommand, ) -> Result<Self, <PerformActions as TryFrom<InputCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<InputCommand> for ReleaseActions
impl TryFrom<InputCommand> for ReleaseActions
Source§type Error = InputCommand
type Error = InputCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: InputCommand,
) -> Result<Self, <ReleaseActions as TryFrom<InputCommand>>::Error>
fn try_from( e: InputCommand, ) -> Result<Self, <ReleaseActions as TryFrom<InputCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<InputCommand> for SetFiles
impl TryFrom<InputCommand> for SetFiles
Source§type Error = InputCommand
type Error = InputCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: InputCommand,
) -> Result<Self, <SetFiles as TryFrom<InputCommand>>::Error>
fn try_from( e: InputCommand, ) -> Result<Self, <SetFiles as TryFrom<InputCommand>>::Error>
Performs the conversion.
impl StructuralPartialEq for InputCommand
Auto Trait Implementations§
impl Freeze for InputCommand
impl RefUnwindSafe for InputCommand
impl Send for InputCommand
impl Sync for InputCommand
impl Unpin for InputCommand
impl UnsafeUnpin for InputCommand
impl UnwindSafe for InputCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more