pub struct LoadedFeature<T> {
pub state: FeatureState<T>,
pub record: Box<FeatureRecord>,
}Expand description
The full result of loading an optional feature section.
Returned by crate::FeatureLoader::load_feature so callers can access both the
strongly-typed config value and the metadata record in one call.
crate::FeatureRegistry uses the record to build the startup feature summary.
Fields§
§state: FeatureState<T>The feature state after applying all precedence rules:
env var > enabled = false TOML flag > section presence > absent.
record: Box<FeatureRecord>Metadata describing how the state was determined.
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for LoadedFeature<T>
impl<T> Freeze for LoadedFeature<T>where
FeatureState<T>: Freeze,
impl<T> RefUnwindSafe for LoadedFeature<T>where
FeatureState<T>: RefUnwindSafe,
impl<T> Send for LoadedFeature<T>where
FeatureState<T>: Send,
impl<T> Sync for LoadedFeature<T>where
FeatureState<T>: Sync,
impl<T> Unpin for LoadedFeature<T>where
FeatureState<T>: Unpin,
impl<T> UnsafeUnpin for LoadedFeature<T>where
FeatureState<T>: UnsafeUnpin,
impl<T> UnwindSafe for LoadedFeature<T>where
FeatureState<T>: UnwindSafe,
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