pub enum YiviReleaseNextSessionResp {
Success {},
PleaseRestartAuth,
SessionGone,
YiviServerGone,
TooEarly,
}Expand description
What’s returned by YiviReleaseNextSessionEP
Variants§
Success
PleaseRestartAuth
Something went wrong; please start again at AuthStartEP.
One reason is that the authentication server restarted and that the provided authenication state is no longer valid.
SessionGone
The request seems fine, but the session cannot be found. Either the session expired, or was already completed. Could caused by a logic error in the client, but also by a slow internet connection.
YiviServerGone
The request seems fine, but the Yivi server is gone, perhaps because it timed out.
Also returned when the authentication server deems the yivi server stale, see YiviReleaseNextSessionReq::stale_after.
TooEarly
Trying to release a yivi server that’s not there yet. You should first call the
YiviWaitForResultEP endpoint to make sure the yivi server is there.
Trait Implementations§
Source§impl Clone for YiviReleaseNextSessionResp
impl Clone for YiviReleaseNextSessionResp
Source§fn clone(&self) -> YiviReleaseNextSessionResp
fn clone(&self) -> YiviReleaseNextSessionResp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for YiviReleaseNextSessionResp
impl Debug for YiviReleaseNextSessionResp
Source§impl<'de> Deserialize<'de> for YiviReleaseNextSessionResp
impl<'de> Deserialize<'de> for YiviReleaseNextSessionResp
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>,
Auto Trait Implementations§
impl Freeze for YiviReleaseNextSessionResp
impl RefUnwindSafe for YiviReleaseNextSessionResp
impl Send for YiviReleaseNextSessionResp
impl Sync for YiviReleaseNextSessionResp
impl Unpin for YiviReleaseNextSessionResp
impl UnsafeUnpin for YiviReleaseNextSessionResp
impl UnwindSafe for YiviReleaseNextSessionResp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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