pub struct PushClient { /* private fields */ }
Implementations§
Source§impl PushClient
impl PushClient
pub fn new( address: String, consumer: BroadcastEventReceiver, producer: StreamHubEventSender, ) -> Self
pub async fn run(&mut self) -> Result<(), ClientError>
Auto Trait Implementations§
impl Freeze for PushClient
impl !RefUnwindSafe for PushClient
impl Send for PushClient
impl Sync for PushClient
impl Unpin for PushClient
impl !UnwindSafe for PushClient
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