Struct jack::ClientOptions
[−]
pub struct ClientOptions { /* fields omitted */ }
Option flags for opening a JACK client.
Methods
impl ClientOptions
const NO_START_SERVER: ClientOptions
NO_START_SERVER: ClientOptions = ClientOptions{bits: j::JackNoStartServer,}
Do not automatically start the JACK server when it is not already running. This option
is always selected if $JACK_NO_START_SERVER
is defined in the calling process
environment.
const USE_EXACT_NAME: ClientOptions
USE_EXACT_NAME: ClientOptions = ClientOptions{bits: j::JackUseExactName,}
Use the exact client name requested. Otherwise, JACK automatically generates a unique one if needed.
const SERVER_NAME: ClientOptions
SERVER_NAME: ClientOptions = ClientOptions{bits: j::JackServerName,}
Open with optional server_name
parameter.
TODO: implement
const LOAD_NAME: ClientOptions
LOAD_NAME: ClientOptions = ClientOptions{bits: j::JackLoadName,}
Load internal client from optional load_name
, otherwise use the client_name
.
TODO(wmedrano): Implement load_name
functionality
const LOAD_INIT: ClientOptions
LOAD_INIT: ClientOptions = ClientOptions{bits: j::JackLoadInit,}
Pass optional load_init
to jack_initialize()
entry point of an internal client.
TODO: implement
const SESSION_ID: ClientOptions
SESSION_ID: ClientOptions = ClientOptions{bits: j::JackSessionID,}
Pass a SessionID token. This allows the session manager to identify the client again.
fn empty() -> ClientOptions
Returns an empty set of flags.
fn all() -> ClientOptions
Returns the set containing all flags.
fn bits(&self) -> Enum_JackOptions
Returns the raw value of the flags currently stored.
fn from_bits(bits: Enum_JackOptions) -> Option<ClientOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: Enum_JackOptions) -> ClientOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: ClientOptions) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: ClientOptions) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: ClientOptions)
Inserts the specified flags in-place.
fn remove(&mut self, other: ClientOptions)
Removes the specified flags in-place.
fn toggle(&mut self, other: ClientOptions)
Toggles the specified flags in-place.
fn set(&mut self, other: ClientOptions, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for ClientOptions
impl PartialEq for ClientOptions
fn eq(&self, __arg_0: &ClientOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ClientOptions) -> bool
This method tests for !=
.
impl Eq for ClientOptions
impl Clone for ClientOptions
fn clone(&self) -> ClientOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for ClientOptions
fn partial_cmp(&self, __arg_0: &ClientOptions) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ClientOptions) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ClientOptions) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ClientOptions) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ClientOptions) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ClientOptions
fn cmp(&self, __arg_0: &ClientOptions) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for ClientOptions
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for ClientOptions
impl Binary for ClientOptions
impl Octal for ClientOptions
impl LowerHex for ClientOptions
impl UpperHex for ClientOptions
impl BitOr for ClientOptions
type Output = ClientOptions
The resulting type after applying the |
operator.
fn bitor(self, other: ClientOptions) -> ClientOptions
Returns the union of the two sets of flags.
impl BitOrAssign for ClientOptions
fn bitor_assign(&mut self, other: ClientOptions)
Adds the set of flags.
impl BitXor for ClientOptions
type Output = ClientOptions
The resulting type after applying the ^
operator.
fn bitxor(self, other: ClientOptions) -> ClientOptions
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for ClientOptions
fn bitxor_assign(&mut self, other: ClientOptions)
Toggles the set of flags.
impl BitAnd for ClientOptions
type Output = ClientOptions
The resulting type after applying the &
operator.
fn bitand(self, other: ClientOptions) -> ClientOptions
Returns the intersection between the two sets of flags.
impl BitAndAssign for ClientOptions
fn bitand_assign(&mut self, other: ClientOptions)
Disables all flags disabled in the set.
impl Sub for ClientOptions
type Output = ClientOptions
The resulting type after applying the -
operator.
fn sub(self, other: ClientOptions) -> ClientOptions
Returns the set difference of the two sets of flags.
impl SubAssign for ClientOptions
fn sub_assign(&mut self, other: ClientOptions)
Disables all flags enabled in the set.
impl Not for ClientOptions
type Output = ClientOptions
The resulting type after applying the !
operator.
fn not(self) -> ClientOptions
Returns the complement of this set of flags.
impl Extend<ClientOptions> for ClientOptions
fn extend<T: IntoIterator<Item = ClientOptions>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<ClientOptions> for ClientOptions
fn from_iter<T: IntoIterator<Item = ClientOptions>>(
iterator: T
) -> ClientOptions
iterator: T
) -> ClientOptions
Creates a value from an iterator. Read more