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 Freeze for EventsListenerBuilder
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