pub struct Policy {
pub months: u32,
}Expand description
How long a channel supports a layer, in whole months from its issue date.
Policy, not per-release typing: a horizon a human enters each time is one that drifts, and the drift is invisible because every value looks plausible.
Fields§
§months: u32Implementations§
Source§impl Policy
impl Policy
Sourcepub fn for_channel(channel: &str) -> Option<Policy>
pub fn for_channel(channel: &str) -> Option<Policy>
The stated policy for a channel.
rolling is short on purpose. It makes no qualification promise and
moves continuously; a long window would imply a stability it does not
have. qualified is where a long horizon belongs, because that is the
channel an assessor is pointed at.
Trait Implementations§
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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