#[repr(u8)]pub enum EscrowInstruction {
Show 17 variants
FundPayment = 0,
ReleasePayment = 1,
RefundPayment = 2,
ClosePayment = 3,
ExtendPaymentTTL = 4,
SubmitDelivery = 5,
ConfirmOracle = 6,
Initialize = 100,
UpdateAuthority = 101,
UpdateConfig = 102,
OpenEscrow = 103,
PauseEscrow = 104,
UpdateEscrowSettings = 105,
CloseEscrow = 106,
WithdrawFees = 107,
AcceptAuthority = 108,
CancelAuthorityProposal = 109,
}Variants§
FundPayment = 0
ReleasePayment = 1
RefundPayment = 2
ClosePayment = 3
ExtendPaymentTTL = 4
SubmitDelivery = 5
ConfirmOracle = 6
Initialize = 100
UpdateAuthority = 101
UpdateConfig = 102
OpenEscrow = 103
PauseEscrow = 104
UpdateEscrowSettings = 105
CloseEscrow = 106
WithdrawFees = 107
AcceptAuthority = 108
CancelAuthorityProposal = 109
Trait Implementations§
Source§impl Clone for EscrowInstruction
impl Clone for EscrowInstruction
Source§fn clone(&self) -> EscrowInstruction
fn clone(&self) -> EscrowInstruction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EscrowInstruction
impl Debug for EscrowInstruction
Source§impl PartialEq for EscrowInstruction
impl PartialEq for EscrowInstruction
Source§fn eq(&self, other: &EscrowInstruction) -> bool
fn eq(&self, other: &EscrowInstruction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for EscrowInstruction
impl TryFrom<u8> for EscrowInstruction
Source§type Error = TryFromPrimitiveError<EscrowInstruction>
type Error = TryFromPrimitiveError<EscrowInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for EscrowInstruction
impl TryFromPrimitive for EscrowInstruction
const NAME: &'static str = "EscrowInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<EscrowInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for EscrowInstruction
impl Eq for EscrowInstruction
impl StructuralPartialEq for EscrowInstruction
Auto Trait Implementations§
impl Freeze for EscrowInstruction
impl RefUnwindSafe for EscrowInstruction
impl Send for EscrowInstruction
impl Sync for EscrowInstruction
impl Unpin for EscrowInstruction
impl UnsafeUnpin for EscrowInstruction
impl UnwindSafe for EscrowInstruction
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
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 moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.