pub enum SegmentCacheError {
CacheFull,
SegmentTooLarge,
DuplicateSegment,
}Expand description
Errors that can occur during segment cache operations.
Variants§
CacheFull
The cache is full and no segments could be evicted to make room.
SegmentTooLarge
The segment data exceeds the entire byte budget of the cache.
DuplicateSegment
A segment with the same (stream_id, sequence) already exists.
Trait Implementations§
Source§impl Clone for SegmentCacheError
impl Clone for SegmentCacheError
Source§fn clone(&self) -> SegmentCacheError
fn clone(&self) -> SegmentCacheError
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 SegmentCacheError
impl Debug for SegmentCacheError
Source§impl Display for SegmentCacheError
impl Display for SegmentCacheError
impl Eq for SegmentCacheError
Source§impl Error for SegmentCacheError
impl Error for SegmentCacheError
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 SegmentCacheError
impl PartialEq for SegmentCacheError
Source§fn eq(&self, other: &SegmentCacheError) -> bool
fn eq(&self, other: &SegmentCacheError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SegmentCacheError
Auto Trait Implementations§
impl Freeze for SegmentCacheError
impl RefUnwindSafe for SegmentCacheError
impl Send for SegmentCacheError
impl Sync for SegmentCacheError
impl Unpin for SegmentCacheError
impl UnsafeUnpin for SegmentCacheError
impl UnwindSafe for SegmentCacheError
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