#[non_exhaustive]pub enum UpgradeFromPathError {
Io {
path: PathBuf,
source: Error,
},
UnknownFormat {
path: PathBuf,
extension: Option<String>,
},
Upgrade(UpgradeError),
}Expand description
Errors returned by upgrade_from_sbol2_path.
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.
Io
Failed to read the file at the given path.
UnknownFormat
The path’s extension did not match any supported RDF serialization.
Upgrade(UpgradeError)
The file was loaded but the upgrade itself failed.
Trait Implementations§
Source§impl Debug for UpgradeFromPathError
impl Debug for UpgradeFromPathError
Source§impl Display for UpgradeFromPathError
impl Display for UpgradeFromPathError
Source§impl Error for UpgradeFromPathError
impl Error for UpgradeFromPathError
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 !RefUnwindSafe for UpgradeFromPathError
impl !UnwindSafe for UpgradeFromPathError
impl Freeze for UpgradeFromPathError
impl Send for UpgradeFromPathError
impl Sync for UpgradeFromPathError
impl Unpin for UpgradeFromPathError
impl UnsafeUnpin for UpgradeFromPathError
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