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 + 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§
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