Enum gstreamer::PadLinkReturn
source · #[repr(i32)]pub enum PadLinkReturn {
Ok = 0,
WrongHierarchy = -1,
WasLinked = -2,
WrongDirection = -3,
Noformat = -4,
Nosched = -5,
Refused = -6,
}
Variants§
Ok = 0
WrongHierarchy = -1
WasLinked = -2
WrongDirection = -3
Noformat = -4
Nosched = -5
Refused = -6
Implementations§
source§impl PadLinkReturn
impl PadLinkReturn
pub fn into_result(self) -> Result<PadLinkSuccess, PadLinkError>
pub fn from_error(v: PadLinkError) -> Self
pub fn from_ok(_: PadLinkSuccess) -> Self
Trait Implementations§
source§impl Clone for PadLinkReturn
impl Clone for PadLinkReturn
source§fn clone(&self) -> PadLinkReturn
fn clone(&self) -> PadLinkReturn
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PadLinkReturn
impl Debug for PadLinkReturn
source§impl From<PadLinkError> for PadLinkReturn
impl From<PadLinkError> for PadLinkReturn
source§fn from(value: PadLinkError) -> Self
fn from(value: PadLinkError) -> Self
Converts to this type from the input type.
source§impl From<PadLinkReturn> for Value
impl From<PadLinkReturn> for Value
source§fn from(v: PadLinkReturn) -> Self
fn from(v: PadLinkReturn) -> Self
Converts to this type from the input type.
source§impl From<PadLinkSuccess> for PadLinkReturn
impl From<PadLinkSuccess> for PadLinkReturn
source§fn from(value: PadLinkSuccess) -> Self
fn from(value: PadLinkSuccess) -> Self
Converts to this type from the input type.
source§impl From<Result<PadLinkSuccess, PadLinkError>> for PadLinkReturn
impl From<Result<PadLinkSuccess, PadLinkError>> for PadLinkReturn
source§fn from(res: Result<PadLinkSuccess, PadLinkError>) -> Self
fn from(res: Result<PadLinkSuccess, PadLinkError>) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for PadLinkReturn
impl<'a> FromValue<'a> for PadLinkReturn
§type Checker = GenericValueTypeChecker<PadLinkReturn>
type Checker = GenericValueTypeChecker<PadLinkReturn>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl Hash for PadLinkReturn
impl Hash for PadLinkReturn
source§impl Ord for PadLinkReturn
impl Ord for PadLinkReturn
source§fn cmp(&self, other: &PadLinkReturn) -> Ordering
fn cmp(&self, other: &PadLinkReturn) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PadLinkReturn
impl PartialEq for PadLinkReturn
source§impl PartialOrd for PadLinkReturn
impl PartialOrd for PadLinkReturn
source§impl StaticType for PadLinkReturn
impl StaticType for PadLinkReturn
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for PadLinkReturn
impl ToValue for PadLinkReturn
source§impl ValueType for PadLinkReturn
impl ValueType for PadLinkReturn
§type Type = PadLinkReturn
type Type = PadLinkReturn
Type to get the
Type
from. Read moreimpl Copy for PadLinkReturn
impl Eq for PadLinkReturn
impl StructuralPartialEq for PadLinkReturn
Auto Trait Implementations§
impl Freeze for PadLinkReturn
impl RefUnwindSafe for PadLinkReturn
impl Send for PadLinkReturn
impl Sync for PadLinkReturn
impl Unpin for PadLinkReturn
impl UnwindSafe for PadLinkReturn
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.