pub struct Fd<'d> { /* private fields */ }Implementations§
Source§impl<'d> Fd<'d>
impl<'d> Fd<'d>
Sourcepub unsafe fn from_raw_slot(slot: FdSlot, driver: DriverRef<'d>) -> Self
pub unsafe fn from_raw_slot(slot: FdSlot, driver: DriverRef<'d>) -> Self
§Safety
slot must be reserved from driver and uniquely owned.
pub fn slot(&self) -> FdSlot
pub fn index(&self) -> u32
pub fn driver(&self) -> DriverRef<'d>
pub fn ready_handle(&self) -> ReadyHandle<'d>
Trait Implementations§
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Fd<'d>
impl<'d> !Send for Fd<'d>
impl<'d> !Sync for Fd<'d>
impl<'d> !UnwindSafe for Fd<'d>
impl<'d> Freeze for Fd<'d>
impl<'d> Unpin for Fd<'d>
impl<'d> UnsafeUnpin for Fd<'d>
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