pub struct EventsListener<T>{ /* private fields */ }Implementations§
Source§impl<T> EventsListener<T>
impl<T> EventsListener<T>
Sourcepub async fn start(self, duration: Option<Duration>) -> Result<(), EventsError>
pub async fn start(self, duration: Option<Duration>) -> Result<(), EventsError>
Start the events listener, note that if duration is None, it will run forever
§Errors
This function will return an error if Client::get_player, Client::get_clan, or Client::get_current_war fails
Auto Trait Implementations§
impl<T> Freeze for EventsListener<T>where
T: Freeze,
impl<T> !RefUnwindSafe for EventsListener<T>
impl<T> Send for EventsListener<T>
impl<T> Sync for EventsListener<T>
impl<T> Unpin for EventsListener<T>where
T: Unpin,
impl<T> !UnwindSafe for EventsListener<T>
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