[−][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]
Wrap the inner
reader, bytes that are read are transformed through this pipe.
fn writer(self, inner: Box<dyn Write>) -> Self::Writer
[src]
Wrap the inner
writer, bytes that are read are transformed through this pipe.
fn pipe_transparent(&self, input: &[u8]) -> (usize, Option<Vec<u8>>)
[src]
Transparently pipe input
by immediately returning it. Read more
Auto Trait Implementations
impl Send for ProgressPipe
impl Sync for ProgressPipe
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> Same for T
type Output = T
Should always be Self