pub enum SqlDeviceStoreError {
Db(Error),
Encode(Error),
Decode(Error),
Crypto(CryptoError),
UnknownTrustLevel(String),
MalformedRow(String),
}device only.Expand description
Errors from SQL-backed device stores.
Same shape as SqlStoreError
Distinct type so the device-store error surface doesn’t widen
when the session-store one does (and vice versa).
Variants§
Db(Error)
Underlying database driver returned an error.
Encode(Error)
MessagePack encoding of the bindings vector failed.
Decode(Error)
MessagePack decoding of a stored bindings blob failed.
Crypto(CryptoError)
AES-256-GCM encryption or decryption of the bindings blob failed.
UnknownTrustLevel(String)
Stored row carried a trust-level string the codec doesn’t recognise. Indicates schema drift (a future trust level was written by a newer process and an older one is now reading it).
MalformedRow(String)
Stored row carried a value that couldn’t be parsed into the
expected newtype (e.g. tenant_id / device_id validation
rejected the bytes). Indicates row corruption: the value was
either written by a buggy producer or hand-edited.
Trait Implementations§
Source§impl Debug for SqlDeviceStoreError
impl Debug for SqlDeviceStoreError
Source§impl Display for SqlDeviceStoreError
impl Display for SqlDeviceStoreError
Source§impl Error for SqlDeviceStoreError
impl Error for SqlDeviceStoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<CryptoError> for SqlDeviceStoreError
impl From<CryptoError> for SqlDeviceStoreError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Source§impl From<Error> for SqlDeviceStoreError
impl From<Error> for SqlDeviceStoreError
Source§impl From<Error> for SqlDeviceStoreError
impl From<Error> for SqlDeviceStoreError
Auto Trait Implementations§
impl Freeze for SqlDeviceStoreError
impl !RefUnwindSafe for SqlDeviceStoreError
impl Send for SqlDeviceStoreError
impl Sync for SqlDeviceStoreError
impl Unpin for SqlDeviceStoreError
impl UnsafeUnpin for SqlDeviceStoreError
impl !UnwindSafe for SqlDeviceStoreError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.