pub struct BotWrapper<B: BotHandler> { /* private fields */ }
Implementations§
Source§impl BotWrapper<NoBotHandler>
impl BotWrapper<NoBotHandler>
Sourcepub fn new(token: String) -> BotWrapper<NoBotHandler>
pub fn new(token: String) -> BotWrapper<NoBotHandler>
Source§impl<B: BotHandler> BotWrapper<B>
impl<B: BotHandler> BotWrapper<B>
Sourcepub fn new_with_handler(token: String, handler: B) -> BotWrapper<B>
pub fn new_with_handler(token: String, handler: B) -> BotWrapper<B>
Sourcepub fn run(self)
pub fn run(self)
Examples found in repository?
More examples
Auto Trait Implementations§
impl<B> !Freeze for BotWrapper<B>
impl<B> !RefUnwindSafe for BotWrapper<B>
impl<B> !Send for BotWrapper<B>
impl<B> !Sync for BotWrapper<B>
impl<B> Unpin for BotWrapper<B>where
B: Unpin,
impl<B> !UnwindSafe for BotWrapper<B>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more