pub enum Command {
SetState(SetState),
DeleteState(DeleteState),
GetState(GetState),
AddEvent(AddEvent),
AddReceiptData(AddReceiptData),
Sleep(Sleep),
ReturnInvalid(ReturnInvalid),
ReturnInternalError(ReturnInternalError),
}
Expand description
A command to be executed
Variants§
SetState(SetState)
DeleteState(DeleteState)
GetState(GetState)
AddEvent(AddEvent)
AddReceiptData(AddReceiptData)
Sleep(Sleep)
ReturnInvalid(ReturnInvalid)
ReturnInternalError(ReturnInternalError)
Trait Implementations§
source§impl FromBytes<Command> for Command
impl FromBytes<Command> for Command
fn from_bytes(bytes: &[u8]) -> Result<Command, ProtoConversionError>
source§impl FromNative<Command> for Command
impl FromNative<Command> for Command
fn from_native(command: Command) -> Result<Self, ProtoConversionError>
source§impl FromProto<Command> for Command
impl FromProto<Command> for Command
fn from_proto(command: Command) -> Result<Self, ProtoConversionError>
source§impl IntoBytes for Command
impl IntoBytes for Command
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
source§impl IntoNative<Command> for Command
impl IntoNative<Command> for Command
fn into_native(self) -> Result<T, ProtoConversionError>
source§impl IntoProto<Command> for Command
impl IntoProto<Command> for Command
fn into_proto(self) -> Result<T, ProtoConversionError>
Auto Trait Implementations§
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
§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more