pub struct FileTransferConfig {
pub root: PathBuf,
pub inbox: PathBuf,
pub node_id: String,
pub wire_deadline: Duration,
}Fields§
§root: PathBufThe only directory send_to will read out of. Everything outside is refused.
inbox: PathBufWhere received files land — what inbox_list reads. Normally the same path as
super::TransferConfig::inbox on the same node.
node_id: StringThis node’s own identifier, mixed into transfer_id so two nodes sending the same file
under the same name do not collide in the receiver’s .part slot.
A uniqueness salt, not a trust anchor. Nothing is authorized by it and nothing is pinned under it — attacca issues it and can issue another one at will.
wire_deadline: DurationTrait Implementations§
Source§impl Clone for FileTransferConfig
impl Clone for FileTransferConfig
Source§fn clone(&self) -> FileTransferConfig
fn clone(&self) -> FileTransferConfig
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 FileTransferConfig
impl Debug for FileTransferConfig
Source§impl Default for FileTransferConfig
impl Default for FileTransferConfig
Source§fn default() -> FileTransferConfig
fn default() -> FileTransferConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileTransferConfig
impl RefUnwindSafe for FileTransferConfig
impl Send for FileTransferConfig
impl Sync for FileTransferConfig
impl Unpin for FileTransferConfig
impl UnsafeUnpin for FileTransferConfig
impl UnwindSafe for FileTransferConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more