pub struct NamedRootSelection {
pub roots: Vec<NamedRoot>,
pub missing_names: Vec<Vec<u8>>,
}Expand description
Result of loading roots for a retention policy.
Fields§
§roots: Vec<NamedRoot>Roots selected by the retention policy.
missing_names: Vec<Vec<u8>>Exact names requested by the policy that were not present.
Implementations§
Source§impl NamedRootSelection
impl NamedRootSelection
Sourcepub fn new(roots: Vec<NamedRoot>, missing_names: Vec<Vec<u8>>) -> Self
pub fn new(roots: Vec<NamedRoot>, missing_names: Vec<Vec<u8>>) -> Self
Create a new selection from roots and missing exact names.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether every exact name requested by the retention policy was present.
Sourcepub fn into_trees(self) -> Vec<Tree>
pub fn into_trees(self) -> Vec<Tree>
Consume the selection and return tree handles for GC APIs.
Trait Implementations§
Source§impl Clone for NamedRootSelection
impl Clone for NamedRootSelection
Source§fn clone(&self) -> NamedRootSelection
fn clone(&self) -> NamedRootSelection
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 moreSource§impl Debug for NamedRootSelection
impl Debug for NamedRootSelection
Source§impl Default for NamedRootSelection
impl Default for NamedRootSelection
Source§fn default() -> NamedRootSelection
fn default() -> NamedRootSelection
Returns the “default value” for a type. Read more
Source§impl PartialEq for NamedRootSelection
impl PartialEq for NamedRootSelection
impl StructuralPartialEq for NamedRootSelection
Auto Trait Implementations§
impl Freeze for NamedRootSelection
impl RefUnwindSafe for NamedRootSelection
impl Send for NamedRootSelection
impl Sync for NamedRootSelection
impl Unpin for NamedRootSelection
impl UnsafeUnpin for NamedRootSelection
impl UnwindSafe for NamedRootSelection
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> 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