pub enum OutputContract {
Fixed(PortContract),
Passthrough,
Unknown,
}Expand description
What a SrcPad emits.
Declared per pad rather than per element because
Tee and
FileDemuxer own several, and nothing
requires them to agree.
Variants§
Fixed(PortContract)
This pad emits exactly this and nothing else.
Passthrough
Whatever arrived on the input leaves here unchanged — a
Queue, a Tee, a
Pacer. This is what keeps a check alive
across the middle of a pipeline: the upstream contract is carried
through, so a decoder’s output still meets an encoder’s input two
queues later.
Unknown
No claim. The check goes dark from here on.
Trait Implementations§
Source§impl Clone for OutputContract
impl Clone for OutputContract
Source§fn clone(&self) -> OutputContract
fn clone(&self) -> OutputContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OutputContract
Source§impl Debug for OutputContract
impl Debug for OutputContract
Source§impl Display for OutputContract
impl Display for OutputContract
impl Eq for OutputContract
Source§impl PartialEq for OutputContract
impl PartialEq for OutputContract
impl StructuralPartialEq for OutputContract
Auto Trait Implementations§
impl Freeze for OutputContract
impl RefUnwindSafe for OutputContract
impl Send for OutputContract
impl Sync for OutputContract
impl Unpin for OutputContract
impl UnsafeUnpin for OutputContract
impl UnwindSafe for OutputContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more