pub enum Incoming {
Request(Request),
Response(Response),
Notification(Notification),
}Expand description
Any inbound JSON-RPC frame, before we know which kind it is. A reader thread parses one of these per frame and dispatches: responses resolve a pending request by id; notifications fan out to handlers; requests (only on the server side / sampling-style server→client) are answered.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Incoming
impl<'de> Deserialize<'de> for Incoming
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Incoming, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Incoming, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Incoming
impl RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl Unpin for Incoming
impl UnsafeUnpin for Incoming
impl UnwindSafe for Incoming
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