pub enum ConfigValueError {
PermissionDenied,
}Expand description
Get the current value of the config key.
The expected schema is a hint to the host what type of value is expected by the guest and can be used by the host to automatically migrate config values to fit the expected schema.
Only keys that are declared by the agent-type are allowed to be accessed. Trying to access an undeclared key will trap, unless the expected type is an option. In that case none is returned.
Getting a local key will get values defined as part of the current component revision + overrides declared during agent creation.
Getting a shared key will get the current value of the key in the environment.
Variants§
PermissionDenied
Trait Implementations§
Source§impl Clone for ConfigValueError
impl Clone for ConfigValueError
impl Copy for ConfigValueError
Source§impl Debug for ConfigValueError
impl Debug for ConfigValueError
Source§impl Display for ConfigValueError
impl Display for ConfigValueError
Source§impl Error for ConfigValueError
impl Error for ConfigValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConfigValueError
impl RefUnwindSafe for ConfigValueError
impl Send for ConfigValueError
impl Sync for ConfigValueError
impl Unpin for ConfigValueError
impl UnsafeUnpin for ConfigValueError
impl UnwindSafe for ConfigValueError
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