pub struct FILE_RUNTIME { /* private fields */ }Expand description
异步 文件IO 运行时,多线程,不需要主动推
Methods from Deref<Target = MultiTaskRuntime<()>>§
Sourcepub fn worker_len(&self) -> usize
pub fn worker_len(&self) -> usize
获取当前运行时的工作者数量
Sourcepub fn buffer_len(&self) -> usize
pub fn buffer_len(&self) -> usize
获取当前运行时缓冲区的任务数量,缓冲区的任务暂时没有分配给工作者
Sourcepub fn to_local_runtime(&self) -> LocalAsyncRuntime<O>
pub fn to_local_runtime(&self) -> LocalAsyncRuntime<O>
获取当前多线程异步运行时的本地异步运行时
Trait Implementations§
Source§impl Deref for FILE_RUNTIME
impl Deref for FILE_RUNTIME
Source§type Target = MultiTaskRuntime
type Target = MultiTaskRuntime
The resulting type after dereferencing.
Source§fn deref(&self) -> &MultiTaskRuntime<()>
fn deref(&self) -> &MultiTaskRuntime<()>
Dereferences the value.
impl LazyStatic for FILE_RUNTIME
Auto Trait Implementations§
impl Freeze for FILE_RUNTIME
impl RefUnwindSafe for FILE_RUNTIME
impl Send for FILE_RUNTIME
impl Sync for FILE_RUNTIME
impl Unpin for FILE_RUNTIME
impl UnwindSafe for FILE_RUNTIME
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
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