pub enum ThingsType {
Multiple(Vec<Arc<RwLock<Box<dyn Thing>>>>, String),
Single(Arc<RwLock<Box<dyn Thing>>>),
}
Expand description
Represents the things managed by the server.
Variants§
Multiple(Vec<Arc<RwLock<Box<dyn Thing>>>>, String)
Set when there are multiple things managed by the server
Single(Arc<RwLock<Box<dyn Thing>>>)
Set when there is only one thing
Trait Implementations§
Source§impl Clone for ThingsType
impl Clone for ThingsType
Source§fn clone(&self) -> ThingsType
fn clone(&self) -> ThingsType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ThingsType
impl RefUnwindSafe for ThingsType
impl Send for ThingsType
impl Sync for ThingsType
impl Unpin for ThingsType
impl UnwindSafe for ThingsType
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