Enum webthing::server::ThingsType
source · [−]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
sourceimpl Clone for ThingsType
impl Clone for ThingsType
sourcefn clone(&self) -> ThingsType
fn clone(&self) -> ThingsType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ThingsType
impl Send for ThingsType
impl Sync for ThingsType
impl Unpin for ThingsType
impl UnwindSafe for ThingsType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more