pub enum SessionRegisterError {
Exists(SessionExists),
KindMismatch(SessionKindMismatch),
InvalidRecord(InvalidSessionRecord),
PublicationFailed(SessionPublicationFailed),
}Expand description
Error returned by SessionRegistry::register_session.
Variants§
Exists(SessionExists)
A session already exists at the given key.
KindMismatch(SessionKindMismatch)
The key’s identifier variant disagrees with the state’s kind.
InvalidRecord(InvalidSessionRecord)
The key or state record is malformed (empty required field).
PublicationFailed(SessionPublicationFailed)
The authority did not durably accept the registration.
Trait Implementations§
Source§impl Clone for SessionRegisterError
impl Clone for SessionRegisterError
Source§fn clone(&self) -> SessionRegisterError
fn clone(&self) -> SessionRegisterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionRegisterError
impl Debug for SessionRegisterError
Source§impl Display for SessionRegisterError
impl Display for SessionRegisterError
Source§impl Error for SessionRegisterError
impl Error for SessionRegisterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<InvalidSessionRecord> for SessionRegisterError
impl From<InvalidSessionRecord> for SessionRegisterError
Source§fn from(e: InvalidSessionRecord) -> Self
fn from(e: InvalidSessionRecord) -> Self
Converts to this type from the input type.
Source§impl From<SessionExists> for SessionRegisterError
impl From<SessionExists> for SessionRegisterError
Source§fn from(e: SessionExists) -> Self
fn from(e: SessionExists) -> Self
Converts to this type from the input type.
Source§impl From<SessionKindMismatch> for SessionRegisterError
impl From<SessionKindMismatch> for SessionRegisterError
Source§fn from(e: SessionKindMismatch) -> Self
fn from(e: SessionKindMismatch) -> Self
Converts to this type from the input type.
Source§impl From<SessionPublicationFailed> for SessionRegisterError
impl From<SessionPublicationFailed> for SessionRegisterError
Source§fn from(e: SessionPublicationFailed) -> Self
fn from(e: SessionPublicationFailed) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionRegisterError
impl PartialEq for SessionRegisterError
Source§fn eq(&self, other: &SessionRegisterError) -> bool
fn eq(&self, other: &SessionRegisterError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SessionRegisterError
impl StructuralPartialEq for SessionRegisterError
Auto Trait Implementations§
impl Freeze for SessionRegisterError
impl RefUnwindSafe for SessionRegisterError
impl Send for SessionRegisterError
impl Sync for SessionRegisterError
impl Unpin for SessionRegisterError
impl UnsafeUnpin for SessionRegisterError
impl UnwindSafe for SessionRegisterError
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<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
Compare self to
key and return true if they are equal.§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more