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
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