pub struct DriverApi { /* private fields */ }Implementations§
Source§impl DriverApi
impl DriverApi
Sourcepub fn attach(&self, fd: RawFd, id: u32, event: Event)
pub fn attach(&self, fd: RawFd, id: u32, event: Event)
Attach an fd to the driver.
fd must be attached to the driver before using register/unregister
methods.
Sourcepub fn attach_with_mode(&self, fd: RawFd, id: u32, event: Event, mode: PollMode)
pub fn attach_with_mode(&self, fd: RawFd, id: u32, event: Event, mode: PollMode)
Attach an fd to the driver with specific mode.
fd must be attached to the driver before using register/unregister
methods.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriverApi
impl !RefUnwindSafe for DriverApi
impl !Send for DriverApi
impl !Sync for DriverApi
impl Unpin for DriverApi
impl !UnwindSafe for DriverApi
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