pub enum Legacy2024Envelope {
Request {
method: &'static Legacy2024Method,
id: Value,
params: Option<Value>,
},
Notification {
method: &'static Legacy2024Method,
params: Option<Value>,
},
Response {
id: Value,
result: Value,
},
Error {
id: Value,
error: Value,
},
}Expand description
A decoded exact-2024 JSON-RPC envelope.
Variants§
Request
A tagged request with a non-null JSON-RPC request ID.
Notification
A tagged notification which omits JSON-RPC request ID.
Response
A successful JSON-RPC result envelope.
Error
A JSON-RPC error envelope.
Trait Implementations§
Source§impl Clone for Legacy2024Envelope
impl Clone for Legacy2024Envelope
Source§fn clone(&self) -> Legacy2024Envelope
fn clone(&self) -> Legacy2024Envelope
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 moreSource§impl Debug for Legacy2024Envelope
impl Debug for Legacy2024Envelope
Source§impl PartialEq for Legacy2024Envelope
impl PartialEq for Legacy2024Envelope
impl StructuralPartialEq for Legacy2024Envelope
Auto Trait Implementations§
impl Freeze for Legacy2024Envelope
impl RefUnwindSafe for Legacy2024Envelope
impl Send for Legacy2024Envelope
impl Sync for Legacy2024Envelope
impl Unpin for Legacy2024Envelope
impl UnsafeUnpin for Legacy2024Envelope
impl UnwindSafe for Legacy2024Envelope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).