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§fn eq(&self, other: &ActionReturn) -> bool
fn eq(&self, other: &ActionReturn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ActionReturn
impl PartialOrd for ActionReturn
source§fn partial_cmp(&self, other: &ActionReturn) -> Option<Ordering>
fn partial_cmp(&self, other: &ActionReturn) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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