pub enum InterfaceState<S, I: FieldInterests> {
Unknown(u64),
Known(PropertiesAndState<S, I>),
}
Expand description
The local state of an interface’s properties.
Variants§
Trait Implementations§
Source§impl<S, I: FieldInterests> Clone for InterfaceState<S, I>where
S: Clone,
impl<S, I: FieldInterests> Clone for InterfaceState<S, I>where
S: Clone,
Source§impl<S, I: FieldInterests> Debug for InterfaceState<S, I>where
S: Debug,
impl<S, I: FieldInterests> Debug for InterfaceState<S, I>where
S: Debug,
Source§impl<S, I: FieldInterests> PartialEq for InterfaceState<S, I>where
S: PartialEq,
impl<S, I: FieldInterests> PartialEq for InterfaceState<S, I>where
S: PartialEq,
Source§impl<S: Default, I: FieldInterests> Update<S> for InterfaceState<S, I>
impl<S: Default, I: FieldInterests> Update<S> for InterfaceState<S, I>
Source§fn update(
&mut self,
event: EventWithInterest<I>,
) -> Result<UpdateResult<'_, S, I>, UpdateError>
fn update( &mut self, event: EventWithInterest<I>, ) -> Result<UpdateResult<'_, S, I>, UpdateError>
Update state with the interface change event.
Auto Trait Implementations§
impl<S, I> Freeze for InterfaceState<S, I>where
S: Freeze,
impl<S, I> RefUnwindSafe for InterfaceState<S, I>where
S: RefUnwindSafe,
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: RefUnwindSafe,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: RefUnwindSafe,
impl<S, I> Send for InterfaceState<S, I>where
S: Send,
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Send,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Send,
impl<S, I> Sync for InterfaceState<S, I>where
S: Sync,
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Sync,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Sync,
impl<S, I> Unpin for InterfaceState<S, I>where
S: Unpin,
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Unpin,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Unpin,
impl<S, I> UnwindSafe for InterfaceState<S, I>where
S: UnwindSafe,
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: UnwindSafe,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)