pub enum GraphvizError {
Show 18 variants
GraphCreationFailed,
NodeCreationFailed,
EdgeCreationFailed,
LayoutFailed,
RenderFailed,
InvalidString,
AttributeSetFailed,
AttributeGetFailed,
FreeLayoutFailed,
InvalidUtf8,
NullPointer(&'static str),
ContextCreationFailed,
InvalidFormat,
InvalidEngine,
InitializationFailed,
CleanupFailed,
SystemError(i32),
IoError(Error),
}
Expand description
Enumeration of all possible errors that can occur during GraphViz operations.
Variants§
GraphCreationFailed
Error creating a graph structure
NodeCreationFailed
Error creating a node structure
EdgeCreationFailed
Error creating an edge structure
LayoutFailed
Error during layout computation
RenderFailed
Error during rendering process
InvalidString
Invalid string for C FFI (contains null bytes)
AttributeSetFailed
Error setting an attribute
AttributeGetFailed
Error getting an attribute
FreeLayoutFailed
Error freeing layout resources
InvalidUtf8
String is not valid UTF-8
NullPointer(&'static str)
Null pointer encountered
ContextCreationFailed
Context creation failed
InvalidFormat
Invalid format specified
InvalidEngine
Invalid engine specified
InitializationFailed
Failed to initialize GraphViz
CleanupFailed
Failed to clean up GraphViz resources
SystemError(i32)
System error (with errno)
IoError(Error)
File I/O error
Trait Implementations§
Source§impl Debug for GraphvizError
impl Debug for GraphvizError
Source§impl Display for GraphvizError
impl Display for GraphvizError
Source§impl Error for GraphvizError
impl Error for GraphvizError
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<Error> for GraphvizError
impl From<Error> for GraphvizError
Source§impl From<NulError> for GraphvizError
impl From<NulError> for GraphvizError
Auto Trait Implementations§
impl Freeze for GraphvizError
impl !RefUnwindSafe for GraphvizError
impl Send for GraphvizError
impl Sync for GraphvizError
impl Unpin for GraphvizError
impl !UnwindSafe for GraphvizError
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