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

    // Provided methods
    fn send_bare_msg(
        &self,
        cmd_id: BuildCmdId,
        level: LogItemLevel,
        line: String
    ) { ... }
    fn send_stdin_to_host_msg(&self, cmd_id: BuildCmdId, line: String) { ... }
    fn send_location_msg(
        &self,
        cmd_id: BuildCmdId,
        level: LogItemLevel,
        file_name: String,
        start: Position,
        length: Length,
        msg: String
    ) { ... }
    fn process_compiler_message(
        &self,
        cmd_id: BuildCmdId,
        msg: RustcCompilerMessage
    ) { ... }
}

Required Methods§

source

fn box_clone(&self) -> Box<dyn MsgSender>

source

fn send_message(&self, wrap: LogItemWrap)

Provided Methods§

source

fn send_bare_msg(&self, cmd_id: BuildCmdId, level: LogItemLevel, line: String)

source

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

source

fn send_location_msg( &self, cmd_id: BuildCmdId, level: LogItemLevel, file_name: String, start: Position, length: Length, msg: String )

source

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

Trait Implementations§

source§

impl Clone for Box<dyn MsgSender>

source§

fn clone(&self) -> Self

Returns a copy 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(LogItemWrap) + Send + 'static> MsgSender for F