Struct palmrs_sync::conduit::ConduitHandler
source · pub struct ConduitHandler {
pub sync_mode: SyncMode,
pub conduit_name: String,
pub conduit_config: HashMap<OsString, OsString>,
pub path_local: PathBuf,
pub path_device: PathBuf,
}
Expand description
Conduit call handler
Fields§
§sync_mode: SyncMode
§conduit_name: String
§conduit_config: HashMap<OsString, OsString>
§path_local: PathBuf
§path_device: PathBuf
Implementations§
source§impl ConduitHandler
impl ConduitHandler
pub fn new(conduit_name: &str, sync_mode: SyncMode) -> Self
pub fn make_config_prefix(&self) -> OsString
pub fn make_argv(&self) -> Vec<OsString>
pub fn make_environment(&self) -> Vec<(OsString, OsString)>
pub fn popen(&self, stdout: Redirection, stderr: Redirection) -> Result<Popen>
Trait Implementations§
source§impl Clone for ConduitHandler
impl Clone for ConduitHandler
source§fn clone(&self) -> ConduitHandler
fn clone(&self) -> ConduitHandler
Returns a copy 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 ConduitHandler
impl Debug for ConduitHandler
source§impl PartialEq<ConduitHandler> for ConduitHandler
impl PartialEq<ConduitHandler> for ConduitHandler
source§fn eq(&self, other: &ConduitHandler) -> bool
fn eq(&self, other: &ConduitHandler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConduitHandler
Auto Trait Implementations§
impl RefUnwindSafe for ConduitHandler
impl Send for ConduitHandler
impl Sync for ConduitHandler
impl Unpin for ConduitHandler
impl UnwindSafe for ConduitHandler
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