pub enum CallRecord {
Show 24 variants
RunMigrations,
HealthCheck,
Enqueue(NewJob),
Subscribe(String),
PublishStream {
stream: String,
event: NewEvent,
},
SubscribeStream {
stream: String,
consumer_group: String,
last_seq: Option<i64>,
},
AckStream {
stream: String,
consumer_group: String,
seq: i64,
},
ReadEventsStream {
stream: String,
after_seq: i64,
limit: i64,
},
ConsumerGroupInfoStream(String),
LeaseJobsBatch {
queue: String,
worker_id: String,
lease_seconds: i64,
batch_size: i64,
},
LeaseJobsBatchWithOrdering {
queue: String,
worker_id: String,
lease_seconds: i64,
batch_size: i64,
ordering: QueueOrdering,
},
ReapExpiredLocks,
StartAttemptsBatch {
job_ids: Vec<Uuid>,
worker_id: String,
},
MarkSucceeded {
job_id: Uuid,
attempt_id: Uuid,
worker_id: String,
latency_ms: i32,
},
MarkSucceededBatch {
dataset_id: String,
updates: Vec<(Uuid, Uuid, i32)>,
worker_id: String,
},
RescheduleForRetry {
job_id: Uuid,
attempt_id: Uuid,
worker_id: String,
latency_ms: i32,
next_run_at: DateTime<Utc>,
error_code: String,
error_message: String,
attempt_no: i32,
},
MarkDlq {
job_id: Uuid,
attempt_id: Uuid,
worker_id: String,
latency_ms: i32,
reason_code: String,
error_code: String,
error_message: String,
attempt_no: i32,
},
ArchiveSucceededOlderThan {
cutoff: DateTime<Utc>,
limit: i64,
},
DeleteHistoryForSucceededOlderThan {
cutoff: DateTime<Utc>,
limit: i64,
},
PerformMaintenance,
ExtendLease {
job_id: Uuid,
worker_id: String,
lease_seconds: i64,
},
GetJob(Uuid),
ListJobs {
queue: Option<String>,
status: Option<String>,
limit: i64,
},
ReplayJob {
job_id: Uuid,
override_queue: Option<String>,
override_run_at: Option<DateTime<Utc>>,
},
}Expand description
Log record representing a single call executed against a MockBackend.
Variants§
RunMigrations
HealthCheck
Enqueue(NewJob)
Subscribe(String)
PublishStream
SubscribeStream
AckStream
ReadEventsStream
ConsumerGroupInfoStream(String)
LeaseJobsBatch
LeaseJobsBatchWithOrdering
ReapExpiredLocks
StartAttemptsBatch
MarkSucceeded
MarkSucceededBatch
RescheduleForRetry
Fields
MarkDlq
Fields
ArchiveSucceededOlderThan
DeleteHistoryForSucceededOlderThan
PerformMaintenance
ExtendLease
GetJob(Uuid)
ListJobs
ReplayJob
Trait Implementations§
Source§impl Clone for CallRecord
impl Clone for CallRecord
Source§fn clone(&self) -> CallRecord
fn clone(&self) -> CallRecord
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 moreAuto Trait Implementations§
impl Freeze for CallRecord
impl RefUnwindSafe for CallRecord
impl Send for CallRecord
impl Sync for CallRecord
impl Unpin for CallRecord
impl UnsafeUnpin for CallRecord
impl UnwindSafe for CallRecord
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