pub enum ProtocolMethod {
CancelRequest,
}Expand description
A JSON-RPC standard method, prefixed $/. The v1 schema
names only $/cancel_request.
Variants§
CancelRequest
$/cancel_request — a peer cancels an in-flight
request by id. The peer that sent the request
discards it (or returns a “cancelled” error if the
response already left when the cancel arrived).
Implementations§
Source§impl ProtocolMethod
impl ProtocolMethod
Sourcepub const fn as_wire_name(self) -> &'static str
pub const fn as_wire_name(self) -> &'static str
The wire name, including the $/ prefix.
Trait Implementations§
Source§impl Clone for ProtocolMethod
impl Clone for ProtocolMethod
impl Copy for ProtocolMethod
Source§impl Debug for ProtocolMethod
impl Debug for ProtocolMethod
Source§impl<'de> Deserialize<'de> for ProtocolMethod
impl<'de> Deserialize<'de> for ProtocolMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProtocolMethod
Source§impl Hash for ProtocolMethod
impl Hash for ProtocolMethod
Source§impl PartialEq for ProtocolMethod
impl PartialEq for ProtocolMethod
Source§impl Serialize for ProtocolMethod
impl Serialize for ProtocolMethod
impl StructuralPartialEq for ProtocolMethod
Auto Trait Implementations§
impl Freeze for ProtocolMethod
impl RefUnwindSafe for ProtocolMethod
impl Send for ProtocolMethod
impl Sync for ProtocolMethod
impl Unpin for ProtocolMethod
impl UnsafeUnpin for ProtocolMethod
impl UnwindSafe for ProtocolMethod
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