Trait MsgSender

Source
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