pub struct EventHub { /* private fields */ }Implementations§
Source§impl EventHub
impl EventHub
pub fn new() -> Self
pub fn subscribe( &self, config: SubscriberConfig, ) -> Result<EventSubscription, ClientError>
pub fn publish(&self, event: ClientEvent)
pub fn disconnect_all(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventHub
impl RefUnwindSafe for EventHub
impl Send for EventHub
impl Sync for EventHub
impl Unpin for EventHub
impl UnsafeUnpin for EventHub
impl UnwindSafe for EventHub
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