Struct coc_rs::events::EventsListener
source · 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> !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