pub enum SuiCommandMaturity {
Working,
Partial,
Stub,
Missing,
SuiNative,
}Expand description
Maturity gate for a sui subcommand — where it stands on the path to full nix replacement.
Variants§
Working
End-to-end working — operator can replace the nix invocation today without behavior loss.
Partial
Partial — accepts the args, produces correct output for the common path, but at least one known feature gap.
Stub
Stub — argparser accepts the invocation but returns a
NotImplemented typed error.
Missing
Missing — no argparser binding yet. Sui doesn’t accept the command at all.
SuiNative
Sui-native primitive — no nix equivalent. Counted separately so it doesn’t dilute the replacement metric.
Implementations§
Source§impl SuiCommandMaturity
impl SuiCommandMaturity
Sourcepub fn counts_as_replacing_nix(self) -> bool
pub fn counts_as_replacing_nix(self) -> bool
true if the command counts toward the replacement metric
(Working only — Partial doesn’t count because of the
known gap; SuiNative doesn’t count because there’s no
nix equivalent).
Sourcepub fn is_queued_task(self) -> bool
pub fn is_queued_task(self) -> bool
true if the command is a queued substrate task
(Partial / Stub / Missing).
Trait Implementations§
Source§impl Clone for SuiCommandMaturity
impl Clone for SuiCommandMaturity
Source§fn clone(&self) -> SuiCommandMaturity
fn clone(&self) -> SuiCommandMaturity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SuiCommandMaturity
Source§impl Debug for SuiCommandMaturity
impl Debug for SuiCommandMaturity
Source§impl<'de> Deserialize<'de> for SuiCommandMaturity
impl<'de> Deserialize<'de> for SuiCommandMaturity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SuiCommandMaturity
Source§impl Hash for SuiCommandMaturity
impl Hash for SuiCommandMaturity
Source§impl PartialEq for SuiCommandMaturity
impl PartialEq for SuiCommandMaturity
Source§impl Serialize for SuiCommandMaturity
impl Serialize for SuiCommandMaturity
impl StructuralPartialEq for SuiCommandMaturity
Auto Trait Implementations§
impl Freeze for SuiCommandMaturity
impl RefUnwindSafe for SuiCommandMaturity
impl Send for SuiCommandMaturity
impl Sync for SuiCommandMaturity
impl Unpin for SuiCommandMaturity
impl UnsafeUnpin for SuiCommandMaturity
impl UnwindSafe for SuiCommandMaturity
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.