Struct gstreamer_rtsp::RTSPProfile [−]
pub struct RTSPProfile { /* fields omitted */ }
Methods
impl RTSPProfile
impl RTSPProfile
pub const UNKNOWN: RTSPProfile
UNKNOWN: RTSPProfile = RTSPProfile{bits: 0,}
pub const AVP: RTSPProfile
AVP: RTSPProfile = RTSPProfile{bits: 1,}
pub const SAVP: RTSPProfile
SAVP: RTSPProfile = RTSPProfile{bits: 2,}
pub const AVPF: RTSPProfile
AVPF: RTSPProfile = RTSPProfile{bits: 4,}
pub const SAVPF: RTSPProfile
SAVPF: RTSPProfile = RTSPProfile{bits: 8,}
pub fn empty() -> RTSPProfile
pub fn empty() -> RTSPProfile
Returns an empty set of flags.
pub fn all() -> RTSPProfile
pub fn all() -> RTSPProfile
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<RTSPProfile>
pub fn from_bits(bits: u32) -> Option<RTSPProfile>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> RTSPProfile
pub fn from_bits_truncate(bits: u32) -> RTSPProfile
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: RTSPProfile) -> bool
pub fn intersects(&self, other: RTSPProfile) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: RTSPProfile) -> bool
pub fn contains(&self, other: RTSPProfile) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: RTSPProfile)
pub fn insert(&mut self, other: RTSPProfile)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: RTSPProfile)
pub fn remove(&mut self, other: RTSPProfile)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: RTSPProfile)
pub fn toggle(&mut self, other: RTSPProfile)
Toggles the specified flags in-place.
pub fn set(&mut self, other: RTSPProfile, value: bool)
pub fn set(&mut self, other: RTSPProfile, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for RTSPProfile
impl Copy for RTSPProfile
impl PartialEq for RTSPProfile
impl PartialEq for RTSPProfile
fn eq(&self, other: &RTSPProfile) -> bool
fn eq(&self, other: &RTSPProfile) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RTSPProfile) -> bool
fn ne(&self, other: &RTSPProfile) -> bool
This method tests for !=
.
impl Eq for RTSPProfile
impl Eq for RTSPProfile
impl Clone for RTSPProfile
impl Clone for RTSPProfile
fn clone(&self) -> RTSPProfile
fn clone(&self) -> RTSPProfile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for RTSPProfile
impl PartialOrd for RTSPProfile
fn partial_cmp(&self, other: &RTSPProfile) -> Option<Ordering>
fn partial_cmp(&self, other: &RTSPProfile) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &RTSPProfile) -> bool
fn lt(&self, other: &RTSPProfile) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &RTSPProfile) -> bool
fn le(&self, other: &RTSPProfile) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &RTSPProfile) -> bool
fn gt(&self, other: &RTSPProfile) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &RTSPProfile) -> bool
fn ge(&self, other: &RTSPProfile) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for RTSPProfile
impl Ord for RTSPProfile
fn cmp(&self, other: &RTSPProfile) -> Ordering
fn cmp(&self, other: &RTSPProfile) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for RTSPProfile
impl Hash for RTSPProfile
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for RTSPProfile
impl Debug for RTSPProfile
impl Binary for RTSPProfile
impl Binary for RTSPProfile
impl Octal for RTSPProfile
impl Octal for RTSPProfile
impl LowerHex for RTSPProfile
impl LowerHex for RTSPProfile
impl UpperHex for RTSPProfile
impl UpperHex for RTSPProfile
impl BitOr for RTSPProfile
impl BitOr for RTSPProfile
type Output = RTSPProfile
The resulting type after applying the |
operator.
fn bitor(self, other: RTSPProfile) -> RTSPProfile
fn bitor(self, other: RTSPProfile) -> RTSPProfile
Returns the union of the two sets of flags.
impl BitOrAssign for RTSPProfile
impl BitOrAssign for RTSPProfile
fn bitor_assign(&mut self, other: RTSPProfile)
fn bitor_assign(&mut self, other: RTSPProfile)
Adds the set of flags.
impl BitXor for RTSPProfile
impl BitXor for RTSPProfile
type Output = RTSPProfile
The resulting type after applying the ^
operator.
fn bitxor(self, other: RTSPProfile) -> RTSPProfile
fn bitxor(self, other: RTSPProfile) -> RTSPProfile
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for RTSPProfile
impl BitXorAssign for RTSPProfile
fn bitxor_assign(&mut self, other: RTSPProfile)
fn bitxor_assign(&mut self, other: RTSPProfile)
Toggles the set of flags.
impl BitAnd for RTSPProfile
impl BitAnd for RTSPProfile
type Output = RTSPProfile
The resulting type after applying the &
operator.
fn bitand(self, other: RTSPProfile) -> RTSPProfile
fn bitand(self, other: RTSPProfile) -> RTSPProfile
Returns the intersection between the two sets of flags.
impl BitAndAssign for RTSPProfile
impl BitAndAssign for RTSPProfile
fn bitand_assign(&mut self, other: RTSPProfile)
fn bitand_assign(&mut self, other: RTSPProfile)
Disables all flags disabled in the set.
impl Sub for RTSPProfile
impl Sub for RTSPProfile
type Output = RTSPProfile
The resulting type after applying the -
operator.
fn sub(self, other: RTSPProfile) -> RTSPProfile
fn sub(self, other: RTSPProfile) -> RTSPProfile
Returns the set difference of the two sets of flags.
impl SubAssign for RTSPProfile
impl SubAssign for RTSPProfile
fn sub_assign(&mut self, other: RTSPProfile)
fn sub_assign(&mut self, other: RTSPProfile)
Disables all flags enabled in the set.
impl Not for RTSPProfile
impl Not for RTSPProfile
type Output = RTSPProfile
The resulting type after applying the !
operator.
fn not(self) -> RTSPProfile
fn not(self) -> RTSPProfile
Returns the complement of this set of flags.
impl Extend<RTSPProfile> for RTSPProfile
impl Extend<RTSPProfile> for RTSPProfile
fn extend<T: IntoIterator<Item = RTSPProfile>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = RTSPProfile>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<RTSPProfile> for RTSPProfile
impl FromIterator<RTSPProfile> for RTSPProfile
fn from_iter<T: IntoIterator<Item = RTSPProfile>>(iterator: T) -> RTSPProfile
fn from_iter<T: IntoIterator<Item = RTSPProfile>>(iterator: T) -> RTSPProfile
Creates a value from an iterator. Read more
impl StaticType for RTSPProfile
[src]
impl StaticType for RTSPProfile
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for RTSPProfile
[src]
impl<'a> FromValueOptional<'a> for RTSPProfile
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
impl<'a> FromValue<'a> for RTSPProfile
[src]
impl<'a> FromValue<'a> for RTSPProfile
unsafe fn from_value(value: &Value) -> Self
[src]
unsafe fn from_value(value: &Value) -> Self
impl SetValue for RTSPProfile
[src]
impl SetValue for RTSPProfile
Auto Trait Implementations
impl Send for RTSPProfile
impl Send for RTSPProfile
impl Sync for RTSPProfile
impl Sync for RTSPProfile