pub enum VclError {
String(String),
Str(&'static str),
CStr(&'static CStr),
WsOutOfMemory(NonZeroUsize),
Utf8Error(Utf8Error),
Box(Box<dyn Error>),
}Expand description
An Error describing all issues with the VCL module
This enum is used to describe all the possible errors that can happen when working with the VCL module, or converting between Rust and C types.
Variants§
String(String)
Create a new Error from a string
Str(&'static str)
Create a new Error from a string slice
CStr(&'static CStr)
Create a new VclError from a C string
WsOutOfMemory(NonZeroUsize)
In case Workspace allocation fails
Utf8Error(Utf8Error)
Create a new VclError from a UTF-8 error
Box(Box<dyn Error>)
Create a new VclError from a boxed error
Implementations§
Trait Implementations§
Source§impl Error for VclError
impl Error for VclError
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 Freeze for VclError
impl !RefUnwindSafe for VclError
impl !Send for VclError
impl !Sync for VclError
impl Unpin for VclError
impl !UnwindSafe for VclError
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