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§
Source§impl 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§
Source§impl BitAnd for JackOpenOptions
impl BitAnd for JackOpenOptions
Source§fn bitand(self, other: JackOpenOptions) -> JackOpenOptions
fn bitand(self, other: JackOpenOptions) -> JackOpenOptions
Returns the intersection between the two sets of flags.
Source§type Output = JackOpenOptions
type Output = JackOpenOptions
& operator.Source§impl BitAndAssign for JackOpenOptions
impl BitAndAssign for JackOpenOptions
Source§fn bitand_assign(&mut self, other: JackOpenOptions)
fn bitand_assign(&mut self, other: JackOpenOptions)
Disables all flags disabled in the set.
Source§impl BitOr for JackOpenOptions
impl BitOr for JackOpenOptions
Source§fn bitor(self, other: JackOpenOptions) -> JackOpenOptions
fn bitor(self, other: JackOpenOptions) -> JackOpenOptions
Returns the union of the two sets of flags.
Source§type Output = JackOpenOptions
type Output = JackOpenOptions
| operator.Source§impl BitOrAssign for JackOpenOptions
impl BitOrAssign for JackOpenOptions
Source§fn bitor_assign(&mut self, other: JackOpenOptions)
fn bitor_assign(&mut self, other: JackOpenOptions)
Adds the set of flags.
Source§impl BitXor for JackOpenOptions
impl BitXor for JackOpenOptions
Source§fn bitxor(self, other: JackOpenOptions) -> JackOpenOptions
fn bitxor(self, other: JackOpenOptions) -> JackOpenOptions
Returns the left flags, but with all the right flags toggled.
Source§type Output = JackOpenOptions
type Output = JackOpenOptions
^ operator.Source§impl BitXorAssign for JackOpenOptions
impl BitXorAssign for JackOpenOptions
Source§fn bitxor_assign(&mut self, other: JackOpenOptions)
fn bitxor_assign(&mut self, other: JackOpenOptions)
Toggles the set of flags.
Source§impl Clone for JackOpenOptions
impl Clone for JackOpenOptions
Source§fn clone(&self) -> JackOpenOptions
fn clone(&self) -> JackOpenOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JackOpenOptions
impl Debug for JackOpenOptions
Source§impl Extend<JackOpenOptions> for JackOpenOptions
impl Extend<JackOpenOptions> for JackOpenOptions
Source§fn extend<T: IntoIterator<Item = JackOpenOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = JackOpenOptions>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<JackOpenOptions> for JackOpenOptions
impl FromIterator<JackOpenOptions> for JackOpenOptions
Source§fn from_iter<T: IntoIterator<Item = JackOpenOptions>>(
iterator: T,
) -> JackOpenOptions
fn from_iter<T: IntoIterator<Item = JackOpenOptions>>( iterator: T, ) -> JackOpenOptions
Source§impl Hash for JackOpenOptions
impl Hash for JackOpenOptions
Source§impl Not for JackOpenOptions
impl Not for JackOpenOptions
Source§fn not(self) -> JackOpenOptions
fn not(self) -> JackOpenOptions
Returns the complement of this set of flags.
Source§type Output = JackOpenOptions
type Output = JackOpenOptions
! operator.Source§impl Ord for JackOpenOptions
impl Ord for JackOpenOptions
Source§fn cmp(&self, other: &JackOpenOptions) -> Ordering
fn cmp(&self, other: &JackOpenOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for JackOpenOptions
impl PartialEq for JackOpenOptions
Source§impl PartialOrd for JackOpenOptions
impl PartialOrd for JackOpenOptions
Source§impl Sub for JackOpenOptions
impl Sub for JackOpenOptions
Source§fn sub(self, other: JackOpenOptions) -> JackOpenOptions
fn sub(self, other: JackOpenOptions) -> JackOpenOptions
Returns the set difference of the two sets of flags.
Source§type Output = JackOpenOptions
type Output = JackOpenOptions
- operator.Source§impl SubAssign for JackOpenOptions
impl SubAssign for JackOpenOptions
Source§fn sub_assign(&mut self, other: JackOpenOptions)
fn sub_assign(&mut self, other: JackOpenOptions)
Disables all flags enabled in the set.