Enum streamcatcher::TransformPosition [−][src]
pub enum TransformPosition {
Read(usize),
Finished,
}
Variants
Read(usize)
Tuple Fields
0: usize
Indication that a stream has not yet finished.
This has different semantics from Read::read
. Ordinarily, Ok(0)
denotes the end-of-file,
but some transforms (e.g., audio compression) need to read in enough bytes before
they can output any further data, and might return Read(0)
.
Finished
Indication that a stream has definitely finished.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TransformPosition
impl Send for TransformPosition
impl Sync for TransformPosition
impl Unpin for TransformPosition
impl UnwindSafe for TransformPosition
Blanket Implementations
Mutably borrows from an owned value. Read more