pub struct SyncConfig {
pub container_user: String,
pub ssh_port: u16,
pub container_ip: Option<String>,
pub ssh_public_key_file: Option<String>,
pub ssh_identity_file: Option<String>,
pub paths: Vec<SyncPath>,
pub exclude_patterns: Vec<String>,
pub machine_specific_patterns: Vec<String>,
}Fields§
§container_user: StringUser/login on the sync container (usually “root”).
ssh_port: u16SSH port the container listens on.
container_ip: Option<String>Override the detected container IP (e.g. when behind NAT).
ssh_public_key_file: Option<String>SSH public key file to inject into the container.
ssh_identity_file: Option<String>SSH private key/identity file used for subsequent connections.
paths: Vec<SyncPath>Paths to sync between the local machine and the container.
exclude_patterns: Vec<String>rsync --exclude patterns applied to every transfer.
machine_specific_patterns: Vec<String>Extra machine-specific patterns appended to the built-in list. These are combined with MACHINE_SPECIFIC_PATTERNS in ignore.rs.
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SyncConfig
impl Debug for SyncConfig
Source§impl<'de> Deserialize<'de> for SyncConfig
impl<'de> Deserialize<'de> for SyncConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
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