pub trait LiveSession {
// Required methods
fn state(&self) -> LiveSessionState;
fn capabilities(&self) -> LiveSessionCapabilities;
fn dispatch_command(
&mut self,
command: LiveSessionCommand,
) -> Result<JsonValue, LiveSessionError>;
// Provided method
fn dispatch(
&mut self,
request: LiveSessionRequest,
) -> Result<LiveSessionReply, LiveSessionError> { ... }
}Required Methods§
fn state(&self) -> LiveSessionState
fn capabilities(&self) -> LiveSessionCapabilities
fn dispatch_command( &mut self, command: LiveSessionCommand, ) -> Result<JsonValue, LiveSessionError>
Provided Methods§
fn dispatch( &mut self, request: LiveSessionRequest, ) -> Result<LiveSessionReply, LiveSessionError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".