usecrate::task::Error;usesuper::System;usecrate::task::Context;/// Trait for types that can be initialized from a system state and a given context
////// See [`crate::extract`] for more info.
pubtraitFromSystem: Sized {typeError:Into<Error>+'static;/// Try to initialize an extractor from the system state and context
fnfrom_system(state:&System, context:&Context)->Result<Self, Self::Error>;/// Return true if the extractor is scoped
////// The extractor is scoped if it only grants access to some
/// part of the system state rather than to the global state.
////// All extractors are scoped by default, but implementors can override this method to indicate
/// that the extractor is not scoped.
fnis_scoped()->bool{true}}