pub struct FileTransferPolicy { /* private fields */ }Expand description
Explicit source and destination roots for one host.
Implementations§
Source§impl FileTransferPolicy
impl FileTransferPolicy
Sourcepub fn new<SI, SP, DI, DP>(
source_roots: SI,
destination_roots: DI,
) -> InfraResult<Self>where
SI: IntoIterator<Item = SP>,
SP: Into<PathBuf>,
DI: IntoIterator<Item = DP>,
DP: Into<PathBuf>,
pub fn new<SI, SP, DI, DP>(
source_roots: SI,
destination_roots: DI,
) -> InfraResult<Self>where
SI: IntoIterator<Item = SP>,
SP: Into<PathBuf>,
DI: IntoIterator<Item = DP>,
DP: Into<PathBuf>,
Creates a policy with independent source and destination roots.
Trait Implementations§
Source§impl Clone for FileTransferPolicy
impl Clone for FileTransferPolicy
Source§fn clone(&self) -> FileTransferPolicy
fn clone(&self) -> FileTransferPolicy
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 FileTransferPolicy
impl Debug for FileTransferPolicy
Source§impl PartialEq for FileTransferPolicy
impl PartialEq for FileTransferPolicy
Source§fn eq(&self, other: &FileTransferPolicy) -> bool
fn eq(&self, other: &FileTransferPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FileTransferPolicy
impl StructuralPartialEq for FileTransferPolicy
Auto Trait Implementations§
impl Freeze for FileTransferPolicy
impl RefUnwindSafe for FileTransferPolicy
impl Send for FileTransferPolicy
impl Sync for FileTransferPolicy
impl Unpin for FileTransferPolicy
impl UnsafeUnpin for FileTransferPolicy
impl UnwindSafe for FileTransferPolicy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.