pub enum ServerOp {
Ok,
Err {
error: OwpError,
details: Option<String>,
},
Info(InfoPayload),
Msg {
sid: String,
payload: String,
},
}Expand description
A parsed server frame, or one about to be written.
Display is the wire form. INFO
JSON that cannot serialize becomes a fmt error, which should not
happen for a well-formed InfoPayload.
Variants§
Ok
+OK with no trailing fields.
Err
-ERR <name> [details…]. Details keep their spaces.
Info(InfoPayload)
Msg
MSG <sid> <payload>. Payload is the rest of the line.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerOp
impl RefUnwindSafe for ServerOp
impl Send for ServerOp
impl Sync for ServerOp
impl Unpin for ServerOp
impl UnwindSafe for ServerOp
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