pub enum DaemonSpec {
Disabled,
MaxFibers(u32),
}Expand description
Daemon-fiber capacity declaration. The on-disk surface accepts multiple YAML scalar shapes (bool / int / string) that all map into this two-variant enum.
Disabled is the default — the op runs on the cycle-pool
fiber inline like everything else. MaxFibers(N) opts in
to daemon-fiber dispatch with a per-op-name cap of N.
Variants§
Implementations§
Source§impl DaemonSpec
impl DaemonSpec
pub fn is_disabled(&self) -> bool
pub fn max_fibers(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for DaemonSpec
impl Clone for DaemonSpec
impl Copy for DaemonSpec
Source§impl Debug for DaemonSpec
impl Debug for DaemonSpec
Source§impl Default for DaemonSpec
impl Default for DaemonSpec
Source§impl<'de> Deserialize<'de> for DaemonSpec
impl<'de> Deserialize<'de> for DaemonSpec
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DaemonSpec
Source§impl PartialEq for DaemonSpec
impl PartialEq for DaemonSpec
Source§impl Serialize for DaemonSpec
impl Serialize for DaemonSpec
impl StructuralPartialEq for DaemonSpec
Auto Trait Implementations§
impl Freeze for DaemonSpec
impl RefUnwindSafe for DaemonSpec
impl Send for DaemonSpec
impl Sync for DaemonSpec
impl Unpin for DaemonSpec
impl UnsafeUnpin for DaemonSpec
impl UnwindSafe for DaemonSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.