pub enum InterfaceState<S> {
Unknown(u64),
Known(PropertiesAndState<S>),
}
Expand description
The local state of an interface’s properties.
Variants§
Trait Implementations§
source§impl<S: Clone> Clone for InterfaceState<S>
impl<S: Clone> Clone for InterfaceState<S>
source§fn clone(&self) -> InterfaceState<S>
fn clone(&self) -> InterfaceState<S>
Returns a copy 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 moresource§impl<S: Debug> Debug for InterfaceState<S>
impl<S: Debug> Debug for InterfaceState<S>
source§impl<S: PartialEq> PartialEq for InterfaceState<S>
impl<S: PartialEq> PartialEq for InterfaceState<S>
source§fn eq(&self, other: &InterfaceState<S>) -> bool
fn eq(&self, other: &InterfaceState<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S: Default> Update<S> for InterfaceState<S>
impl<S: Default> Update<S> for InterfaceState<S>
source§fn update(&mut self, event: Event) -> Result<UpdateResult<'_, S>, UpdateError>
fn update(&mut self, event: Event) -> Result<UpdateResult<'_, S>, UpdateError>
Update state with the interface change event.
impl<S> StructuralPartialEq for InterfaceState<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for InterfaceState<S>where
S: RefUnwindSafe,
impl<S> Send for InterfaceState<S>where
S: Send,
impl<S> Sync for InterfaceState<S>where
S: Sync,
impl<S> Unpin for InterfaceState<S>where
S: Unpin,
impl<S> UnwindSafe for InterfaceState<S>where
S: UnwindSafe,
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