Skip to main content

ProxyInputFailure

Struct ProxyInputFailure 

Source
pub struct ProxyInputFailure<Role, Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
{ /* private fields */ }
Expand description

Complete replacement input returned by a rejecting StableProxy capability.

Implementations§

Source§

impl<Role, Worker, Plan> ProxyInputFailure<Role, Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,

Source

pub fn role(&self) -> &Role

Inspect the semantic role whose replacement input was rejected.

Source

pub const fn operation(&self) -> &ProxyOperation<Here, Worker, Plan>

Inspect the complete returned replacement operation.

Source

pub const fn reason(&self) -> ChildInputReason

Inspect the exact capability rejection.

Auto Trait Implementations§

§

impl<Role, Worker, Plan> Freeze for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Worker: Freeze, Plan: Freeze,

§

impl<Role, Worker, Plan> RefUnwindSafe for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Role: RefUnwindSafe, Worker: RefUnwindSafe, Plan: RefUnwindSafe,

§

impl<Role, Worker, Plan> Send for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Role: Sync + Send, Worker: Send,

§

impl<Role, Worker, Plan> Sync for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Role: Sync + Send, Worker: Sync, Plan: Sync,

§

impl<Role, Worker, Plan> Unpin for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Worker: Unpin, Plan: Unpin,

§

impl<Role, Worker, Plan> UnsafeUnpin for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Worker: UnsafeUnpin, Plan: UnsafeUnpin,

§

impl<Role, Worker, Plan> UnwindSafe for ProxyInputFailure<Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Role: RefUnwindSafe, Worker: UnwindSafe, Plan: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.