pub enum CreationError {
NullReference,
UlStringCreationError(String),
RustStringCreationError(FromUtf8Error),
CStringCreationError(NulError),
}
Expand description
Errors can occure when creating some of the structs.
Variants§
NullReference
Ultralight library returned null pointer, and couldn’t create the object.
UlStringCreationError(String)
Ultralight returned null pointer when trying to create an Ultralight string from a Rust string.
RustStringCreationError(FromUtf8Error)
Ultralight string contained invalid UTF-8, and couldn’t convert it to a valid Rust string.
CStringCreationError(NulError)
&str
contained a null byte, and couldn’t convert it to a valid C string without losing data.
Trait Implementations§
Source§impl Debug for CreationError
impl Debug for CreationError
Source§impl Display for CreationError
impl Display for CreationError
Source§impl Error for CreationError
impl Error for CreationError
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<FromUtf8Error> for CreationError
impl From<FromUtf8Error> for CreationError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreationError
impl RefUnwindSafe for CreationError
impl Send for CreationError
impl Sync for CreationError
impl Unpin for CreationError
impl UnwindSafe for CreationError
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