#[repr(u8)]pub enum ProtobookInstruction {
Cancel = 0,
Close = 1,
Collect = 2,
Fill = 3,
Open = 4,
Redeem = 5,
}
Variants§
Trait Implementations§
Source§impl Clone for ProtobookInstruction
impl Clone for ProtobookInstruction
Source§fn clone(&self) -> ProtobookInstruction
fn clone(&self) -> ProtobookInstruction
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 ProtobookInstruction
impl Debug for ProtobookInstruction
Source§impl PartialEq for ProtobookInstruction
impl PartialEq for ProtobookInstruction
Source§impl TryFrom<u8> for ProtobookInstruction
impl TryFrom<u8> for ProtobookInstruction
Source§type Error = TryFromPrimitiveError<ProtobookInstruction>
type Error = TryFromPrimitiveError<ProtobookInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ProtobookInstruction
impl TryFromPrimitive for ProtobookInstruction
const NAME: &'static str = "ProtobookInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<ProtobookInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ProtobookInstruction
impl Eq for ProtobookInstruction
impl StructuralPartialEq for ProtobookInstruction
Auto Trait Implementations§
impl Freeze for ProtobookInstruction
impl RefUnwindSafe for ProtobookInstruction
impl Send for ProtobookInstruction
impl Sync for ProtobookInstruction
impl Unpin for ProtobookInstruction
impl UnwindSafe for ProtobookInstruction
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