pub struct PropertiesAndState<S, I: FieldInterests> {
pub properties: Properties<I>,
pub state: S,
}
Expand description
The properties and state for an interface.
Fields§
§properties: Properties<I>
Properties.
state: S
State.
Trait Implementations§
Source§impl<S, I: FieldInterests> Clone for PropertiesAndState<S, I>where
S: Clone,
impl<S, I: FieldInterests> Clone for PropertiesAndState<S, I>where
S: Clone,
Source§impl<S, I: FieldInterests> Debug for PropertiesAndState<S, I>where
S: Debug,
impl<S, I: FieldInterests> Debug for PropertiesAndState<S, I>where
S: Debug,
Source§impl<S, I: FieldInterests> PartialEq for PropertiesAndState<S, I>where
S: PartialEq,
impl<S, I: FieldInterests> PartialEq for PropertiesAndState<S, I>where
S: PartialEq,
Source§impl<S, I: FieldInterests> Update<S> for PropertiesAndState<S, I>
impl<S, I: FieldInterests> Update<S> for PropertiesAndState<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.
impl<S, I: FieldInterests> Eq for PropertiesAndState<S, I>where
S: Eq,
Auto Trait Implementations§
impl<S, I> Freeze for PropertiesAndState<S, I>where
S: Freeze,
impl<S, I> RefUnwindSafe for PropertiesAndState<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 PropertiesAndState<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 PropertiesAndState<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 PropertiesAndState<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 PropertiesAndState<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
)