pub enum ServerOutbound {
Request(JsonRpcRequest),
Notification(JsonRpcNotification),
Response(JsonRpcResponse),
}Expand description
Outbound message from server to client.
Variants§
Request(JsonRpcRequest)
A request that expects a response from the client.
Notification(JsonRpcNotification)
A notification that does not expect a response.
Response(JsonRpcResponse)
A response to a client request.
Implementations§
Trait Implementations§
Source§impl Clone for ServerOutbound
impl Clone for ServerOutbound
Source§fn clone(&self) -> ServerOutbound
fn clone(&self) -> ServerOutbound
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerOutbound
impl RefUnwindSafe for ServerOutbound
impl Send for ServerOutbound
impl Sync for ServerOutbound
impl Unpin for ServerOutbound
impl UnwindSafe for ServerOutbound
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