Struct hydroflow::scheduled::state::StateHandle
source · pub struct StateHandle<T> { /* private fields */ }
Expand description
A handle into a particular Hydroflow
instance, referring to data
inserted by add_state
.
If you need to store state handles in a data structure see StateHandleErased
which hides
the generic type parameter.
Trait Implementations§
source§impl<T> Clone for StateHandle<T>
impl<T> Clone for StateHandle<T>
source§impl<T: Debug> Debug for StateHandle<T>
impl<T: Debug> Debug for StateHandle<T>
source§impl<T> From<StateHandle<T>> for StateHandleErasedwhere
T: Any,
impl<T> From<StateHandle<T>> for StateHandleErasedwhere
T: Any,
See StateHandleErased
.
source§fn from(value: StateHandle<T>) -> Self
fn from(value: StateHandle<T>) -> Self
Converts to this type from the input type.
source§impl<T: Hash> Hash for StateHandle<T>
impl<T: Hash> Hash for StateHandle<T>
source§impl<T: Ord> Ord for StateHandle<T>
impl<T: Ord> Ord for StateHandle<T>
source§fn cmp(&self, other: &StateHandle<T>) -> Ordering
fn cmp(&self, other: &StateHandle<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for StateHandle<T>
impl<T: PartialEq> PartialEq for StateHandle<T>
source§impl<T: PartialOrd> PartialOrd for StateHandle<T>
impl<T: PartialOrd> PartialOrd for StateHandle<T>
source§impl<T> TryFrom<StateHandleErased> for StateHandle<T>where
T: Any,
impl<T> TryFrom<StateHandleErased> for StateHandle<T>where
T: Any,
See StateHandleErased
.
source§type Error = StateHandleErased
type Error = StateHandleErased
The type returned in the event of a conversion error.
impl<T> Copy for StateHandle<T>
impl<T: Eq> Eq for StateHandle<T>
impl<T> StructuralPartialEq for StateHandle<T>
Auto Trait Implementations§
impl<T> Freeze for StateHandle<T>
impl<T> RefUnwindSafe for StateHandle<T>where
T: RefUnwindSafe,
impl<T> !Send for StateHandle<T>
impl<T> !Sync for StateHandle<T>
impl<T> Unpin for StateHandle<T>
impl<T> UnwindSafe for StateHandle<T>where
T: RefUnwindSafe,
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more