pub struct Connector<'a> { /* private fields */ }
Expand description
A handle to a connector capability in the store.
A Connector
can be used to receive a channel from a client component.
Trait Implementations§
Source§impl<'a> CapabilityHandle<'a> for Connector<'a>
impl<'a> CapabilityHandle<'a> for Connector<'a>
fn from_store(store: &'a CapabilityStore, id: CapabilityId) -> Self
fn store(&self) -> &'a CapabilityStore
fn id(&self) -> CapabilityId
Source§async fn duplicate(&'a self) -> Result<Self, Error>
async fn duplicate(&'a self) -> Result<Self, Error>
Duplicates the capability referenced by this handle, returning a new
handle to the duplicated capability.
Auto Trait Implementations§
impl<'a> Freeze for Connector<'a>
impl<'a> !RefUnwindSafe for Connector<'a>
impl<'a> Send for Connector<'a>
impl<'a> Sync for Connector<'a>
impl<'a> Unpin for Connector<'a>
impl<'a> !UnwindSafe for Connector<'a>
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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