pub enum Ref {
Element(Arc<RwLock<RefElement>>),
Location(Arc<RwLock<RefLocation>>),
}Variants§
Element(Arc<RwLock<RefElement>>)
Location(Arc<RwLock<RefLocation>>)
Trait Implementations§
Source§impl Common for Ref
impl Common for Ref
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>
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl !Send for Ref
impl !Sync for Ref
impl Unpin for Ref
impl UnwindSafe for Ref
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more