Struct ffsend_api::action::upload::Upload
source · pub struct Upload { /* private fields */ }
Expand description
A file upload action to a Send server.
Implementations
sourceimpl Upload
impl Upload
sourcepub fn new(
host: Url,
path: PathBuf,
name: Option<String>,
password: Option<String>,
params: Option<ParamsData>
) -> Self
pub fn new(
host: Url,
path: PathBuf,
name: Option<String>,
password: Option<String>,
params: Option<ParamsData>
) -> Self
Construct a new upload action.
sourcepub fn invoke(
self,
client: &Client,
reporter: &Arc<Mutex<dyn ProgressReporter>>
) -> Result<RemoteFile, Error>
pub fn invoke(
self,
client: &Client,
reporter: &Arc<Mutex<dyn ProgressReporter>>
) -> Result<RemoteFile, Error>
Invoke the upload action.
Auto Trait Implementations
impl RefUnwindSafe for Upload
impl Send for Upload
impl Sync for Upload
impl Unpin for Upload
impl UnwindSafe for Upload
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more