pub struct TransferSelection { /* private fields */ }Expand description
Shared path and UTC timestamp selection rules.
Implementations§
Source§impl TransferSelection
impl TransferSelection
Sourcepub fn new(
include: &[String],
exclude: &[String],
newer_than: Option<Timestamp>,
older_than: Option<Timestamp>,
rewind: Option<Timestamp>,
) -> Result<Self>
pub fn new( include: &[String], exclude: &[String], newer_than: Option<Timestamp>, older_than: Option<Timestamp>, rewind: Option<Timestamp>, ) -> Result<Self>
Compile a deterministic selection policy.
Include patterns restrict the candidate set when at least one is present. Exclude patterns
are applied afterwards and always win, independent of command-line flag order. newer_than
and older_than use strict comparisons; rewind includes the boundary itself.
Sourcepub fn matches<T>(&self, candidate: &TransferCandidate<T>) -> bool
pub fn matches<T>(&self, candidate: &TransferCandidate<T>) -> bool
Return whether a candidate satisfies every configured rule.
Trait Implementations§
Source§impl Clone for TransferSelection
impl Clone for TransferSelection
Source§fn clone(&self) -> TransferSelection
fn clone(&self) -> TransferSelection
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 TransferSelection
impl Debug for TransferSelection
Source§impl Default for TransferSelection
impl Default for TransferSelection
Source§fn default() -> TransferSelection
fn default() -> TransferSelection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransferSelection
impl RefUnwindSafe for TransferSelection
impl Send for TransferSelection
impl Sync for TransferSelection
impl Unpin for TransferSelection
impl UnsafeUnpin for TransferSelection
impl UnwindSafe for TransferSelection
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