pub struct ToolEnvironment {
pub config: Arc<Config>,
pub credentials: Arc<Credentials>,
pub search: Option<Service>,
pub config_file: Option<PathBuf>,
pub host: ToolHost,
}Expand description
What a board needs to build its tools: the loaded configuration and the credential sources, as the dashboards receive them.
Fields§
§config: Arc<Config>§credentials: Arc<Credentials>§search: Option<Service>§config_file: Option<PathBuf>The file config was read from, for a tool that edits its board’s
own section. None when the consumer has no file, as in tests.
host: ToolHostTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolEnvironment
impl !UnwindSafe for ToolEnvironment
impl Forget for ToolEnvironment
impl Freeze for ToolEnvironmentwhere
*const ArcInner<Config> is !null: Freeze,
PhantomData<ArcInner<Config>>: Freeze,
*const ArcInner<Credentials> is !null: Freeze,
PhantomData<ArcInner<Credentials>>: Freeze,
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for ToolEnvironment
impl Send for ToolEnvironment
impl Sync for ToolEnvironment
impl Unpin for ToolEnvironment
impl UnsafeUnpin for ToolEnvironmentwhere
*const ArcInner<Config> is !null: UnsafeUnpin,
PhantomData<ArcInner<Config>>: UnsafeUnpin,
*const ArcInner<Credentials> is !null: UnsafeUnpin,
PhantomData<ArcInner<Credentials>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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