pub trait Common {
    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>

Implementors§