pub struct RealtimeEventReceiver { /* private fields */ }Expand description
Receiver for pushed events from a multiplexed RealtimeSession.
Implementations§
Source§impl RealtimeEventReceiver
impl RealtimeEventReceiver
Sourcepub async fn recv(&mut self) -> Result<RealtimeEvent, RealtimeError>
pub async fn recv(&mut self) -> Result<RealtimeEvent, RealtimeError>
Waits for the next pushed event or a terminal session failure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealtimeEventReceiver
impl RefUnwindSafe for RealtimeEventReceiver
impl Send for RealtimeEventReceiver
impl Sync for RealtimeEventReceiver
impl Unpin for RealtimeEventReceiver
impl UnsafeUnpin for RealtimeEventReceiver
impl UnwindSafe for RealtimeEventReceiver
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