Enum clio::SizedOutput [−][src]
Expand description
A builder for Output that allows setting the size before writing. This is mostly usefull with the “http” feature for setting the Content-Length header
Variants
Stdout(Stdout)
Implementations
impl SizedOutput
[src]
impl SizedOutput
[src]pub fn new<S: AsRef<OsStr>>(path: S) -> Result<Self>
[src]
pub fn new<S: AsRef<OsStr>>(path: S) -> Result<Self>
[src]Contructs a new output either by opening/creating the file or for ‘-’ returning stdout
pub fn try_from_os_str(path: &OsStr) -> Result<Self, OsString>
[src]
pub fn try_from_os_str(path: &OsStr) -> Result<Self, OsString>
[src]Contructs a new output either by opening/creating the file or for ‘-’ returning stdout The error is converted to a OsString so that stuctopt can show it to the user
pub fn with_len(self, size: u64) -> Result<Output>
[src]
pub fn with_len(self, size: u64) -> Result<Output>
[src]set the length of the file, either as the content-length header of the http put
pub fn without_len(self) -> Result<Output>
[src]
pub fn maybe_with_len(self, size: Option<u64>) -> Result<Output>
[src]
Trait Implementations
impl Display for SizedOutput
[src]
impl Display for SizedOutput
[src]Auto Trait Implementations
impl RefUnwindSafe for SizedOutput
impl Send for SizedOutput
impl Sync for SizedOutput
impl Unpin for SizedOutput
impl UnwindSafe for SizedOutput
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more