pub struct PortListener { /* private fields */ }Expand description
An owned listener for port events.
This is created by PortListenerLocalBuilder and will receive events as long as it is alive.
When this gets dropped, the listener gets unregistered and no events will be received by it.
Trait Implementations§
Source§impl Drop for PortListener
impl Drop for PortListener
impl Listener for PortListener
Auto Trait Implementations§
impl Freeze for PortListener
impl !RefUnwindSafe for PortListener
impl !Send for PortListener
impl !Sync for PortListener
impl Unpin for PortListener
impl !UnwindSafe for PortListener
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