Struct backblaze_b2::raw::upload::UploadFileRequest
[−]
[src]
pub struct UploadFileRequest { /* fields omitted */ }
Contains an ongoing upload to the backblaze b2 api. This struct is created by the
create_upload_file_request
method.
Methods
impl UploadFileRequest
[src]
fn finish<InfoType>(self) -> Result<MoreFileInfo<InfoType>, B2Error> where
InfoType: Deserialize<'de>,
InfoType: Deserialize<'de>,
Finishes the upload of the file and returns information about the uploaded file.
Errors
This function returns a B2Error
in case something goes wrong. Besides the standard
errors, this function can fail with is_cap_exceeded
, is_invalid_sha1
.
Trait Implementations
impl Write for UploadFileRequest
[src]
fn write(&mut self, msg: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0
Creates a "by reference" adaptor for this instance of Write
. Read more