Enum jsonrpc_v2::RequestKind [−][src]
pub enum RequestKind { RequestObject(RequestObject), ManyRequestObjects(Vec<RequestObject>), Bytes(Bytes), }
Expand description
An enum to contain the different kinds of possible requests: using the provided
RequestObject
, an array of RequestObject
s, or raw bytes.
Typically not use directly, Server::handle
can take the individual variants
Variants
RequestObject(RequestObject)
ManyRequestObjects(Vec<RequestObject>)
Bytes(Bytes)
Trait Implementations
impl From<RequestObject> for RequestKind
[src]
impl From<RequestObject> for RequestKind
[src]fn from(t: RequestObject) -> Self
[src]
fn from(t: RequestObject) -> Self
[src]Performs the conversion.
impl From<Vec<RequestObject, Global>> for RequestKind
[src]
impl From<Vec<RequestObject, Global>> for RequestKind
[src]fn from(t: Vec<RequestObject>) -> Self
[src]
fn from(t: Vec<RequestObject>) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RequestKind
impl Send for RequestKind
impl Sync for RequestKind
impl Unpin for RequestKind
impl UnwindSafe for RequestKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,