pub(crate) struct Handle {
pub(crate) io: IoHandle,
pub(crate) signal: Option<Handle>,
pub(crate) time: Option<Handle>,
pub(crate) clock: Clock,
}Fields§
§io: IoHandleIO driver handle
signal: Option<Handle>Signal driver handle
time: Option<Handle>Time driver handle
clock: ClockSource of Instant::now()
Implementations§
Source§impl Handle
impl Handle
pub(crate) fn unpark(&self)
pub(crate) fn unpark_self(&self)
pub(crate) fn io(&self) -> &Handle
pub(crate) fn signal(&self) -> &Handle
Sourcepub(crate) fn time(&self) -> &Handle
pub(crate) fn time(&self) -> &Handle
Returns a reference to the time driver handle.
Panics if no time driver is present.
pub(crate) fn clock(&self) -> &Clock
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
impl UnwindSafe for Handle
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