pub enum ServerMessage {
Welcome {
protocol: u32,
backend: BackendInfo,
limits: ActionLimits,
capabilities: ServerCapabilities,
},
Ack {
seq: u64,
outcome: AckOutcome,
},
Snapshot {
incarnation: u64,
view: ViewSnapshot,
},
Delta {
incarnation: u64,
delta: ViewDelta,
},
Effect {
id: u64,
effect: EffectRequest,
},
Error {
seq: Option<u64>,
error: ProtocolError,
},
Bye {
reason: ShutdownReason,
},
}Expand description
Backend → client.
Variants§
Welcome
The handshake answer, carrying identity, bounds and the real capability set.
Ack
The acknowledgement of one sequenced request.
Snapshot
A complete semantic view; valid against any prior state.
Delta
A sparse update valid only against its base generation.
Effect
A host effect request (AR08).
Error
A protocol-level failure. seq names the offending request when
one could be identified.
Bye
The final message: the backend is exiting.
Fields
§
reason: ShutdownReasonTrait Implementations§
Source§impl Clone for ServerMessage
impl Clone for ServerMessage
Source§impl Debug for ServerMessage
impl Debug for ServerMessage
Source§impl<'de> Deserialize<'de> for ServerMessage
impl<'de> Deserialize<'de> for ServerMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServerMessage
impl PartialEq for ServerMessage
Source§impl Serialize for ServerMessage
impl Serialize for ServerMessage
impl StructuralPartialEq for ServerMessage
Auto Trait Implementations§
impl Freeze for ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnsafeUnpin for ServerMessage
impl UnwindSafe for ServerMessage
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