Common

Trait Common 

Source
pub trait Common {
    // Required methods
    fn get_name(&self) -> Result<String, SessionError>;
    fn set_name(&self, name: impl Into<String>) -> Result<(), SessionError>;
    fn get_desc(&self) -> Result<String, SessionError>;
    fn set_desc(&self, desc: impl Into<String>) -> Result<(), SessionError>;
    fn notify(&self, event: Event) -> Result<(), SessionError>;
    fn emit(&self, event: Event) -> Result<(), SessionError>;
    fn subscribe(&self, _ref: ID) -> Result<(), SessionError>;
    fn unsubscribe(&self, _ref: ID) -> Result<(), SessionError>;
}

Required Methods§

Source

fn get_name(&self) -> Result<String, SessionError>

Source

fn set_name(&self, name: impl Into<String>) -> Result<(), SessionError>

Source

fn get_desc(&self) -> Result<String, SessionError>

Source

fn set_desc(&self, desc: impl Into<String>) -> Result<(), SessionError>

Source

fn notify(&self, event: Event) -> Result<(), SessionError>

Source

fn emit(&self, event: Event) -> Result<(), SessionError>

Source

fn subscribe(&self, _ref: ID) -> Result<(), SessionError>

Source

fn unsubscribe(&self, _ref: ID) -> Result<(), SessionError>

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§