pub enum StreamIdParseError {
InvalidType,
InvalidTimestamp,
MissingSequence,
InvalidSequence,
}
Expand description
Possible errors parsing Redis Stream ID
Variants§
InvalidType
Not compatible type (non-string or empty)
InvalidTimestamp
Timestamp is not valid zero or positive integer
MissingSequence
Sequence part of Stream’s ID is missing
InvalidSequence
Sequence is not valid zero or positive integer
Trait Implementations§
Source§impl Debug for StreamIdParseError
impl Debug for StreamIdParseError
Source§impl Display for StreamIdParseError
impl Display for StreamIdParseError
Source§impl Error for StreamIdParseError
impl Error for StreamIdParseError
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()
Auto Trait Implementations§
impl Freeze for StreamIdParseError
impl RefUnwindSafe for StreamIdParseError
impl Send for StreamIdParseError
impl Sync for StreamIdParseError
impl Unpin for StreamIdParseError
impl UnwindSafe for StreamIdParseError
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