pub struct ClientOptions { /* private fields */ }Expand description
Option flags for opening a Jack client.
-
NULL_OPTION- Equivalent toClientOptions::empty() -
NO_START_SERVER: Do not automatically start the Jack server when it is not already running. This option is always selected if$JACK_NO_START_SERVERis defined in the calling process environment. -
USE_EXACT_NAME: Use the exact client name requested. Otherwise, Jack automatically generates a unique one if needed. -
SERVER_NAME: Open with optionalserver_nameparameter. TODO: implement -
LOAD_NAME: Load internal client from optionalload_name, otherwise use theclient_name. TODO implement -
LOAD_INIT: Pass optionalload_inittojack_initialize()entry point of an internal client. TODO: implement -
SESSION_ID: Pass a SessionID token. This allows the session manager to identify the client again.
Implementations§
Source§impl ClientOptions
impl ClientOptions
Sourcepub fn empty() -> ClientOptions
pub fn empty() -> ClientOptions
Returns an empty set of flags.
Sourcepub fn all() -> ClientOptions
pub fn all() -> ClientOptions
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<ClientOptions>
pub fn from_bits(bits: u32) -> Option<ClientOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ClientOptions
pub fn from_bits_truncate(bits: u32) -> ClientOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ClientOptions) -> bool
pub fn intersects(&self, other: ClientOptions) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: ClientOptions) -> bool
pub fn contains(&self, other: ClientOptions) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: ClientOptions)
pub fn insert(&mut self, other: ClientOptions)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ClientOptions)
pub fn remove(&mut self, other: ClientOptions)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ClientOptions)
pub fn toggle(&mut self, other: ClientOptions)
Toggles the specified flags in-place.
Trait Implementations§
Source§impl BitAnd for ClientOptions
impl BitAnd for ClientOptions
Source§fn bitand(self, other: ClientOptions) -> ClientOptions
fn bitand(self, other: ClientOptions) -> ClientOptions
Returns the intersection between the two sets of flags.
Source§type Output = ClientOptions
type Output = ClientOptions
& operator.Source§impl BitAndAssign for ClientOptions
impl BitAndAssign for ClientOptions
Source§fn bitand_assign(&mut self, other: ClientOptions)
fn bitand_assign(&mut self, other: ClientOptions)
Disables all flags disabled in the set.
Source§impl BitOr for ClientOptions
impl BitOr for ClientOptions
Source§fn bitor(self, other: ClientOptions) -> ClientOptions
fn bitor(self, other: ClientOptions) -> ClientOptions
Returns the union of the two sets of flags.
Source§type Output = ClientOptions
type Output = ClientOptions
| operator.Source§impl BitOrAssign for ClientOptions
impl BitOrAssign for ClientOptions
Source§fn bitor_assign(&mut self, other: ClientOptions)
fn bitor_assign(&mut self, other: ClientOptions)
Adds the set of flags.
Source§impl BitXor for ClientOptions
impl BitXor for ClientOptions
Source§fn bitxor(self, other: ClientOptions) -> ClientOptions
fn bitxor(self, other: ClientOptions) -> ClientOptions
Returns the left flags, but with all the right flags toggled.
Source§type Output = ClientOptions
type Output = ClientOptions
^ operator.Source§impl BitXorAssign for ClientOptions
impl BitXorAssign for ClientOptions
Source§fn bitxor_assign(&mut self, other: ClientOptions)
fn bitxor_assign(&mut self, other: ClientOptions)
Toggles the set of flags.
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§fn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientOptions
impl Debug for ClientOptions
Source§impl Extend<ClientOptions> for ClientOptions
impl Extend<ClientOptions> for ClientOptions
Source§fn extend<T: IntoIterator<Item = ClientOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ClientOptions>>(&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<ClientOptions> for ClientOptions
impl FromIterator<ClientOptions> for ClientOptions
Source§fn from_iter<T: IntoIterator<Item = ClientOptions>>(
iterator: T,
) -> ClientOptions
fn from_iter<T: IntoIterator<Item = ClientOptions>>( iterator: T, ) -> ClientOptions
Source§impl Hash for ClientOptions
impl Hash for ClientOptions
Source§impl Not for ClientOptions
impl Not for ClientOptions
Source§fn not(self) -> ClientOptions
fn not(self) -> ClientOptions
Returns the complement of this set of flags.
Source§type Output = ClientOptions
type Output = ClientOptions
! operator.Source§impl Ord for ClientOptions
impl Ord for ClientOptions
Source§fn cmp(&self, other: &ClientOptions) -> Ordering
fn cmp(&self, other: &ClientOptions) -> 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 ClientOptions
impl PartialEq for ClientOptions
Source§impl PartialOrd for ClientOptions
impl PartialOrd for ClientOptions
Source§impl Sub for ClientOptions
impl Sub for ClientOptions
Source§fn sub(self, other: ClientOptions) -> ClientOptions
fn sub(self, other: ClientOptions) -> ClientOptions
Returns the set difference of the two sets of flags.
Source§type Output = ClientOptions
type Output = ClientOptions
- operator.Source§impl SubAssign for ClientOptions
impl SubAssign for ClientOptions
Source§fn sub_assign(&mut self, other: ClientOptions)
fn sub_assign(&mut self, other: ClientOptions)
Disables all flags enabled in the set.