pub enum OutgoingMessage<Local: Side, Remote: Side> {
Request {
id: RequestId,
method: Arc<str>,
params: Option<Remote::InRequest>,
},
Response {
id: RequestId,
result: ResponseResult<Local::OutResponse>,
},
Notification {
method: Arc<str>,
params: Option<Remote::InNotification>,
},
}Variants§
Trait Implementations§
Source§impl<Local: Clone + Side, Remote: Clone + Side> Clone for OutgoingMessage<Local, Remote>
impl<Local: Clone + Side, Remote: Clone + Side> Clone for OutgoingMessage<Local, Remote>
Source§fn clone(&self) -> OutgoingMessage<Local, Remote>
fn clone(&self) -> OutgoingMessage<Local, Remote>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, Local: Side, Remote: Side> Deserialize<'de> for OutgoingMessage<Local, Remote>
impl<'de, Local: Side, Remote: Side> Deserialize<'de> for OutgoingMessage<Local, Remote>
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
Source§impl<Local, Remote> JsonSchema for OutgoingMessage<Local, Remote>
impl<Local, Remote> JsonSchema for OutgoingMessage<Local, Remote>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<Local, Remote> Freeze for OutgoingMessage<Local, Remote>where
<Remote as Side>::InRequest: Freeze,
<Local as Side>::OutResponse: Freeze,
<Remote as Side>::InNotification: Freeze,
impl<Local, Remote> RefUnwindSafe for OutgoingMessage<Local, Remote>where
<Remote as Side>::InRequest: RefUnwindSafe,
<Local as Side>::OutResponse: RefUnwindSafe,
<Remote as Side>::InNotification: RefUnwindSafe,
impl<Local, Remote> Send for OutgoingMessage<Local, Remote>where
<Remote as Side>::InRequest: Send,
<Local as Side>::OutResponse: Send,
<Remote as Side>::InNotification: Send,
impl<Local, Remote> Sync for OutgoingMessage<Local, Remote>where
<Remote as Side>::InRequest: Sync,
<Local as Side>::OutResponse: Sync,
<Remote as Side>::InNotification: Sync,
impl<Local, Remote> Unpin for OutgoingMessage<Local, Remote>where
<Remote as Side>::InRequest: Unpin,
<Local as Side>::OutResponse: Unpin,
<Remote as Side>::InNotification: Unpin,
impl<Local, Remote> UnwindSafe for OutgoingMessage<Local, Remote>where
<Remote as Side>::InRequest: UnwindSafe,
<Local as Side>::OutResponse: UnwindSafe,
<Remote as Side>::InNotification: UnwindSafe,
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