pub enum BindingLoadError {
PathNotFound {
path: String,
},
FileTooLarge {
path: String,
size: u64,
max: u64,
},
TooManyFiles {
path: String,
max: usize,
},
FileRead {
path: String,
source: Error,
},
YamlParse {
path: String,
source: Error,
},
MissingFields {
path: Option<String>,
module_id: Option<String>,
missing_fields: Vec<String>,
},
InvalidStructure {
path: Option<String>,
reason: String,
},
}Expand description
Errors produced by BindingLoader.
Variants§
PathNotFound
The path does not exist or cannot be stat’d.
FileTooLarge
A binding file exceeds the maximum allowed size.
TooManyFiles
The directory contains more binding files than the per-directory limit.
FileRead
Failure reading a binding file from disk.
YamlParse
The file content is not valid YAML.
MissingFields
A binding entry is missing or has an invalid value for one or more
required fields. Covers three cases: absent key, explicit null, and
wrong-type scalar (e.g. module_id: 42, target: true). All three
are treated as “required field not supplied” rather than silently
coerced to empty strings or zero values downstream.
InvalidStructure
The document structure is invalid (e.g. top-level is not a mapping,
or bindings is not a list).
Trait Implementations§
Source§impl Debug for BindingLoadError
impl Debug for BindingLoadError
Source§impl Display for BindingLoadError
impl Display for BindingLoadError
Source§impl Error for BindingLoadError
impl Error for BindingLoadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BindingLoadError
impl !RefUnwindSafe for BindingLoadError
impl Send for BindingLoadError
impl Sync for BindingLoadError
impl Unpin for BindingLoadError
impl UnsafeUnpin for BindingLoadError
impl !UnwindSafe for BindingLoadError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.