pub struct EventSender { /* private fields */ }
Implementations§
Source§impl EventSender
impl EventSender
Client for progress notifications.
For most event types, the client can be configured to either send notifications or requests that can have a response.
pub fn new(client: Sender<ProviderMessage>, mask: EventMask) -> Self
pub fn channel( capacity: usize, mask: EventMask, ) -> (Self, Receiver<ProviderMessage>)
Sourcepub async fn client_connected(
&self,
f: impl Fn() -> ClientConnected,
) -> ClientResult
pub async fn client_connected( &self, f: impl Fn() -> ClientConnected, ) -> ClientResult
A new client has been connected.
Sourcepub async fn connection_closed(
&self,
f: impl Fn() -> ConnectionClosed,
) -> ClientResult
pub async fn connection_closed( &self, f: impl Fn() -> ConnectionClosed, ) -> ClientResult
A new client has been connected.
Trait Implementations§
Source§impl Clone for EventSender
impl Clone for EventSender
Source§fn clone(&self) -> EventSender
fn clone(&self) -> EventSender
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventSender
impl Debug for EventSender
Source§impl Default for EventSender
impl Default for EventSender
Source§fn default() -> EventSender
fn default() -> EventSender
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventSender
impl !RefUnwindSafe for EventSender
impl Send for EventSender
impl Sync for EventSender
impl Unpin for EventSender
impl !UnwindSafe for EventSender
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