[][src]Enum gstreamer::PadLinkReturn

#[must_use]
#[non_exhaustive]pub enum PadLinkReturn {
    Ok,
    WrongHierarchy,
    WasLinked,
    WrongDirection,
    Noformat,
    Nosched,
    Refused,
    // some variants omitted
}

Result values from gst_pad_link and friends.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok

link succeeded

WrongHierarchy

pads have no common grandparent

WasLinked

pad was already linked

WrongDirection

pads have wrong direction

Noformat

pads do not have common format

Nosched

pads cannot cooperate in scheduling

Refused

refused for some reason

Implementations

impl PadLinkReturn[src]

pub fn into_result(self) -> Result<PadLinkSuccess, PadLinkError>[src]

pub fn from_error(v: PadLinkError) -> Self[src]

pub fn from_ok(_: PadLinkSuccess) -> Self[src]

Trait Implementations

impl Clone for PadLinkReturn[src]

impl Copy for PadLinkReturn[src]

impl Debug for PadLinkReturn[src]

impl Eq for PadLinkReturn[src]

impl From<PadLinkError> for PadLinkReturn[src]

impl From<PadLinkSuccess> for PadLinkReturn[src]

impl From<Result<PadLinkSuccess, PadLinkError>> for PadLinkReturn[src]

impl<'a> FromValue<'a> for PadLinkReturn[src]

impl<'a> FromValueOptional<'a> for PadLinkReturn[src]

impl Hash for PadLinkReturn[src]

impl Ord for PadLinkReturn[src]

impl PartialEq<PadLinkReturn> for PadLinkReturn[src]

impl PartialOrd<PadLinkReturn> for PadLinkReturn[src]

impl SetValue for PadLinkReturn[src]

impl StaticType for PadLinkReturn[src]

impl StructuralEq for PadLinkReturn[src]

impl StructuralPartialEq for PadLinkReturn[src]

Auto Trait Implementations

impl RefUnwindSafe for PadLinkReturn

impl Send for PadLinkReturn

impl Sync for PadLinkReturn

impl Unpin for PadLinkReturn

impl UnwindSafe for PadLinkReturn

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.