pub struct ClientStatus { /* private fields */ }Expand description
Status flags for Jack clients.
-
FAILURE- Overall operation failed. -
INVALID_OPTION- The operation contained an invalid or unsupported option. -
NAME_NOT_UNIQUE- The desired client name was not unique. With theUSE_EXACT_NAMEoption this situation is fatal. Otherwise, the name was modified by appending a dash and a two-digit number in the range “-01” to “-99”.Client::name()will return the exact string that was used. If the specified client_name plus these extra characters would be too long, the open fails instead. -
SERVER_STARTED- The JACK server was started as a result of this operation. Otherwise, it was running already. In either case the caller is now connected to jackd, so there is no race condition. When the server shuts down, the client will find out. -
SERVER_FAILED- Unable to connect to the JACK server. -
SERVER_ERROR- Communication error with the JACK server. -
NO_SUCH_CLIENT- Requested client does not exist. -
LOAD_FAILURE- Unable to load internal client -
INIT_FAILURE- Unable to initialize client -
SHM_FAILURE- Unable to access shared memory -
VERSION_ERROR- Client’s protocol version does not match -
BACKEND_ERROR- No documentation found. TODO: dig deeper -
CLIENT_ZOZMBIE- No documentation found. TODO: dig deeper -
UNKNOWN_ERROR- Not part of jack and shouldn’t occur ever. File an issue if you can get it to appear.
Implementations§
Source§impl ClientStatus
impl ClientStatus
Sourcepub fn empty() -> ClientStatus
pub fn empty() -> ClientStatus
Returns an empty set of flags.
Sourcepub fn all() -> ClientStatus
pub fn all() -> ClientStatus
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<ClientStatus>
pub fn from_bits(bits: u32) -> Option<ClientStatus>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ClientStatus
pub fn from_bits_truncate(bits: u32) -> ClientStatus
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ClientStatus) -> bool
pub fn intersects(&self, other: ClientStatus) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: ClientStatus) -> bool
pub fn contains(&self, other: ClientStatus) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: ClientStatus)
pub fn insert(&mut self, other: ClientStatus)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ClientStatus)
pub fn remove(&mut self, other: ClientStatus)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ClientStatus)
pub fn toggle(&mut self, other: ClientStatus)
Toggles the specified flags in-place.
Trait Implementations§
Source§impl BitAnd for ClientStatus
impl BitAnd for ClientStatus
Source§fn bitand(self, other: ClientStatus) -> ClientStatus
fn bitand(self, other: ClientStatus) -> ClientStatus
Returns the intersection between the two sets of flags.
Source§type Output = ClientStatus
type Output = ClientStatus
& operator.Source§impl BitAndAssign for ClientStatus
impl BitAndAssign for ClientStatus
Source§fn bitand_assign(&mut self, other: ClientStatus)
fn bitand_assign(&mut self, other: ClientStatus)
Disables all flags disabled in the set.
Source§impl BitOr for ClientStatus
impl BitOr for ClientStatus
Source§fn bitor(self, other: ClientStatus) -> ClientStatus
fn bitor(self, other: ClientStatus) -> ClientStatus
Returns the union of the two sets of flags.
Source§type Output = ClientStatus
type Output = ClientStatus
| operator.Source§impl BitOrAssign for ClientStatus
impl BitOrAssign for ClientStatus
Source§fn bitor_assign(&mut self, other: ClientStatus)
fn bitor_assign(&mut self, other: ClientStatus)
Adds the set of flags.
Source§impl BitXor for ClientStatus
impl BitXor for ClientStatus
Source§fn bitxor(self, other: ClientStatus) -> ClientStatus
fn bitxor(self, other: ClientStatus) -> ClientStatus
Returns the left flags, but with all the right flags toggled.
Source§type Output = ClientStatus
type Output = ClientStatus
^ operator.Source§impl BitXorAssign for ClientStatus
impl BitXorAssign for ClientStatus
Source§fn bitxor_assign(&mut self, other: ClientStatus)
fn bitxor_assign(&mut self, other: ClientStatus)
Toggles the set of flags.
Source§impl Clone for ClientStatus
impl Clone for ClientStatus
Source§fn clone(&self) -> ClientStatus
fn clone(&self) -> ClientStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientStatus
impl Debug for ClientStatus
Source§impl Extend<ClientStatus> for ClientStatus
impl Extend<ClientStatus> for ClientStatus
Source§fn extend<T: IntoIterator<Item = ClientStatus>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ClientStatus>>(&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<ClientStatus> for ClientStatus
impl FromIterator<ClientStatus> for ClientStatus
Source§fn from_iter<T: IntoIterator<Item = ClientStatus>>(iterator: T) -> ClientStatus
fn from_iter<T: IntoIterator<Item = ClientStatus>>(iterator: T) -> ClientStatus
Source§impl Hash for ClientStatus
impl Hash for ClientStatus
Source§impl Not for ClientStatus
impl Not for ClientStatus
Source§fn not(self) -> ClientStatus
fn not(self) -> ClientStatus
Returns the complement of this set of flags.
Source§type Output = ClientStatus
type Output = ClientStatus
! operator.Source§impl Ord for ClientStatus
impl Ord for ClientStatus
Source§fn cmp(&self, other: &ClientStatus) -> Ordering
fn cmp(&self, other: &ClientStatus) -> 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 ClientStatus
impl PartialEq for ClientStatus
Source§impl PartialOrd for ClientStatus
impl PartialOrd for ClientStatus
Source§impl Sub for ClientStatus
impl Sub for ClientStatus
Source§fn sub(self, other: ClientStatus) -> ClientStatus
fn sub(self, other: ClientStatus) -> ClientStatus
Returns the set difference of the two sets of flags.
Source§type Output = ClientStatus
type Output = ClientStatus
- operator.Source§impl SubAssign for ClientStatus
impl SubAssign for ClientStatus
Source§fn sub_assign(&mut self, other: ClientStatus)
fn sub_assign(&mut self, other: ClientStatus)
Disables all flags enabled in the set.