pub struct Monitor { /* private fields */ }Expand description
Handle for a monitor created using ResourceArc<T>::monitor.
A monitor handle can be compared to other monitor handles. It is opaque and freely copyable. The monitor will not become inactive if this object is dropped.
Implementations§
Source§impl Monitor
impl Monitor
pub unsafe fn new(inner: ErlNifMonitor) -> Self
pub fn as_c_arg(&self) -> &ErlNifMonitor
pub fn from_c_arg(erl_nif_mon: ErlNifMonitor) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnwindSafe for Monitor
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