#[non_exhaustive]pub enum InterruptKind {
Untrusted,
OwnerApproval(OwnerApprovalRequest),
}Expand description
Who an interruption is waiting for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Untrusted
A check of a call made after the run read untrusted content (and, for interruptions saved before kinds existed, any interruption).
OwnerApproval(OwnerApprovalRequest)
The owner must approve the call.
Trait Implementations§
Source§impl Clone for InterruptKind
impl Clone for InterruptKind
Source§fn clone(&self) -> InterruptKind
fn clone(&self) -> InterruptKind
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 InterruptKind
impl Debug for InterruptKind
Source§impl Default for InterruptKind
impl Default for InterruptKind
Source§fn default() -> InterruptKind
fn default() -> InterruptKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InterruptKind
impl<'de> Deserialize<'de> for InterruptKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterruptKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterruptKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InterruptKind
impl PartialEq for InterruptKind
Source§impl Serialize for InterruptKind
impl Serialize for InterruptKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InterruptKind
Auto Trait Implementations§
impl Forget for InterruptKind
impl Freeze for InterruptKindwhere
*const u8 is !null: Freeze,
PhantomData<EffectKey>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const ApprovalCard is !null: Freeze,
PhantomData<ApprovalCard>: Freeze,
impl Move for InterruptKind
impl RefUnwindSafe for InterruptKind
impl Send for InterruptKind
impl Sync for InterruptKind
impl Unpin for InterruptKind
impl UnsafeUnpin for InterruptKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<EffectKey>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ApprovalCard is !null: UnsafeUnpin,
PhantomData<ApprovalCard>: UnsafeUnpin,
impl UnwindSafe for InterruptKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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