pub enum Received {
Updated,
Rejected {
envelope: CommandEnvelope,
error: String,
},
NeedsResync,
}Expand description
What a message from the server did to a Replica.
Variants§
Updated
The state may have changed; re-render.
Rejected
One of this client’s commands was refused. The prediction has already been rolled back.
NeedsResync
Events were missed (e.g. after a network hiccup). Reconnect, or
fetch a snapshot and pass it to Replica::receive, then resend
Replica::pending.
Trait Implementations§
impl StructuralPartialEq for Received
Auto Trait Implementations§
impl Freeze for Received
impl RefUnwindSafe for Received
impl Send for Received
impl Sync for Received
impl Unpin for Received
impl UnsafeUnpin for Received
impl UnwindSafe for Received
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