Skip to main content

IntoControlMessage

Trait IntoControlMessage 

Source
pub trait IntoControlMessage: IntoOutboundMessage<ControlProtocol> {
    // Required method
    fn into_json(self) -> ControlClientResult<ControlRequest>;
}
Expand description

Named messages that can choose a real framed or legacy representation.

Required Methods§

Source

fn into_json(self) -> ControlClientResult<ControlRequest>

Translate a known native request. Encoded payloads fail locally because parsing them into a JSON substitute would discard the caller’s wire form.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§