Struct sqa_jack::JackOpenOptions
source · pub struct JackOpenOptions { /* private fields */ }
Expand description
Options for opening a connection to JACK, formed by OR-ing together desired values
from the consts OPEN_*
.
Implementations
sourceimpl JackOpenOptions
impl JackOpenOptions
sourcepub fn empty() -> JackOpenOptions
pub fn empty() -> JackOpenOptions
Returns an empty set of flags.
sourcepub fn all() -> JackOpenOptions
pub fn all() -> JackOpenOptions
Returns the set containing all flags.
sourcepub fn from_bits(bits: c_uint) -> Option<JackOpenOptions>
pub fn from_bits(bits: c_uint) -> Option<JackOpenOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub fn from_bits_truncate(bits: c_uint) -> JackOpenOptions
pub fn from_bits_truncate(bits: c_uint) -> JackOpenOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub fn intersects(&self, other: JackOpenOptions) -> bool
pub fn intersects(&self, other: JackOpenOptions) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub fn contains(&self, other: JackOpenOptions) -> bool
pub fn contains(&self, other: JackOpenOptions) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: JackOpenOptions)
pub fn insert(&mut self, other: JackOpenOptions)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: JackOpenOptions)
pub fn remove(&mut self, other: JackOpenOptions)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: JackOpenOptions)
pub fn toggle(&mut self, other: JackOpenOptions)
Toggles the specified flags in-place.
Trait Implementations
sourceimpl BitAnd<JackOpenOptions> for JackOpenOptions
impl BitAnd<JackOpenOptions> for JackOpenOptions
sourcefn bitand(self, other: JackOpenOptions) -> JackOpenOptions
fn bitand(self, other: JackOpenOptions) -> JackOpenOptions
Returns the intersection between the two sets of flags.
type Output = JackOpenOptions
type Output = JackOpenOptions
&
operator.sourceimpl BitAndAssign<JackOpenOptions> for JackOpenOptions
impl BitAndAssign<JackOpenOptions> for JackOpenOptions
sourcefn bitand_assign(&mut self, other: JackOpenOptions)
fn bitand_assign(&mut self, other: JackOpenOptions)
Disables all flags disabled in the set.
sourceimpl BitOr<JackOpenOptions> for JackOpenOptions
impl BitOr<JackOpenOptions> for JackOpenOptions
sourcefn bitor(self, other: JackOpenOptions) -> JackOpenOptions
fn bitor(self, other: JackOpenOptions) -> JackOpenOptions
Returns the union of the two sets of flags.
type Output = JackOpenOptions
type Output = JackOpenOptions
|
operator.sourceimpl BitOrAssign<JackOpenOptions> for JackOpenOptions
impl BitOrAssign<JackOpenOptions> for JackOpenOptions
sourcefn bitor_assign(&mut self, other: JackOpenOptions)
fn bitor_assign(&mut self, other: JackOpenOptions)
Adds the set of flags.
sourceimpl BitXor<JackOpenOptions> for JackOpenOptions
impl BitXor<JackOpenOptions> for JackOpenOptions
sourcefn bitxor(self, other: JackOpenOptions) -> JackOpenOptions
fn bitxor(self, other: JackOpenOptions) -> JackOpenOptions
Returns the left flags, but with all the right flags toggled.
type Output = JackOpenOptions
type Output = JackOpenOptions
^
operator.sourceimpl BitXorAssign<JackOpenOptions> for JackOpenOptions
impl BitXorAssign<JackOpenOptions> for JackOpenOptions
sourcefn bitxor_assign(&mut self, other: JackOpenOptions)
fn bitxor_assign(&mut self, other: JackOpenOptions)
Toggles the set of flags.
sourceimpl Clone for JackOpenOptions
impl Clone for JackOpenOptions
sourcefn clone(&self) -> JackOpenOptions
fn clone(&self) -> JackOpenOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for JackOpenOptions
impl Debug for JackOpenOptions
sourceimpl Extend<JackOpenOptions> for JackOpenOptions
impl Extend<JackOpenOptions> for JackOpenOptions
sourcefn extend<T: IntoIterator<Item = JackOpenOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = JackOpenOptions>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)sourceimpl FromIterator<JackOpenOptions> for JackOpenOptions
impl FromIterator<JackOpenOptions> for JackOpenOptions
sourcefn from_iter<T: IntoIterator<Item = JackOpenOptions>>(
iterator: T
) -> JackOpenOptions
fn from_iter<T: IntoIterator<Item = JackOpenOptions>>(
iterator: T
) -> JackOpenOptions
sourceimpl Hash for JackOpenOptions
impl Hash for JackOpenOptions
sourceimpl Not for JackOpenOptions
impl Not for JackOpenOptions
sourcefn not(self) -> JackOpenOptions
fn not(self) -> JackOpenOptions
Returns the complement of this set of flags.
type Output = JackOpenOptions
type Output = JackOpenOptions
!
operator.sourceimpl Ord for JackOpenOptions
impl Ord for JackOpenOptions
sourcefn cmp(&self, other: &JackOpenOptions) -> Ordering
fn cmp(&self, other: &JackOpenOptions) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<JackOpenOptions> for JackOpenOptions
impl PartialEq<JackOpenOptions> for JackOpenOptions
sourcefn eq(&self, other: &JackOpenOptions) -> bool
fn eq(&self, other: &JackOpenOptions) -> bool
sourceimpl PartialOrd<JackOpenOptions> for JackOpenOptions
impl PartialOrd<JackOpenOptions> for JackOpenOptions
sourcefn partial_cmp(&self, other: &JackOpenOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &JackOpenOptions) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Sub<JackOpenOptions> for JackOpenOptions
impl Sub<JackOpenOptions> for JackOpenOptions
sourcefn sub(self, other: JackOpenOptions) -> JackOpenOptions
fn sub(self, other: JackOpenOptions) -> JackOpenOptions
Returns the set difference of the two sets of flags.
type Output = JackOpenOptions
type Output = JackOpenOptions
-
operator.sourceimpl SubAssign<JackOpenOptions> for JackOpenOptions
impl SubAssign<JackOpenOptions> for JackOpenOptions
sourcefn sub_assign(&mut self, other: JackOpenOptions)
fn sub_assign(&mut self, other: JackOpenOptions)
Disables all flags enabled in the set.