pub struct TransferResponse {Show 13 fields
pub ok: bool,
pub error: Option<String>,
pub params: TransferParams,
pub kind: Option<TransferKind>,
pub transport_used: TransferTransport,
pub fallback_chain: Vec<TransferTransport>,
pub remote_home: Option<String>,
pub local_root: String,
pub resolved_paths: Option<ResolvedPaths>,
pub staging: Option<TransferStaging>,
pub counts: Option<TransferCounts>,
pub elapsed_ms: Option<u64>,
pub semantics: Option<String>,
}Fields§
§ok: bool§error: Option<String>§params: TransferParams§kind: Option<TransferKind>§transport_used: TransferTransport§fallback_chain: Vec<TransferTransport>§remote_home: Option<String>§local_root: String§resolved_paths: Option<ResolvedPaths>§staging: Option<TransferStaging>§counts: Option<TransferCounts>§elapsed_ms: Option<u64>§semantics: Option<String>Implementations§
Source§impl TransferResponse
impl TransferResponse
pub fn ok_stub( params: TransferParams, transport_used: TransferTransport, remote_home: &str, local_root: &Path, ) -> Self
pub fn error(params: TransferParams, local_root: &Path, msg: &str) -> Self
pub fn set_error(&mut self, msg: &str)
Source§impl TransferResponse
impl TransferResponse
Sourcepub fn to_compact(&self) -> CompactTransferResponse
pub fn to_compact(&self) -> CompactTransferResponse
Convert to compact representation for non-verbose responses.
Trait Implementations§
Source§impl Clone for TransferResponse
impl Clone for TransferResponse
Source§fn clone(&self) -> TransferResponse
fn clone(&self) -> TransferResponse
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 TransferResponse
impl Debug for TransferResponse
Source§impl<'de> Deserialize<'de> for TransferResponse
impl<'de> Deserialize<'de> for TransferResponse
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 TransferResponse
impl RefUnwindSafe for TransferResponse
impl Send for TransferResponse
impl Sync for TransferResponse
impl Unpin for TransferResponse
impl UnsafeUnpin for TransferResponse
impl UnwindSafe for TransferResponse
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