Struct hooks::CapabilityReceiver
source · pub struct CapabilityReceiver { /* private fields */ }
Expand description
A CapabilityReceiver
lets a CapabilityRequested
event subscriber take the
opportunity to monitor requests for the corresponding capability.
Implementations§
source§impl CapabilityReceiver
impl CapabilityReceiver
sourcepub fn new() -> (Self, Connector)
pub fn new() -> (Self, Connector)
Creates a CapabilityReceiver
that receives connection requests sent via the
[Sender
] capability.
Trait Implementations§
source§impl Clone for CapabilityReceiver
impl Clone for CapabilityReceiver
source§fn clone(&self) -> CapabilityReceiver
fn clone(&self) -> CapabilityReceiver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CapabilityReceiver
impl RefUnwindSafe for CapabilityReceiver
impl Send for CapabilityReceiver
impl Sync for CapabilityReceiver
impl Unpin for CapabilityReceiver
impl UnwindSafe for CapabilityReceiver
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)