pub enum ContextSource {
Env,
Baked,
}Expand description
Where the Context came from. Diagnostics only.
Variants§
Env
Built from env vars by init() / init_with_args /
Context::new, or by Context::default_from_env /
Context::from_env on a hosted build.
Baked
phase-427 W9 — built from the constants baked into this crate at
compile time (NROS_LOCATOR, NROS_DOMAIN_ID) by Context::baked,
which is what Context::default_from_env / Context::from_env
resolve to on a freestanding build. The entry macros
(nros::main!’s Zephyr arm, nros::zephyr_component_main!) produce
this one.
Trait Implementations§
Source§impl Clone for ContextSource
impl Clone for ContextSource
Source§fn clone(&self) -> ContextSource
fn clone(&self) -> ContextSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextSource
Source§impl Debug for ContextSource
impl Debug for ContextSource
impl Eq for ContextSource
Source§impl PartialEq for ContextSource
impl PartialEq for ContextSource
impl StructuralPartialEq for ContextSource
Auto Trait Implementations§
impl Freeze for ContextSource
impl RefUnwindSafe for ContextSource
impl Send for ContextSource
impl Sync for ContextSource
impl Unpin for ContextSource
impl UnsafeUnpin for ContextSource
impl UnwindSafe for ContextSource
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