Enum gstreamer_validate::ActionReturn
source · #[repr(i32)]pub enum ActionReturn {
Error = 0,
Ok = 1,
Async = 2,
NonBlocking = 3,
ErrorReported = 4,
InProgress = 5,
None = 6,
Done = 7,
}
Variants§
Implementations§
source§impl ActionReturn
impl ActionReturn
pub fn into_result(self) -> Result<ActionSuccess, ActionError>
pub fn from_error(v: ActionError) -> Self
pub fn from_ok(v: ActionSuccess) -> Self
Trait Implementations§
source§impl Clone for ActionReturn
impl Clone for ActionReturn
source§fn clone(&self) -> ActionReturn
fn clone(&self) -> ActionReturn
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 ActionReturn
impl Debug for ActionReturn
source§impl Hash for ActionReturn
impl Hash for ActionReturn
source§impl Ord for ActionReturn
impl Ord for ActionReturn
source§fn cmp(&self, other: &ActionReturn) -> Ordering
fn cmp(&self, other: &ActionReturn) -> 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 ActionReturn
impl PartialEq for ActionReturn
source§impl PartialOrd for ActionReturn
impl PartialOrd for ActionReturn
impl Copy for ActionReturn
impl Eq for ActionReturn
impl StructuralPartialEq for ActionReturn
Auto Trait Implementations§
impl Freeze for ActionReturn
impl RefUnwindSafe for ActionReturn
impl Send for ActionReturn
impl Sync for ActionReturn
impl Unpin for ActionReturn
impl UnwindSafe for ActionReturn
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> 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 more