pub struct AsyncIo { /* private fields */ }Expand description
Cross-platform async I/O engine
Provides high-performance async I/O using the best available backend on each platform (epoll/kqueue/IOCP via tokio).
Implementations§
Source§impl AsyncIo
impl AsyncIo
Sourcepub fn new(config: AsyncIoConfig) -> Result<Arc<Self>>
pub fn new(config: AsyncIoConfig) -> Result<Arc<Self>>
Create a new async I/O engine
Sourcepub fn config(&self) -> &AsyncIoConfig
pub fn config(&self) -> &AsyncIoConfig
Get the configuration
Sourcepub fn stats(&self) -> &AsyncIoStats
pub fn stats(&self) -> &AsyncIoStats
Get statistics
Sourcepub fn has_capacity(&self) -> bool
pub fn has_capacity(&self) -> bool
Check if there’s capacity for more operations
Auto Trait Implementations§
impl Freeze for AsyncIo
impl RefUnwindSafe for AsyncIo
impl Send for AsyncIo
impl Sync for AsyncIo
impl Unpin for AsyncIo
impl UnwindSafe for AsyncIo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more