pub enum WriteSessionResult<OkData = ()> {
Ok(OkData),
SessionIdExists,
}
Expand description
The result of writing a session, indicating if the session could be written, or if the id collided.
Annotated with #[must_use]
, because silently dropping this may cause sessions to be dropped silently.
Variants§
Ok(OkData)
The session could be written without id collision.
SessionIdExists
The session could not be written, because the chosen id already exists.
Trait Implementations§
Auto Trait Implementations§
impl<OkData> Freeze for WriteSessionResult<OkData>where
OkData: Freeze,
impl<OkData> RefUnwindSafe for WriteSessionResult<OkData>where
OkData: RefUnwindSafe,
impl<OkData> Send for WriteSessionResult<OkData>where
OkData: Send,
impl<OkData> Sync for WriteSessionResult<OkData>where
OkData: Sync,
impl<OkData> Unpin for WriteSessionResult<OkData>where
OkData: Unpin,
impl<OkData> UnwindSafe for WriteSessionResult<OkData>where
OkData: 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