pub enum WotError {
InvalidToken {
details: String,
},
InvalidCapabilities {
details: String,
},
PermissionDenied {
details: String,
},
SystemError {
details: String,
},
}Variants§
Implementations§
Source§impl WotError
impl WotError
Sourcepub fn invalidtoken(details: impl Into<String>) -> Self
pub fn invalidtoken(details: impl Into<String>) -> Self
Create a new error instance
Sourcepub fn invalidcapabilities(details: impl Into<String>) -> Self
pub fn invalidcapabilities(details: impl Into<String>) -> Self
Create a new error instance
Sourcepub fn permissiondenied(details: impl Into<String>) -> Self
pub fn permissiondenied(details: impl Into<String>) -> Self
Create a new error instance
Sourcepub fn systemerror(details: impl Into<String>) -> Self
pub fn systemerror(details: impl Into<String>) -> Self
Create a new error instance
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WotError
impl<'de> Deserialize<'de> for WotError
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 Error for WotError
impl Error for WotError
1.30.0 · 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 WotError
impl RefUnwindSafe for WotError
impl Send for WotError
impl Sync for WotError
impl Unpin for WotError
impl UnsafeUnpin for WotError
impl UnwindSafe for WotError
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