runx-runtime
runx_runtime::approval
Structs §
LocalApprovalGateResolver §
pub struct runx_runtime::approval::LocalApprovalGateResolver { /* ... */ }
Implementations §
impl LocalApprovalGateResolver
new
fn new() -> Self#[must_use]request_approval
fn request_approval( self: &mut Self, host: &mut dyn Host, id: impl Into<String>, gate: ApprovalGate ) -> Result<ApprovalResolution, ApprovalError>Trait Implementations §
impl Borrow for LocalApprovalGateResolver
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for LocalApprovalGateResolver
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl Into for LocalApprovalGateResolver
into
fn into(self: Self) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for LocalApprovalGateResolver
from
fn from(t: T) -> TReturns the argument unchanged.
impl TryInto for LocalApprovalGateResolver
Error
try_into
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>impl TryFrom for LocalApprovalGateResolver
Error
try_from
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl Any for LocalApprovalGateResolver
type_id
fn type_id(self: &Self) -> TypeIdimpl Same for LocalApprovalGateResolver
Output
impl Debug for LocalApprovalGateResolver
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Default for LocalApprovalGateResolver
default
fn default() -> LocalApprovalGateResolverimpl Send for LocalApprovalGateResolver
impl Sync for LocalApprovalGateResolver
impl Freeze for LocalApprovalGateResolver
impl UnsafeUnpin for LocalApprovalGateResolver
impl Unpin for LocalApprovalGateResolver
impl UnwindSafe for LocalApprovalGateResolver
impl RefUnwindSafe for LocalApprovalGateResolver
Enums §
ApprovalError §
pub enum runx_runtime::approval::ApprovalError { /* ... */ }
Trait Implementations §
impl Borrow for ApprovalError
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for ApprovalError
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl Into for ApprovalError
into
fn into(self: Self) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for ApprovalError
from
fn from(t: T) -> TReturns the argument unchanged.
impl TryInto for ApprovalError
Error
try_into
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>impl TryFrom for ApprovalError
Error
try_from
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl Any for ApprovalError
type_id
fn type_id(self: &Self) -> TypeIdimpl ToString for ApprovalError
to_string
fn to_string(self: &Self) -> Stringimpl Same for ApprovalError
Output
impl Debug for ApprovalError
fmt
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Error for ApprovalError
source
fn source(self: &Self) -> ::core::option::Option<&dyn ::thiserror::__private18::Error + 'static>impl Display for ApprovalError
fmt
fn fmt(self: &Self, __formatter: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Resultimpl From for ApprovalError
from
fn from(source: RuntimeError) -> Selfimpl Send for ApprovalError
impl Sync for ApprovalError
impl Freeze for ApprovalError
impl UnsafeUnpin for ApprovalError
impl Unpin for ApprovalError
impl UnwindSafe for ApprovalError
impl RefUnwindSafe for ApprovalError
ApprovalResolution §
pub enum runx_runtime::approval::ApprovalResolution { /* ... */ }
Implementations §
impl ApprovalResolution
approved
fn approved(self: &Self) -> Option<bool>#[must_use]actor
fn actor(self: &Self) -> Option<&ResolutionResponseActor>#[must_use]idempotency_key
fn idempotency_key(self: &Self) -> &str#[must_use]Trait Implementations §
impl Borrow for ApprovalResolution
borrow
fn borrow(self: &Self) -> &Timpl BorrowMut for ApprovalResolution
borrow_mut
fn borrow_mut(self: &mut Self) -> &mut Timpl CloneToUninit for ApprovalResolution
clone_to_uninit
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)impl Into for ApprovalResolution
into
fn into(self: Self) -> UCalls U::from(self).
That is, this conversion is whatever the implementation of
chooses to do.From<T> for U
impl From for ApprovalResolution
from
fn from(t: T) -> TReturns the argument unchanged.