pub struct CapSet<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool>;Expand description
Type-level capability set.
Each boolean controls whether the capability is present:
SPAWN: spawn tasks/regionsTIME: timers, timeoutsRANDOM: entropy and random valuesIO: async I/O capabilityREMOTE: remote task spawning
Trait Implementations§
Source§impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Clone for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Clone for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
Source§impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Debug for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Debug for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
Source§impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Default for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Default for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Copy for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const REMOTE: bool> HasIo for CapSet<SPAWN, TIME, RANDOM, true, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const IO: bool, const REMOTE: bool> HasRandom for CapSet<SPAWN, TIME, true, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool> HasRemote for CapSet<SPAWN, TIME, RANDOM, IO, true>
impl<const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> HasSpawn for CapSet<true, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> HasTime for CapSet<SPAWN, true, RANDOM, IO, REMOTE>
impl<const S1: bool, const T1: bool, const R1: bool, const I1: bool, const RE1: bool, const S2: bool, const T2: bool, const R2: bool, const I2: bool, const RE2: bool> SubsetOf<CapSet<S2, T2, R2, I2, RE2>> for CapSet<S1, T1, R1, I1, RE1>where
(Bit<S1>, Bit<S2>): Le,
(Bit<T1>, Bit<T2>): Le,
(Bit<R1>, Bit<R2>): Le,
(Bit<I1>, Bit<I2>): Le,
(Bit<RE1>, Bit<RE2>): Le,
Auto Trait Implementations§
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Freeze for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> RefUnwindSafe for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Send for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Sync for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> Unpin for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> UnsafeUnpin for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
impl<const SPAWN: bool, const TIME: bool, const RANDOM: bool, const IO: bool, const REMOTE: bool> UnwindSafe for CapSet<SPAWN, TIME, RANDOM, IO, REMOTE>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).