[−][src]Struct ffsend_api::pipe::progress::ProgressPipe
Methods
impl ProgressPipe
[src]
pub fn new(
cur: u64,
len: u64,
reporter: Option<Arc<Mutex<dyn ProgressReporter>>>
) -> Self
[src]
cur: u64,
len: u64,
reporter: Option<Arc<Mutex<dyn ProgressReporter>>>
) -> Self
Construct a new progress reporting pipe.
pub fn zero(
len: u64,
reporter: Option<Arc<Mutex<dyn ProgressReporter>>>
) -> Self
[src]
len: u64,
reporter: Option<Arc<Mutex<dyn ProgressReporter>>>
) -> Self
Construct a new progress reporting pipe.
Trait Implementations
impl Pipe for ProgressPipe
[src]
type Reader = ProgressReader
The wrapping reader type used for this pipe.
type Writer = ProgressWriter
The wrapping writer type used for this pipe.
fn pipe(&mut self, input: &[u8]) -> (usize, Option<Vec<u8>>)
[src]
fn reader(self, inner: Box<dyn Read>) -> Self::Reader
[src]
fn writer(self, inner: Box<dyn Write>) -> Self::Writer
[src]
fn pipe_transparent(&self, input: &[u8]) -> (usize, Option<Vec<u8>>)
[src]
Auto Trait Implementations
impl Send for ProgressPipe
impl Sync for ProgressPipe
impl Unpin for ProgressPipe
impl UnwindSafe for ProgressPipe
impl RefUnwindSafe for ProgressPipe
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> Same<T> for T
type Output = T
Should always be Self