Struct perseus::state::SerdeInfallible
source · pub struct SerdeInfallible;
Expand description
An analogue of std::convert::Infallible
that can be serialized and
deserialized, since Serde currently does not implement those traits on the
standard library’s Infallible
. Until this issue is
resolved, this must be used instead in the state platform.
The intended usage of this is in Result
s or RxResult
s for suspended
state whose handlers cannot fail.
Trait Implementations§
source§impl Clone for SerdeInfallible
impl Clone for SerdeInfallible
source§fn clone(&self) -> SerdeInfallible
fn clone(&self) -> SerdeInfallible
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 Debug for SerdeInfallible
impl Debug for SerdeInfallible
source§impl<'de> Deserialize<'de> for SerdeInfallible
impl<'de> Deserialize<'de> for SerdeInfallible
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
Auto Trait Implementations§
impl RefUnwindSafe for SerdeInfallible
impl Send for SerdeInfallible
impl Sync for SerdeInfallible
impl Unpin for SerdeInfallible
impl UnwindSafe for SerdeInfallible
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