[][src]Struct jack::ClientStatus

pub struct ClientStatus { /* fields omitted */ }

Status flags for JACK clients.

Implementations

impl ClientStatus[src]

pub const FAILURE: ClientStatus[src]

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

pub const INVALID_OPTION: ClientStatus[src]

The operation contained an invalid or unsupported option.

pub const NAME_NOT_UNIQUE: ClientStatus[src]

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[src]

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[src]

Unable to connect to the JACK server.

pub const SERVER_ERROR: ClientStatus[src]

Communication error with the JACK server.

pub const NO_SUCH_CLIENT: ClientStatus[src]

Requested client does not exist.

pub const LOAD_FAILURE: ClientStatus[src]

Unable to load internal client

pub const INIT_FAILURE: ClientStatus[src]

Unable to initialize client

pub const SHM_FAILURE: ClientStatus[src]

Unable to access shared memory

pub const VERSION_ERROR: ClientStatus[src]

Client's protocol version does not match

pub const BACKEND_ERROR: ClientStatus[src]

No documentation found. TODO: dig deeper

pub const CLIENT_ZOMBIE: ClientStatus[src]

No documentation found. TODO: dig deeper

pub const fn empty() -> ClientStatus[src]

Returns an empty set of flags

pub const fn all() -> ClientStatus[src]

Returns the set containing all flags.

pub const fn bits(&self) -> Enum_JackStatus[src]

Returns the raw value of the flags currently stored.

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

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[src]

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

pub const unsafe fn from_bits_unchecked(bits: Enum_JackStatus) -> ClientStatus[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

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

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

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

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

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

Inserts the specified flags in-place.

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

Removes the specified flags in-place.

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

Toggles the specified flags in-place.

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

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

Trait Implementations

impl Binary for ClientStatus[src]

impl BitAnd<ClientStatus> for ClientStatus[src]

type Output = ClientStatus

The resulting type after applying the & operator.

fn bitand(self, other: ClientStatus) -> ClientStatus[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<ClientStatus> for ClientStatus[src]

fn bitand_assign(&mut self, other: ClientStatus)[src]

Disables all flags disabled in the set.

impl BitOr<ClientStatus> for ClientStatus[src]

type Output = ClientStatus

The resulting type after applying the | operator.

fn bitor(self, other: ClientStatus) -> ClientStatus[src]

Returns the union of the two sets of flags.

impl BitOrAssign<ClientStatus> for ClientStatus[src]

fn bitor_assign(&mut self, other: ClientStatus)[src]

Adds the set of flags.

impl BitXor<ClientStatus> for ClientStatus[src]

type Output = ClientStatus

The resulting type after applying the ^ operator.

fn bitxor(self, other: ClientStatus) -> ClientStatus[src]

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

impl BitXorAssign<ClientStatus> for ClientStatus[src]

fn bitxor_assign(&mut self, other: ClientStatus)[src]

Toggles the set of flags.

impl Clone for ClientStatus[src]

impl Copy for ClientStatus[src]

impl Debug for ClientStatus[src]

impl Eq for ClientStatus[src]

impl Extend<ClientStatus> for ClientStatus[src]

impl FromIterator<ClientStatus> for ClientStatus[src]

impl Hash for ClientStatus[src]

impl LowerHex for ClientStatus[src]

impl Not for ClientStatus[src]

type Output = ClientStatus

The resulting type after applying the ! operator.

fn not(self) -> ClientStatus[src]

Returns the complement of this set of flags.

impl Octal for ClientStatus[src]

impl Ord for ClientStatus[src]

impl PartialEq<ClientStatus> for ClientStatus[src]

impl PartialOrd<ClientStatus> for ClientStatus[src]

impl StructuralEq for ClientStatus[src]

impl StructuralPartialEq for ClientStatus[src]

impl Sub<ClientStatus> for ClientStatus[src]

type Output = ClientStatus

The resulting type after applying the - operator.

fn sub(self, other: ClientStatus) -> ClientStatus[src]

Returns the set difference of the two sets of flags.

impl SubAssign<ClientStatus> for ClientStatus[src]

fn sub_assign(&mut self, other: ClientStatus)[src]

Disables all flags enabled in the set.

impl UpperHex for ClientStatus[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.