Struct virtual_net::InterestGuard
pub struct InterestGuard {
selector: Weak<Selector>,
pub(crate) token: Token,
}
Fields§
§selector: Weak<Selector>
§token: Token
Implementations§
§impl InterestGuard
impl InterestGuard
pub fn new( selector: &Arc<Selector>, handler: Box<dyn InterestHandler + Send + Sync>, source: &mut dyn Source, interest: Interest, ) -> Result<InterestGuard, Error>
pub fn unregister(&mut self, source: &mut dyn Source) -> Result<(), Error>
pub fn replace_handler( &mut self, handler: Box<dyn InterestHandler + Send + Sync>, ) -> Result<(), Box<dyn InterestHandler + Send + Sync>>
pub fn interest(&mut self, interest: InterestType)
Trait Implementations§
§impl Debug for InterestGuard
impl Debug for InterestGuard
Auto Trait Implementations§
impl Freeze for InterestGuard
impl RefUnwindSafe for InterestGuard
impl Send for InterestGuard
impl Sync for InterestGuard
impl Unpin for InterestGuard
impl UnwindSafe for InterestGuard
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
§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.