Struct Store
pub struct Store {
inner: Sender<ConnectionState>,
}Fields§
§inner: Sender<ConnectionState>Implementations§
§impl Store
impl Store
pub(crate) fn new(state: ConnectionState) -> (Self, ConnectionStateWatch)
pub(crate) fn get(&self) -> ConnectionState
pub(crate) fn set(&self, state: ConnectionState)
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
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