pub enum ProtocolResult {
Response(JsonRpcResponse),
Notification,
NotHandled,
}Expand description
Result of handling a protocol method.
Variants§
Response(JsonRpcResponse)
Send this response back to the client.
Notification
Notification — no response needed.
NotHandled
Not a protocol method — caller should handle it.
Auto Trait Implementations§
impl Freeze for ProtocolResult
impl RefUnwindSafe for ProtocolResult
impl Send for ProtocolResult
impl Sync for ProtocolResult
impl Unpin for ProtocolResult
impl UnsafeUnpin for ProtocolResult
impl UnwindSafe for ProtocolResult
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