pub enum OutgoingMessage<Local, Remote>{
Request {
id: RequestId,
method: Arc<str>,
params: Option<<Remote as Side>::InRequest>,
},
Response {
id: RequestId,
result: ResponseResult<<Local as Side>::OutResponse>,
},
Notification {
method: Arc<str>,
params: Option<<Remote as Side>::InNotification>,
},
}Variants§
Trait Implementations§
Source§impl<Local, Remote> Clone for OutgoingMessage<Local, Remote>
impl<Local, Remote> 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, Remote> Deserialize<'de> for OutgoingMessage<Local, Remote>
impl<'de, Local, Remote> Deserialize<'de> for OutgoingMessage<Local, Remote>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OutgoingMessage<Local, Remote>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OutgoingMessage<Local, Remote>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Local: Side, Remote: Side> From<OutgoingMessage<Local, Remote>> for StreamMessage
impl<Local: Side, Remote: Side> From<OutgoingMessage<Local, Remote>> for StreamMessage
Source§fn from(message: OutgoingMessage<Local, Remote>) -> Self
fn from(message: OutgoingMessage<Local, Remote>) -> Self
Converts to this type from the input type.
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 moreSource§impl<Local, Remote> Serialize for OutgoingMessage<Local, Remote>
impl<Local, Remote> Serialize for OutgoingMessage<Local, Remote>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto 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