pub enum BotInitError {
Connect(ConnectError),
Api(ClientError),
CliSpawn(Error),
}Expand description
Error returned by BotBuilder::connect and BotBuilder::launch.
Variants§
Trait Implementations§
Source§impl Debug for BotInitError
impl Debug for BotInitError
Source§impl Display for BotInitError
impl Display for BotInitError
Source§impl Error for BotInitError
impl Error for BotInitError
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<ClientError> for BotInitError
impl From<ClientError> for BotInitError
Source§fn from(e: ClientError) -> Self
fn from(e: ClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BotInitError
impl !RefUnwindSafe for BotInitError
impl Send for BotInitError
impl Sync for BotInitError
impl Unpin for BotInitError
impl UnsafeUnpin for BotInitError
impl !UnwindSafe for BotInitError
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