pub enum AidokuError {
Unimplemented,
Message(String),
RequestError(RequestError),
HtmlError(HtmlError),
JsError(JsError),
CanvasError(CanvasError),
Utf8Error(Utf8Error),
DeserializeError,
}Expand description
An error passed back to the source runner.
Variants§
Unimplemented
This feature is unimplemented.
Message(String)
Pass a message back to the app.
RequestError(RequestError)
There was an error making a request.
HtmlError(HtmlError)
There was an error performing an HTML operation.
JsError(JsError)
There was an error performing a JavaScript operation.
CanvasError(CanvasError)
There was an error handling a canvas operation.
Utf8Error(Utf8Error)
There was an error handling UTF-8 data.
DeserializeError
Deserialization error.
Implementations§
Trait Implementations§
Source§impl Clone for AidokuError
impl Clone for AidokuError
Source§fn clone(&self) -> AidokuError
fn clone(&self) -> AidokuError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AidokuError
impl Debug for AidokuError
Source§impl From<CanvasError> for AidokuError
impl From<CanvasError> for AidokuError
Source§fn from(error: CanvasError) -> AidokuError
fn from(error: CanvasError) -> AidokuError
Converts to this type from the input type.
Source§impl From<HtmlError> for AidokuError
impl From<HtmlError> for AidokuError
Source§fn from(error: HtmlError) -> AidokuError
fn from(error: HtmlError) -> AidokuError
Converts to this type from the input type.
Source§impl From<JsError> for AidokuError
impl From<JsError> for AidokuError
Source§fn from(error: JsError) -> AidokuError
fn from(error: JsError) -> AidokuError
Converts to this type from the input type.
Source§impl From<RequestError> for AidokuError
impl From<RequestError> for AidokuError
Source§fn from(value: RequestError) -> Self
fn from(value: RequestError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeError> for AidokuError
impl From<SerializeError> for AidokuError
Source§fn from(error: SerializeError) -> Self
fn from(error: SerializeError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for AidokuError
impl From<Utf8Error> for AidokuError
Source§fn from(error: Utf8Error) -> AidokuError
fn from(error: Utf8Error) -> AidokuError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AidokuError
impl RefUnwindSafe for AidokuError
impl Send for AidokuError
impl Sync for AidokuError
impl Unpin for AidokuError
impl UnwindSafe for AidokuError
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