Struct embedded_svc::utils::mqtt::client::ConnStateGuard
source · pub struct ConnStateGuard<CV, S>where
CV: RawCondvar,{
pub state: Mutex<CV::RawMutex, Option<S>>,
pub state_changed: Condvar<CV>,
}Fields§
§state: Mutex<CV::RawMutex, Option<S>>§state_changed: Condvar<CV>Implementations§
source§impl<CV, S> ConnStateGuard<CV, S>where
CV: RawCondvar,
impl<CV, S> ConnStateGuard<CV, S>where
CV: RawCondvar,
source§impl<CV, S> ConnStateGuard<CV, S>where
CV: RawCondvar,
S: Default,
impl<CV, S> ConnStateGuard<CV, S>where
CV: RawCondvar,
S: Default,
pub fn new_default() -> Self
source§impl<CV, S> ConnStateGuard<CV, S>where
CV: RawCondvar,
impl<CV, S> ConnStateGuard<CV, S>where
CV: RawCondvar,
Trait Implementations§
source§impl<CV, S> Default for ConnStateGuard<CV, S>where
CV: RawCondvar,
S: Default,
impl<CV, S> Default for ConnStateGuard<CV, S>where
CV: RawCondvar,
S: Default,
Auto Trait Implementations§
impl<CV, S> !RefUnwindSafe for ConnStateGuard<CV, S>
impl<CV, S> Send for ConnStateGuard<CV, S>
impl<CV, S> Sync for ConnStateGuard<CV, S>
impl<CV, S> Unpin for ConnStateGuard<CV, S>
impl<CV, S> UnwindSafe for ConnStateGuard<CV, S>
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