pub enum ErrorAction {
Alert,
Log,
Ignore,
}Expand description
Actions for an error.
This enum lists the actions that a client may take to handle an error.
Variants§
Alert
Show a message using the JavaScript alert() function.
Log
Log the error.
Ignore
Ignore the error.
Trait Implementations§
Source§impl Clone for ErrorAction
impl Clone for ErrorAction
Source§fn clone(&self) -> ErrorAction
fn clone(&self) -> ErrorAction
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 ErrorAction
impl Debug for ErrorAction
Source§impl<'de> Deserialize<'de> for ErrorAction
impl<'de> Deserialize<'de> for ErrorAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ErrorAction
impl Hash for ErrorAction
Source§impl PartialEq for ErrorAction
impl PartialEq for ErrorAction
Source§impl Serialize for ErrorAction
impl Serialize for ErrorAction
impl Copy for ErrorAction
impl Eq for ErrorAction
impl StructuralPartialEq for ErrorAction
Auto Trait Implementations§
impl Freeze for ErrorAction
impl RefUnwindSafe for ErrorAction
impl Send for ErrorAction
impl Sync for ErrorAction
impl Unpin for ErrorAction
impl UnwindSafe for ErrorAction
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