pub enum GatewayDispatchError {
AdminRequired,
Params(ParamsError),
UnknownAction,
SpawnValidation,
Manager(GatewayManagerError),
}Variants§
Implementations§
Source§impl GatewayDispatchError
impl GatewayDispatchError
pub fn structured(&self, action: &str) -> GatewayStructuredError
Trait Implementations§
Source§impl Debug for GatewayDispatchError
impl Debug for GatewayDispatchError
Source§impl Display for GatewayDispatchError
impl Display for GatewayDispatchError
Source§impl Error for GatewayDispatchError
impl Error for GatewayDispatchError
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<GatewayManagerError> for GatewayDispatchError
impl From<GatewayManagerError> for GatewayDispatchError
Source§fn from(source: GatewayManagerError) -> Self
fn from(source: GatewayManagerError) -> Self
Converts to this type from the input type.
Source§impl From<ParamsError> for GatewayDispatchError
impl From<ParamsError> for GatewayDispatchError
Source§fn from(source: ParamsError) -> Self
fn from(source: ParamsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GatewayDispatchError
impl !RefUnwindSafe for GatewayDispatchError
impl Send for GatewayDispatchError
impl Sync for GatewayDispatchError
impl Unpin for GatewayDispatchError
impl UnsafeUnpin for GatewayDispatchError
impl !UnwindSafe for GatewayDispatchError
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