Struct coc_rs::events::EventsListenerBuilder
source · pub struct EventsListenerBuilder { /* private fields */ }
Implementations§
source§impl EventsListenerBuilder
impl EventsListenerBuilder
pub const fn new(client: Client) -> Self
pub fn add_clan(self, tag: &str) -> Self
pub fn add_player(self, tag: &str) -> Self
pub fn add_war(self, tag: &str) -> Self
pub fn add_clans(self, tags: Vec<impl ToString>) -> Self
pub fn add_players(self, tags: Vec<impl ToString>) -> Self
pub fn add_wars(&mut self, tags: Vec<impl ToString>) -> &mut Self
pub fn build<T>(self, handler: T) -> EventsListener<T>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EventsListenerBuilder
impl Send for EventsListenerBuilder
impl Sync for EventsListenerBuilder
impl Unpin for EventsListenerBuilder
impl !UnwindSafe for EventsListenerBuilder
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