pub enum CapabilityResult<Role, Service>{
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: RoleExact submitted role value.
§
proxy: EstablishedRecipient<Service>Exact stable proxy capability.
The role exists but is not ready.
UnknownRole
No declared role equals the submitted value.
Fields
§
submitted: RoleExact 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> 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