pub enum PolicyEvent {
Quota {
lane: String,
remaining_fraction: f64,
reset_at: Option<u64>,
},
Probe {
lane: String,
ok: bool,
message: String,
},
LaneSelected {
lane: String,
manual: bool,
},
LaneExhausted {
lane: String,
until: Option<u64>,
},
LaneSkipped {
lane: String,
},
Handover {
path: PathBuf,
},
}Variants§
Quota
What a harness reported about its quota before a lane was chosen.
Probe
LaneSelected
LaneExhausted
LaneSkipped
Handover
Trait Implementations§
Source§impl Clone for PolicyEvent
impl Clone for PolicyEvent
Source§impl Debug for PolicyEvent
impl Debug for PolicyEvent
Source§impl<'de> Deserialize<'de> for PolicyEvent
impl<'de> Deserialize<'de> for PolicyEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PolicyEvent
impl PartialEq for PolicyEvent
Source§impl Serialize for PolicyEvent
impl Serialize for PolicyEvent
impl StructuralPartialEq for PolicyEvent
Auto Trait Implementations§
impl Forget for PolicyEvent
impl Freeze for PolicyEvent
impl Move for PolicyEvent
impl RefUnwindSafe for PolicyEvent
impl Send for PolicyEventwhere
RawVecInner: Send,
impl Sync for PolicyEventwhere
RawVecInner: Sync,
impl Unpin for PolicyEvent
impl UnsafeUnpin for PolicyEvent
impl UnwindSafe for PolicyEventwhere
RawVecInner: UnwindSafe,
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