pub enum ResponseMessage {
Single(Response),
Batch(Vec<Response>),
Empty,
}Expand description
The output of Server::handle.
An Empty variant means nothing should be sent back (e.g., all-notification batch).
Variants§
Single(Response)
A single response.
Batch(Vec<Response>)
A batch of responses.
Empty
No response to send (notification, or all-notification batch).
Implementations§
Trait Implementations§
Source§impl Clone for ResponseMessage
impl Clone for ResponseMessage
Source§fn clone(&self) -> ResponseMessage
fn clone(&self) -> ResponseMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseMessage
impl RefUnwindSafe for ResponseMessage
impl Send for ResponseMessage
impl Sync for ResponseMessage
impl Unpin for ResponseMessage
impl UnsafeUnpin for ResponseMessage
impl UnwindSafe for ResponseMessage
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