pub struct PolicyOutput {
pub new_max_bytes: Vec<u64>,
pub verdict: Verdict,
}Expand description
The policy returns one new cap per input cache, same order, plus a
Verdict explaining the decision.
Fields§
§new_max_bytes: Vec<u64>New max_bytes for each cache, parallel to
PolicyInput::caches.
verdict: VerdictWhat the policy decided this tick and why.
Trait Implementations§
Source§impl Clone for PolicyOutput
impl Clone for PolicyOutput
Source§impl Debug for PolicyOutput
impl Debug for PolicyOutput
Auto Trait Implementations§
impl Freeze for PolicyOutput
impl RefUnwindSafe for PolicyOutput
impl Send for PolicyOutput
impl Sync for PolicyOutput
impl Unpin for PolicyOutput
impl UnsafeUnpin for PolicyOutput
impl UnwindSafe for PolicyOutput
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