pub struct StageStateRef<Msg, St> { /* private fields */ }Expand description
A handle for sending messages to a stage via the Effects argument to the stage transition function.
This is a variant that is mostly useful in tests because it allows extracting the current state of the stage.
Implementations§
Source§impl<Msg, St> StageStateRef<Msg, St>
impl<Msg, St> StageStateRef<Msg, St>
pub fn without_state(self) -> StageRef<Msg>
Trait Implementations§
Source§impl<Msg, St> AsRef<StageRef<Msg>> for StageStateRef<Msg, St>
impl<Msg, St> AsRef<StageRef<Msg>> for StageStateRef<Msg, St>
Source§impl<Msg, St> Clone for StageStateRef<Msg, St>
impl<Msg, St> Clone for StageStateRef<Msg, St>
Source§impl<Msg, St> Debug for StageStateRef<Msg, St>
impl<Msg, St> Debug for StageStateRef<Msg, St>
Source§impl<Msg, St> Deref for StageStateRef<Msg, St>
impl<Msg, St> Deref for StageStateRef<Msg, St>
Source§impl<'de, Msg, St> Deserialize<'de> for StageStateRef<Msg, St>where
Msg: Deserialize<'de>,
impl<'de, Msg, St> Deserialize<'de> for StageStateRef<Msg, St>where
Msg: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Msg: PartialEq, St: PartialEq> PartialEq for StageStateRef<Msg, St>
impl<Msg: PartialEq, St: PartialEq> PartialEq for StageStateRef<Msg, St>
Source§fn eq(&self, other: &StageStateRef<Msg, St>) -> bool
fn eq(&self, other: &StageStateRef<Msg, St>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Msg, St> Serialize for StageStateRef<Msg, St>where
Msg: Serialize,
impl<Msg, St> Serialize for StageStateRef<Msg, St>where
Msg: Serialize,
impl<Msg: PartialEq, St: PartialEq> StructuralPartialEq for StageStateRef<Msg, St>
Auto Trait Implementations§
impl<Msg, St> !RefUnwindSafe for StageStateRef<Msg, St>
impl<Msg, St> !UnwindSafe for StageStateRef<Msg, St>
impl<Msg, St> Freeze for StageStateRef<Msg, St>
impl<Msg, St> Send for StageStateRef<Msg, St>
impl<Msg, St> Sync for StageStateRef<Msg, St>
impl<Msg, St> Unpin for StageStateRef<Msg, St>
impl<Msg, St> UnsafeUnpin for StageStateRef<Msg, St>
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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