Struct gstreamer::PadProbeType
[−]
pub struct PadProbeType { /* fields omitted */ }
Methods
impl PadProbeType
pub const INVALID: PadProbeType
INVALID: PadProbeType = PadProbeType{bits: 0,}
pub const IDLE: PadProbeType
IDLE: PadProbeType = PadProbeType{bits: 1,}
pub const BLOCK: PadProbeType
BLOCK: PadProbeType = PadProbeType{bits: 2,}
pub const BUFFER: PadProbeType
BUFFER: PadProbeType = PadProbeType{bits: 16,}
pub const BUFFER_LIST: PadProbeType
BUFFER_LIST: PadProbeType = PadProbeType{bits: 32,}
pub const EVENT_DOWNSTREAM: PadProbeType
EVENT_DOWNSTREAM: PadProbeType = PadProbeType{bits: 64,}
pub const EVENT_UPSTREAM: PadProbeType
EVENT_UPSTREAM: PadProbeType = PadProbeType{bits: 128,}
pub const EVENT_FLUSH: PadProbeType
EVENT_FLUSH: PadProbeType = PadProbeType{bits: 256,}
pub const QUERY_DOWNSTREAM: PadProbeType
QUERY_DOWNSTREAM: PadProbeType = PadProbeType{bits: 512,}
pub const QUERY_UPSTREAM: PadProbeType
QUERY_UPSTREAM: PadProbeType = PadProbeType{bits: 1024,}
pub const PUSH: PadProbeType
PUSH: PadProbeType = PadProbeType{bits: 4096,}
pub const PULL: PadProbeType
PULL: PadProbeType = PadProbeType{bits: 8192,}
pub const BLOCKING: PadProbeType
BLOCKING: PadProbeType = PadProbeType{bits: 3,}
pub const DATA_DOWNSTREAM: PadProbeType
DATA_DOWNSTREAM: PadProbeType = PadProbeType{bits: 112,}
pub const DATA_UPSTREAM: PadProbeType
DATA_UPSTREAM: PadProbeType = PadProbeType{bits: 128,}
pub const DATA_BOTH: PadProbeType
DATA_BOTH: PadProbeType = PadProbeType{bits: 240,}
pub const BLOCK_DOWNSTREAM: PadProbeType
BLOCK_DOWNSTREAM: PadProbeType = PadProbeType{bits: 114,}
pub const BLOCK_UPSTREAM: PadProbeType
BLOCK_UPSTREAM: PadProbeType = PadProbeType{bits: 130,}
pub const EVENT_BOTH: PadProbeType
EVENT_BOTH: PadProbeType = PadProbeType{bits: 192,}
pub const QUERY_BOTH: PadProbeType
QUERY_BOTH: PadProbeType = PadProbeType{bits: 1536,}
pub const ALL_BOTH: PadProbeType
ALL_BOTH: PadProbeType = PadProbeType{bits: 1776,}
pub const SCHEDULING: PadProbeType
SCHEDULING: PadProbeType = PadProbeType{bits: 12288,}
pub fn empty() -> PadProbeType
Returns an empty set of flags.
pub fn all() -> PadProbeType
Returns the set containing all flags.
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<PadProbeType>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> PadProbeType
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: PadProbeType) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: PadProbeType) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: PadProbeType)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: PadProbeType)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: PadProbeType)
Toggles the specified flags in-place.
pub fn set(&mut self, other: PadProbeType, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for PadProbeType
impl PartialEq for PadProbeType
fn eq(&self, __arg_0: &PadProbeType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PadProbeType) -> bool
This method tests for !=
.
impl Eq for PadProbeType
impl Clone for PadProbeType
fn clone(&self) -> PadProbeType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for PadProbeType
fn partial_cmp(&self, __arg_0: &PadProbeType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &PadProbeType) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &PadProbeType) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &PadProbeType) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &PadProbeType) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PadProbeType
fn cmp(&self, __arg_0: &PadProbeType) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for PadProbeType
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for PadProbeType
impl Binary for PadProbeType
impl Octal for PadProbeType
impl LowerHex for PadProbeType
impl UpperHex for PadProbeType
impl BitOr for PadProbeType
type Output = PadProbeType
The resulting type after applying the |
operator.
fn bitor(self, other: PadProbeType) -> PadProbeType
Returns the union of the two sets of flags.
impl BitOrAssign for PadProbeType
fn bitor_assign(&mut self, other: PadProbeType)
Adds the set of flags.
impl BitXor for PadProbeType
type Output = PadProbeType
The resulting type after applying the ^
operator.
fn bitxor(self, other: PadProbeType) -> PadProbeType
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for PadProbeType
fn bitxor_assign(&mut self, other: PadProbeType)
Toggles the set of flags.
impl BitAnd for PadProbeType
type Output = PadProbeType
The resulting type after applying the &
operator.
fn bitand(self, other: PadProbeType) -> PadProbeType
Returns the intersection between the two sets of flags.
impl BitAndAssign for PadProbeType
fn bitand_assign(&mut self, other: PadProbeType)
Disables all flags disabled in the set.
impl Sub for PadProbeType
type Output = PadProbeType
The resulting type after applying the -
operator.
fn sub(self, other: PadProbeType) -> PadProbeType
Returns the set difference of the two sets of flags.
impl SubAssign for PadProbeType
fn sub_assign(&mut self, other: PadProbeType)
Disables all flags enabled in the set.
impl Not for PadProbeType
type Output = PadProbeType
The resulting type after applying the !
operator.
fn not(self) -> PadProbeType
Returns the complement of this set of flags.
impl Extend<PadProbeType> for PadProbeType
fn extend<T: IntoIterator<Item = PadProbeType>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<PadProbeType> for PadProbeType
fn from_iter<T: IntoIterator<Item = PadProbeType>>(iterator: T) -> PadProbeType
Creates a value from an iterator. Read more
impl StaticType for PadProbeType
[src]
fn static_type() -> Type
[src]
Returns the type identifier of Self
.