pub enum Error {
Show 17 variants
ReadDirectory {
path: PathBuf,
source: Error,
},
ReadDirectoryEntry {
path: PathBuf,
source: Error,
},
NoProfiles {
path: PathBuf,
},
OpenArchive {
path: PathBuf,
source: Error,
},
ReadArchive {
path: PathBuf,
source: ZipError,
},
ReadArchiveEntry {
path: PathBuf,
source: ZipError,
},
CreateTempDir(Error),
ExtractArchiveEntry {
path: PathBuf,
source: Error,
},
InvalidArchiveEntryPath {
archive_path: PathBuf,
entry_name: String,
},
DuplicateArchiveEntryPath {
archive_path: PathBuf,
entry_name: String,
},
UnsupportedInput(String),
Io(Error),
Xml(Error),
MissingSshProfile,
MissingBaseVoltageReferences {
count: usize,
examples: Vec<String>,
},
NoTopology,
TooManyObjects(String),
}Variants§
ReadDirectory
ReadDirectoryEntry
NoProfiles
OpenArchive
ReadArchive
ReadArchiveEntry
CreateTempDir(Error)
ExtractArchiveEntry
InvalidArchiveEntryPath
DuplicateArchiveEntryPath
UnsupportedInput(String)
Io(Error)
Xml(Error)
MissingSshProfile
MissingBaseVoltageReferences
NoTopology
TooManyObjects(String)
CIM-03: object store size cap exceeded (protects against >1 GB allocations from malformed or adversarial CIM files).
Trait Implementations§
Source§impl Debug for CgmesError
impl Debug for CgmesError
Source§impl Display for CgmesError
impl Display for CgmesError
Source§impl Error for CgmesError
impl Error for CgmesError
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<CgmesError> for CgmesDyError
impl From<CgmesError> for CgmesDyError
Source§fn from(source: CgmesError) -> Self
fn from(source: CgmesError) -> Self
Converts to this type from the input type.
Source§impl From<CgmesError> for IoError
impl From<CgmesError> for IoError
Source§fn from(source: CgmesError) -> Self
fn from(source: CgmesError) -> Self
Converts to this type from the input type.
Source§impl From<CgmesError> for LoadError
impl From<CgmesError> for LoadError
Source§impl From<Error> for CgmesError
impl From<Error> for CgmesError
Auto Trait Implementations§
impl Freeze for CgmesError
impl !RefUnwindSafe for CgmesError
impl Send for CgmesError
impl Sync for CgmesError
impl Unpin for CgmesError
impl UnsafeUnpin for CgmesError
impl !UnwindSafe for CgmesError
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more