[]Struct jack::ClientStatus

pub struct ClientStatus { /* fields omitted */ }

Status flags for JACK clients.

Methods

impl ClientStatus

pub const FAILURE: ClientStatus

Overall operation failed. File an issue if you can get it to appear.

pub const INVALID_OPTION: ClientStatus

The operation contained an invalid or unsupported option.

pub const NAME_NOT_UNIQUE: ClientStatus

The desired client name was not unique. With the USE_EXACT_NAME option 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.

pub const SERVER_STARTED: ClientStatus

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.

pub const SERVER_FAILED: ClientStatus

Unable to connect to the JACK server.

pub const SERVER_ERROR: ClientStatus

Communication error with the JACK server.

pub const NO_SUCH_CLIENT: ClientStatus

Requested client does not exist.

pub const LOAD_FAILURE: ClientStatus

Unable to load internal client

pub const INIT_FAILURE: ClientStatus

Unable to initialize client

pub const SHM_FAILURE: ClientStatus

Unable to access shared memory

pub const VERSION_ERROR: ClientStatus

Client's protocol version does not match

pub const BACKEND_ERROR: ClientStatus

No documentation found. TODO: dig deeper

pub const CLIENT_ZOMBIE: ClientStatus

No documentation found. TODO: dig deeper

pub const fn empty() -> ClientStatus

Returns an empty set of flags

pub const fn all() -> ClientStatus

Returns the set containing all flags.

pub const fn bits(&self) -> Enum_JackStatus

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: Enum_JackStatus) -> Option<ClientStatus>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: Enum_JackStatus) -> ClientStatus

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool

Returns true if all flags are currently set.

pub const fn intersects(&self, other: ClientStatus) -> bool

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: ClientStatus) -> bool

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: ClientStatus)

Inserts the specified flags in-place.

pub fn remove(&mut self, other: ClientStatus)

Removes the specified flags in-place.

pub fn toggle(&mut self, other: ClientStatus)

Toggles the specified flags in-place.

pub fn set(&mut self, other: ClientStatus, value: bool)

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Ord for ClientStatus

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialOrd<ClientStatus> for ClientStatus

impl PartialEq<ClientStatus> for ClientStatus

impl Extend<ClientStatus> for ClientStatus

impl Clone for ClientStatus

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for ClientStatus

impl Copy for ClientStatus

impl Debug for ClientStatus

impl Sub<ClientStatus> for ClientStatus

type Output = ClientStatus

The resulting type after applying the - operator.

fn sub(self, other: ClientStatus) -> ClientStatus

Returns the set difference of the two sets of flags.

impl SubAssign<ClientStatus> for ClientStatus

fn sub_assign(&mut self, other: ClientStatus)

Disables all flags enabled in the set.

impl Not for ClientStatus

type Output = ClientStatus

The resulting type after applying the ! operator.

fn not(self) -> ClientStatus

Returns the complement of this set of flags.

impl BitAnd<ClientStatus> for ClientStatus

type Output = ClientStatus

The resulting type after applying the & operator.

fn bitand(self, other: ClientStatus) -> ClientStatus

Returns the intersection between the two sets of flags.

impl BitOr<ClientStatus> for ClientStatus

type Output = ClientStatus

The resulting type after applying the | operator.

fn bitor(self, other: ClientStatus) -> ClientStatus

Returns the union of the two sets of flags.

impl BitXor<ClientStatus> for ClientStatus

type Output = ClientStatus

The resulting type after applying the ^ operator.

fn bitxor(self, other: ClientStatus) -> ClientStatus

Returns the left flags, but with all the right flags toggled.

impl BitAndAssign<ClientStatus> for ClientStatus

fn bitand_assign(&mut self, other: ClientStatus)

Disables all flags disabled in the set.

impl BitOrAssign<ClientStatus> for ClientStatus

fn bitor_assign(&mut self, other: ClientStatus)

Adds the set of flags.

impl BitXorAssign<ClientStatus> for ClientStatus

fn bitxor_assign(&mut self, other: ClientStatus)

Toggles the set of flags.

impl Hash for ClientStatus

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromIterator<ClientStatus> for ClientStatus

impl Octal for ClientStatus

impl Binary for ClientStatus

impl LowerHex for ClientStatus

impl UpperHex for ClientStatus

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]