pub enum ServerMessage {
Hello {
version: i64,
server_id: String,
},
HelloError {
error: ProtocolError,
},
Response {
id: String,
result: Result<Option<Value>, ProtocolError>,
},
ServiceUpdate {
subscription_id: String,
update: Value,
},
Attachment {
attachment: Option<SessionTarget>,
},
}Variants§
Hello
HelloError
Fields
§
error: ProtocolErrorResponse
Ok(None) is a successful void response without a result field.
ServiceUpdate
Attachment
Fields
§
attachment: Option<SessionTarget>Implementations§
Trait Implementations§
Source§impl Clone for ServerMessage
impl Clone for ServerMessage
Source§impl Debug for ServerMessage
impl Debug for ServerMessage
Source§impl PartialEq for ServerMessage
impl PartialEq for ServerMessage
impl StructuralPartialEq for ServerMessage
Auto Trait Implementations§
impl Forget for ServerMessage
impl Freeze for ServerMessage
impl Move 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