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§
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>
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.