pub struct KqueueBackend { /* private fields */ }Expand description
BSD/macOS kqueue-backed implementation of the Backend trait.
Trait Implementations§
Source§impl Backend for KqueueBackend
impl Backend for KqueueBackend
Source§fn new(config: BackendConfig) -> Result<Self, CrossioError>
fn new(config: BackendConfig) -> Result<Self, CrossioError>
Builds a new backend using the provided configuration knobs.
Source§fn register(
&self,
source: Self::RawSource,
token: Token,
interest: Interest,
) -> Result<(), CrossioError>
fn register( &self, source: Self::RawSource, token: Token, interest: Interest, ) -> Result<(), CrossioError>
Registers a source with the backend so future readiness changes are reported.
Source§fn reregister(
&self,
source: Self::RawSource,
token: Token,
interest: Interest,
) -> Result<(), CrossioError>
fn reregister( &self, source: Self::RawSource, token: Token, interest: Interest, ) -> Result<(), CrossioError>
Updates the interest mask associated with a previously registered source.
Source§fn deregister(&self, source: Self::RawSource) -> Result<(), CrossioError>
fn deregister(&self, source: Self::RawSource) -> Result<(), CrossioError>
Removes a source from the backend, cancelling any future readiness notifications.
Auto Trait Implementations§
impl Freeze for KqueueBackend
impl RefUnwindSafe for KqueueBackend
impl Send for KqueueBackend
impl Sync for KqueueBackend
impl Unpin for KqueueBackend
impl UnwindSafe for KqueueBackend
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