pub enum TrackerMode {
FileOk,
NotConfigured,
Unauthorized,
Rejected,
Transient,
Error(TrackerError),
}Expand description
How a FakeTracker answers, mirroring MailerMode and PushMode
for the tracker port (issue #431).
Error carries the exact TrackerError a test wants,
text and delay and all (issue #236’s rule): the fixed modes only ever
produce clean strings, so the arms of a caller’s outcome mapping — a
Rejected carrying the tracker’s own words, a Transient carrying a
provider-stated delay — would otherwise be unreachable from a test.
Variants§
FileOk
Accept and record the ticket.
NotConfigured
Report that no adapter is configured for this destination.
Report that the per-tenant credential was refused (401/403).
Rejected
Report that the tracker refused the ticket — a 4xx about the
draft, not about the credential.
Transient
A retryable failure with no delay stated.
Error(TrackerError)
Exactly this error, text and all.
Trait Implementations§
Source§impl Clone for TrackerMode
impl Clone for TrackerMode
Source§impl Debug for TrackerMode
impl Debug for TrackerMode
impl Eq for TrackerMode
Source§impl PartialEq for TrackerMode
impl PartialEq for TrackerMode
impl StructuralPartialEq for TrackerMode
Auto Trait Implementations§
impl Freeze for TrackerMode
impl RefUnwindSafe for TrackerMode
impl Send for TrackerMode
impl Sync for TrackerMode
impl Unpin for TrackerMode
impl UnsafeUnpin for TrackerMode
impl UnwindSafe for TrackerMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.