pub enum ColdStoreEvent {
WriteChunkBegin {
path: String,
payload_len: usize,
},
WriteChunkComplete {
path: String,
object_size: u64,
},
DeleteChunkBegin {
path: String,
},
DeleteChunkComplete {
path: String,
},
RemoveAllBegin {
path: String,
},
RemoveAllComplete {
path: String,
},
ReadObjectRangeBegin {
stream_id: Option<BucketStreamId>,
path: String,
read_start_offset: u64,
len: usize,
object_start: u64,
object_end: u64,
cached: bool,
},
ReadObjectRangeComplete {
stream_id: Option<BucketStreamId>,
path: String,
read_start_offset: u64,
len: usize,
returned_len: usize,
cached: bool,
},
FaultInjected {
operation: ColdStoreOperation,
stream_id: Option<BucketStreamId>,
path: String,
message: String,
},
DelayInjected {
operation: ColdStoreOperation,
stream_id: Option<BucketStreamId>,
path: String,
delay_ms: u64,
},
TruncateInjected {
stream_id: Option<BucketStreamId>,
path: String,
requested_len: usize,
returned_len: usize,
},
}Variants§
WriteChunkBegin
WriteChunkComplete
DeleteChunkBegin
DeleteChunkComplete
RemoveAllBegin
RemoveAllComplete
ReadObjectRangeBegin
Fields
§
stream_id: Option<BucketStreamId>ReadObjectRangeComplete
Fields
§
stream_id: Option<BucketStreamId>FaultInjected
DelayInjected
TruncateInjected
Trait Implementations§
Source§impl Clone for ColdStoreEvent
impl Clone for ColdStoreEvent
Source§fn clone(&self) -> ColdStoreEvent
fn clone(&self) -> ColdStoreEvent
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 ColdStoreEvent
impl Debug for ColdStoreEvent
impl Eq for ColdStoreEvent
Source§impl PartialEq for ColdStoreEvent
impl PartialEq for ColdStoreEvent
Source§fn eq(&self, other: &ColdStoreEvent) -> bool
fn eq(&self, other: &ColdStoreEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColdStoreEvent
Auto Trait Implementations§
impl Freeze for ColdStoreEvent
impl RefUnwindSafe for ColdStoreEvent
impl Send for ColdStoreEvent
impl Sync for ColdStoreEvent
impl Unpin for ColdStoreEvent
impl UnsafeUnpin for ColdStoreEvent
impl UnwindSafe for ColdStoreEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.