pub struct RuntimeCapabilities { /* private fields */ }Expand description
Capabilities exposed by a selected runtime configuration.
Implementations§
Source§impl RuntimeCapabilities
impl RuntimeCapabilities
Sourcepub const fn background_threads(self) -> bool
pub const fn background_threads(self) -> bool
Returns whether the runtime can spawn background threads.
Sourcepub const fn cooperative_tasks(self) -> bool
pub const fn cooperative_tasks(self) -> bool
Returns whether the runtime can cooperatively run maintenance tasks.
Sourcepub const fn blocking_adapter(self) -> bool
pub const fn blocking_adapter(self) -> bool
Returns whether the runtime can adapt blocking storage work.
Sourcepub const fn cancellation_tokens(self) -> bool
pub const fn cancellation_tokens(self) -> bool
Returns whether cancellation tokens are supported.
Sourcepub const fn platform_async_io(self) -> bool
pub const fn platform_async_io(self) -> bool
Returns whether at least one Trine storage operation uses platform async I/O.
Trait Implementations§
Source§impl Clone for RuntimeCapabilities
impl Clone for RuntimeCapabilities
Source§fn clone(&self) -> RuntimeCapabilities
fn clone(&self) -> RuntimeCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeCapabilities
impl Debug for RuntimeCapabilities
Source§impl PartialEq for RuntimeCapabilities
impl PartialEq for RuntimeCapabilities
Source§fn eq(&self, other: &RuntimeCapabilities) -> bool
fn eq(&self, other: &RuntimeCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RuntimeCapabilities
impl Eq for RuntimeCapabilities
impl StructuralPartialEq for RuntimeCapabilities
Auto Trait Implementations§
impl Freeze for RuntimeCapabilities
impl RefUnwindSafe for RuntimeCapabilities
impl Send for RuntimeCapabilities
impl Sync for RuntimeCapabilities
impl Unpin for RuntimeCapabilities
impl UnsafeUnpin for RuntimeCapabilities
impl UnwindSafe for RuntimeCapabilities
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