pub enum StreamCursorParseError {
Empty,
BareMarkerRejected(String),
Malformed(String),
}Expand description
Error produced when parsing a StreamCursor from a string.
Variants§
Empty
Empty input.
BareMarkerRejected(String)
Input matched a rejected bare-marker alias ("-", "+").
The public wire requires "start" / "end"; the raw Valkey
markers are internal-only.
Malformed(String)
Input was neither a recognized keyword nor a well-formed
Stream entry id. Entry ids must match ^\d+(?:-\d+)?$.
Trait Implementations§
Source§impl Clone for StreamCursorParseError
impl Clone for StreamCursorParseError
Source§fn clone(&self) -> StreamCursorParseError
fn clone(&self) -> StreamCursorParseError
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamCursorParseError
impl Debug for StreamCursorParseError
Source§impl Display for StreamCursorParseError
impl Display for StreamCursorParseError
Source§impl Error for StreamCursorParseError
impl Error for StreamCursorParseError
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 PartialEq for StreamCursorParseError
impl PartialEq for StreamCursorParseError
impl Eq for StreamCursorParseError
impl StructuralPartialEq for StreamCursorParseError
Auto Trait Implementations§
impl Freeze for StreamCursorParseError
impl RefUnwindSafe for StreamCursorParseError
impl Send for StreamCursorParseError
impl Sync for StreamCursorParseError
impl Unpin for StreamCursorParseError
impl UnsafeUnpin for StreamCursorParseError
impl UnwindSafe for StreamCursorParseError
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