Struct virtual_net::InterestGuard
source · pub struct InterestGuard { /* private fields */ }
Available on crate feature
host-net
only.Implementations§
source§impl InterestGuard
impl InterestGuard
pub fn new( selector: &Arc<Selector>, handler: Box<dyn InterestHandler + Sync + Send>, 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 + Sync + Send>, ) -> Result<(), Box<dyn InterestHandler + Sync + Send>>
pub fn interest(&mut self, interest: InterestType)
Trait Implementations§
source§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§
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