Struct virtual_net::InterestHandlerWaker
pub struct InterestHandlerWaker {
handler: Arc<Mutex<Box<dyn InterestHandler + Send + Sync>>>,
interest: InterestType,
}
Fields§
§handler: Arc<Mutex<Box<dyn InterestHandler + Send + Sync>>>
§interest: InterestType
Implementations§
§impl InterestHandlerWaker
impl InterestHandlerWaker
pub fn wake_now(&self)
pub fn set_interest( self: &Arc<InterestHandlerWaker>, interest: InterestType, ) -> Arc<InterestHandlerWaker>
pub fn as_waker(self: &Arc<InterestHandlerWaker>) -> Waker
Trait Implementations§
§impl Clone for InterestHandlerWaker
impl Clone for InterestHandlerWaker
§fn clone(&self) -> InterestHandlerWaker
fn clone(&self) -> InterestHandlerWaker
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 InterestHandlerWaker
impl RefUnwindSafe for InterestHandlerWaker
impl Send for InterestHandlerWaker
impl Sync for InterestHandlerWaker
impl Unpin for InterestHandlerWaker
impl UnwindSafe for InterestHandlerWaker
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.