Enum StoredRowError
pub(super) enum StoredRowError {
ColumnType(ColumnType),
IntegerOutOfRange(TryFromIntError),
ZeroPacketId,
QoS(u8),
SubscriptionOptions(u8),
FilterStateTag(u8),
SubscriptionId(u32),
String(DataError),
Topic(TopicError),
Properties(DecodeError),
Payload(PayloadTooLarge),
}Available on crate features
tokio and turso only.Expand description
A stored row that does not decode into valid session state.
Variants§
ColumnType(ColumnType)
A column does not hold the expected value type.
IntegerOutOfRange(TryFromIntError)
An integer column contains a value outside the range of its field.
ZeroPacketId
A packet id column holds zero.
QoS(u8)
A QoS column contains a level other than 1 or 2.
SubscriptionOptions(u8)
A subscription options column holds an invalid byte.
FilterStateTag(u8)
A filter state column holds an unknown tag.
SubscriptionId(u32)
A subscription identifier column contains zero or a value above the Variable Byte Integer maximum.
String(DataError)
A topic or topic filter column is not a valid MQTT string.
Topic(TopicError)
A topic or topic filter column breaks the topic rules.
Properties(DecodeError)
A publish properties column does not decode.
Payload(PayloadTooLarge)
A payload column is too large for any packet.
Trait Implementations§
§impl Debug for StoredRowError
impl Debug for StoredRowError
§impl Display for StoredRowError
impl Display for StoredRowError
§impl Error for StoredRowError
impl Error for StoredRowError
§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()
§impl From<StoredRowError> for Error
impl From<StoredRowError> for Error
§fn from(err: StoredRowError) -> Self
fn from(err: StoredRowError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoredRowError
impl RefUnwindSafe for StoredRowError
impl Send for StoredRowError
impl Sync for StoredRowError
impl Unpin for StoredRowError
impl UnsafeUnpin for StoredRowError
impl UnwindSafe for StoredRowError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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