Skip to main content

Context

Trait Context 

Source
pub trait Context {
    // Required methods
    fn objects(&self) -> &impl ObjectServer;
    fn log(&self, msg: &str);
}

Required Methods§

Source

fn objects(&self) -> &impl ObjectServer

Доступ к подсистеме объектов

Source

fn log(&self, msg: &str)

Логирование (можно вынести в отдельную подсистему позже)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§