pub struct JackStatus { /* private fields */ }Expand description
Status of an operation.
See STATUS_* constants for possible values.
Implementations§
Source§impl JackStatus
impl JackStatus
Sourcepub fn empty() -> JackStatus
pub fn empty() -> JackStatus
Returns an empty set of flags.
Sourcepub fn all() -> JackStatus
pub fn all() -> JackStatus
Returns the set containing all flags.
Sourcepub fn bits(&self) -> jack_status_t
pub fn bits(&self) -> jack_status_t
Returns the raw value of the flags currently stored.
Sourcepub fn from_bits(bits: jack_status_t) -> Option<JackStatus>
pub fn from_bits(bits: jack_status_t) -> Option<JackStatus>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: jack_status_t) -> JackStatus
pub fn from_bits_truncate(bits: jack_status_t) -> JackStatus
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: JackStatus) -> bool
pub fn intersects(&self, other: JackStatus) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: JackStatus) -> bool
pub fn contains(&self, other: JackStatus) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: JackStatus)
pub fn insert(&mut self, other: JackStatus)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: JackStatus)
pub fn remove(&mut self, other: JackStatus)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: JackStatus)
pub fn toggle(&mut self, other: JackStatus)
Toggles the specified flags in-place.
Trait Implementations§
Source§impl BitAnd for JackStatus
impl BitAnd for JackStatus
Source§fn bitand(self, other: JackStatus) -> JackStatus
fn bitand(self, other: JackStatus) -> JackStatus
Returns the intersection between the two sets of flags.
Source§type Output = JackStatus
type Output = JackStatus
& operator.Source§impl BitAndAssign for JackStatus
impl BitAndAssign for JackStatus
Source§fn bitand_assign(&mut self, other: JackStatus)
fn bitand_assign(&mut self, other: JackStatus)
Disables all flags disabled in the set.
Source§impl BitOr for JackStatus
impl BitOr for JackStatus
Source§fn bitor(self, other: JackStatus) -> JackStatus
fn bitor(self, other: JackStatus) -> JackStatus
Returns the union of the two sets of flags.
Source§type Output = JackStatus
type Output = JackStatus
| operator.Source§impl BitOrAssign for JackStatus
impl BitOrAssign for JackStatus
Source§fn bitor_assign(&mut self, other: JackStatus)
fn bitor_assign(&mut self, other: JackStatus)
Adds the set of flags.
Source§impl BitXor for JackStatus
impl BitXor for JackStatus
Source§fn bitxor(self, other: JackStatus) -> JackStatus
fn bitxor(self, other: JackStatus) -> JackStatus
Returns the left flags, but with all the right flags toggled.
Source§type Output = JackStatus
type Output = JackStatus
^ operator.Source§impl BitXorAssign for JackStatus
impl BitXorAssign for JackStatus
Source§fn bitxor_assign(&mut self, other: JackStatus)
fn bitxor_assign(&mut self, other: JackStatus)
Toggles the set of flags.
Source§impl Clone for JackStatus
impl Clone for JackStatus
Source§fn clone(&self) -> JackStatus
fn clone(&self) -> JackStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JackStatus
impl Debug for JackStatus
Source§impl Extend<JackStatus> for JackStatus
impl Extend<JackStatus> for JackStatus
Source§fn extend<T: IntoIterator<Item = JackStatus>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = JackStatus>>(&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<JackStatus> for JackStatus
impl FromIterator<JackStatus> for JackStatus
Source§fn from_iter<T: IntoIterator<Item = JackStatus>>(iterator: T) -> JackStatus
fn from_iter<T: IntoIterator<Item = JackStatus>>(iterator: T) -> JackStatus
Source§impl Hash for JackStatus
impl Hash for JackStatus
Source§impl Not for JackStatus
impl Not for JackStatus
Source§fn not(self) -> JackStatus
fn not(self) -> JackStatus
Returns the complement of this set of flags.
Source§type Output = JackStatus
type Output = JackStatus
! operator.Source§impl Ord for JackStatus
impl Ord for JackStatus
Source§fn cmp(&self, other: &JackStatus) -> Ordering
fn cmp(&self, other: &JackStatus) -> 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 JackStatus
impl PartialEq for JackStatus
Source§impl PartialOrd for JackStatus
impl PartialOrd for JackStatus
Source§impl Sub for JackStatus
impl Sub for JackStatus
Source§fn sub(self, other: JackStatus) -> JackStatus
fn sub(self, other: JackStatus) -> JackStatus
Returns the set difference of the two sets of flags.
Source§type Output = JackStatus
type Output = JackStatus
- operator.Source§impl SubAssign for JackStatus
impl SubAssign for JackStatus
Source§fn sub_assign(&mut self, other: JackStatus)
fn sub_assign(&mut self, other: JackStatus)
Disables all flags enabled in the set.