#[non_exhaustive]pub enum FileSourceError {
InvalidDataContent(InvalidDataContentError),
UnreadPath {
path: PathBuf,
},
}Expand description
A FileSource could not be converted into provider
file data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDataContent(InvalidDataContentError)
The inline content is not valid base64 or a valid data URL.
UnreadPath
A local path must be read by the caller before conversion.
Trait Implementations§
Source§impl Debug for FileSourceError
impl Debug for FileSourceError
Source§impl Display for FileSourceError
impl Display for FileSourceError
Source§impl Error for FileSourceError
impl Error for FileSourceError
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()
Source§impl From<InvalidDataContentError> for FileSourceError
impl From<InvalidDataContentError> for FileSourceError
Source§fn from(source: InvalidDataContentError) -> Self
fn from(source: InvalidDataContentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FileSourceError
impl !UnwindSafe for FileSourceError
impl Freeze for FileSourceError
impl Send for FileSourceError
impl Sync for FileSourceError
impl Unpin for FileSourceError
impl UnsafeUnpin for FileSourceError
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