pub enum CallRecord {
Show 26 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,
},
PruneEventsStream {
stream: String,
through_seq: 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,
},
CancelJob {
job_id: Uuid,
worker_id: Option<String>,
},
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
PruneEventsStream
ConsumerGroupInfoStream(String)
LeaseJobsBatch
LeaseJobsBatchWithOrdering
ReapExpiredLocks
StartAttemptsBatch
MarkSucceeded
MarkSucceededBatch
RescheduleForRetry
Fields
MarkDlq
Fields
ArchiveSucceededOlderThan
DeleteHistoryForSucceededOlderThan
PerformMaintenance
ExtendLease
CancelJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more