pub enum ResourceMode {
Block,
Async,
}Expand description
WHICH FACE a resource’s engine impls wear — the async word, as a closed vocabulary.
Block / Async at the
declaration’s grain, and one word of the same lexicon source(async), handler(async) and
operator(async) are written in. What it reaches is one const SYNC on the emitted citizenship,
which the ELECTION’s emission reads to decide which of an engine’s two face pairs to bind.
An enum rather than a bool for the reason every closed vocabulary in this crate is one: the two
ends have names, and a field called sync reads as an answer to a question nobody asked at the
declaration.
Variants§
Block
The BLOCKING face — a bare declaration, and every builtin whose engine answers without a future.
Async
The AWAITED face — what the async word buys.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceMode
impl Clone for ResourceMode
impl Copy for ResourceMode
Source§impl Debug for ResourceMode
impl Debug for ResourceMode
Source§impl Default for ResourceMode
impl Default for ResourceMode
impl Eq for ResourceMode
Source§impl PartialEq for ResourceMode
impl PartialEq for ResourceMode
impl StructuralPartialEq for ResourceMode
Auto Trait Implementations§
impl Freeze for ResourceMode
impl RefUnwindSafe for ResourceMode
impl Send for ResourceMode
impl Sync for ResourceMode
impl Unpin for ResourceMode
impl UnsafeUnpin for ResourceMode
impl UnwindSafe for ResourceMode
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