Side

Trait Side 

Source
pub trait Side: Clone {
    type InRequest: Clone + Serialize + DeserializeOwned + JsonSchema + 'static;
    type InNotification: Clone + Serialize + DeserializeOwned + JsonSchema + 'static;
    type OutResponse: Clone + Serialize + DeserializeOwned + JsonSchema + 'static;

    // Required methods
    fn decode_request(
        method: &str,
        params: Option<&RawValue>,
    ) -> Result<Self::InRequest>;
    fn decode_notification(
        method: &str,
        params: Option<&RawValue>,
    ) -> Result<Self::InNotification>;
}

Required Associated Types§

Required Methods§

Source

fn decode_request( method: &str, params: Option<&RawValue>, ) -> Result<Self::InRequest>

Source

fn decode_notification( method: &str, params: Option<&RawValue>, ) -> Result<Self::InNotification>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§