MsgSender

Trait MsgSender 

Source
pub trait MsgSender: Send {
    // Required methods
    fn box_clone(&self) -> Box<dyn MsgSender>;
    fn send_message(&self, wrap: BuildClientMessageWrap);

    // Provided methods
    fn send_bare_message(&self, cmd_id: LiveId, level: LogLevel, line: String) { ... }
    fn send_stdin_to_host_msg(&self, cmd_id: LiveId, line: String) { ... }
    fn send_location_msg(
        &self,
        cmd_id: LiveId,
        level: LogLevel,
        file_name: String,
        start: Position,
        end: Position,
        message: String,
        explanation: Option<String>,
    ) { ... }
    fn process_compiler_message(
        &self,
        cmd_id: LiveId,
        msg: RustcCompilerMessage,
    ) { ... }
}

Required Methods§

Provided Methods§

Source

fn send_bare_message(&self, cmd_id: LiveId, level: LogLevel, line: String)

Source

fn send_stdin_to_host_msg(&self, cmd_id: LiveId, line: String)

Source

fn send_location_msg( &self, cmd_id: LiveId, level: LogLevel, file_name: String, start: Position, end: Position, message: String, explanation: Option<String>, )

Source

fn process_compiler_message(&self, cmd_id: LiveId, msg: RustcCompilerMessage)

Trait Implementations§

Source§

impl Clone for Box<dyn MsgSender>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for dyn MsgSender

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<F: Clone + Fn(BuildClientMessageWrap) + Send + 'static> MsgSender for F