pub enum BootResult {
Registered(ToolDef, Arc<dyn ToolHandler>),
SkippedDenied {
reason: &'static str,
},
SkippedDeferred {
phase: &'static str,
reason: &'static str,
},
SkippedFeatureGated {
feature: &'static str,
},
SkippedInfraMissing {
handle: &'static str,
},
UnknownName,
}Expand description
Outcome of a single per-tool boot attempt.
Variants§
Registered(ToolDef, Arc<dyn ToolHandler>)
Tool was constructed and is ready to register.
SkippedDenied
Tool name appears in EXPOSABLE_TOOLS but is hard-denied.
SkippedDeferred
Tool name appears but boot wiring is deferred.
SkippedFeatureGated
Tool name is feature-gated and the gate is off.
SkippedInfraMissing
Tool requires a handle that the boot context didn’t carry.
UnknownName
Tool name is not in EXPOSABLE_TOOLS at all.
Implementations§
Source§impl BootResult
impl BootResult
pub fn skip_reason(&self) -> &'static str
Auto Trait Implementations§
impl !RefUnwindSafe for BootResult
impl !UnwindSafe for BootResult
impl Freeze for BootResult
impl Send for BootResult
impl Sync for BootResult
impl Unpin for BootResult
impl UnsafeUnpin for BootResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more