Skip to main content

CapabilityResult

Enum CapabilityResult 

Source
pub enum CapabilityResult<Role, Service>
where Service: Protocol, Service::Addr: EndpointAddress,
{ Ready { role: Role, proxy: EstablishedRecipient<Service>, }, Unavailable { role: Role, phase: UnavailablePhase, }, UnknownRole { submitted: Role, }, }
Expand description

Result of querying one submitted semantic role.

Variants§

§

Ready

The role is ready through its stable proxy.

Fields

§role: Role

Exact submitted role value.

§proxy: EstablishedRecipient<Service>

Exact stable proxy capability.

§

Unavailable

The role exists but is not ready.

Fields

§role: Role

Exact submitted role value.

§phase: UnavailablePhase

Current non-ready phase.

§

UnknownRole

No declared role equals the submitted value.

Fields

§submitted: Role

Exact submitted role returned unchanged.

Auto Trait Implementations§

§

impl<Role, Service> Freeze for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: Freeze, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: Freeze,

§

impl<Role, Service> RefUnwindSafe for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: RefUnwindSafe, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: RefUnwindSafe,

§

impl<Role, Service> Send for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: Send, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: Send,

§

impl<Role, Service> Sync for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: Sync, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: Sync,

§

impl<Role, Service> Unpin for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: Unpin, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: Unpin,

§

impl<Role, Service> UnsafeUnpin for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: UnsafeUnpin, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: UnsafeUnpin,

§

impl<Role, Service> UnwindSafe for CapabilityResult<Role, Service>
where <Service as Protocol>::Addr: Sized, Role: UnwindSafe, <<Service as Protocol>::Addr as EndpointAddress>::Established<Service>: 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.