pub enum InputContract {
Fixed(PortContract),
Any,
Unknown,
}Expand description
What a Sink can be fed.
Any and Unknown both link to
anything, but they mean opposite things and differ in what happens
downstream of the element — see OutputContract::Passthrough.
Variants§
Fixed(PortContract)
This element accepts exactly this and nothing else.
Any
A guarantee that every MediaKind is handled. A
Queue forwards whatever it is given; an
AppSink hands every buffer to its
closure. Note the scope: this promises the element passes each
kind along, not that the application’s own closure will succeed
with it. A closure that only understands packets still returns its
own error, which is outside what a link check can or should know.
Unknown
No claim. Links to anything, and stops the check from continuing past this element, because nothing here knows what comes out.
Trait Implementations§
Source§impl Clone for InputContract
impl Clone for InputContract
Source§fn clone(&self) -> InputContract
fn clone(&self) -> InputContract
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 InputContract
Source§impl Debug for InputContract
impl Debug for InputContract
Source§impl Display for InputContract
impl Display for InputContract
impl Eq for InputContract
Source§impl PartialEq for InputContract
impl PartialEq for InputContract
impl StructuralPartialEq for InputContract
Auto Trait Implementations§
impl Freeze for InputContract
impl RefUnwindSafe for InputContract
impl Send for InputContract
impl Sync for InputContract
impl Unpin for InputContract
impl UnsafeUnpin for InputContract
impl UnwindSafe for InputContract
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