pub struct RealtimeConnection { /* private fields */ }Implementations§
Source§impl RealtimeConnection
impl RealtimeConnection
pub fn sender(&self) -> RealtimeSender
pub async fn send(&self, event: &RealtimeClientEvent) -> Result<()>
pub async fn next_event(&mut self) -> Option<Result<RealtimeServerEvent>>
pub async fn next_typed_event( &mut self, ) -> Option<Result<RealtimeServerMessage>>
pub async fn send_request(&self, event: &RealtimeRequest) -> Result<()>
pub fn split(self) -> (RealtimeSender, RealtimeReceiver)
pub async fn close(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for RealtimeConnection
impl RefUnwindSafe for RealtimeConnection
impl Send for RealtimeConnection
impl Sync for RealtimeConnection
impl Unpin for RealtimeConnection
impl UnsafeUnpin for RealtimeConnection
impl UnwindSafe for RealtimeConnection
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