pub struct StateSender<S: SyncState> { /* private fields */ }Available on crate feature
client only.Expand description
Handle for sending state updates to the server.
Implementations§
Source§impl<S: SyncState> StateSender<S>
impl<S: SyncState> StateSender<S>
Sourcepub async fn send(&self, state: S) -> Result<(), ClientError>
pub async fn send(&self, state: S) -> Result<(), ClientError>
Send a state update to the server.
This is non-blocking; the update will be queued and sent according to the pacing algorithm.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for StateSender<S>
impl<S> RefUnwindSafe for StateSender<S>
impl<S> Send for StateSender<S>
impl<S> Sync for StateSender<S>
impl<S> Unpin for StateSender<S>
impl<S> UnwindSafe for StateSender<S>
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