Struct sttp::transport::OperationalModes
source · pub struct OperationalModes(_);
Expand description
Enumeration of the possible modes that affect how DataPublisher
and DataSubscriber
communicate during as STTP session.
Operational modes are sent from a subscriber to a publisher to request operational behaviors for the connection, as a result the operation modes must be sent before any other command. The publisher may silently refuse some requests (e.g., compression) based on its configuration. Operational modes only apply to fundamental protocol control.
Trait Implementations§
source§impl Binary for OperationalModes
impl Binary for OperationalModes
source§impl BitAnd<OperationalModes> for OperationalModes
impl BitAnd<OperationalModes> for OperationalModes
source§impl BitAndAssign<OperationalModes> for OperationalModes
impl BitAndAssign<OperationalModes> for OperationalModes
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
source§impl BitFlags for OperationalModes
impl BitFlags for OperationalModes
§type IterNames = IterRaw
type IterNames = IterRaw
An iterator over the raw names and bits for enabled flags in an instance of the type.
source§fn from_bits(bits: u32) -> Option<OperationalModes>
fn from_bits(bits: u32) -> Option<OperationalModes>
Convert from underlying bit representation, unless that
representation contains bits that do not correspond to a flag.
source§fn from_bits_truncate(bits: u32) -> OperationalModes
fn from_bits_truncate(bits: u32) -> OperationalModes
Convert from underlying bit representation, dropping any bits
that do not correspond to flags.
source§fn from_bits_retain(bits: u32) -> OperationalModes
fn from_bits_retain(bits: u32) -> OperationalModes
Convert from underlying bit representation, preserving all
bits (even those not corresponding to a defined flag).
source§fn iter_names(&self) -> Self::IterNames
fn iter_names(&self) -> Self::IterNames
Iterate over the raw names and bits for enabled flag values.
source§fn intersects(&self, other: OperationalModes) -> bool
fn intersects(&self, other: OperationalModes) -> bool
Returns
true
if there are flags common to both self
and other
.source§fn contains(&self, other: OperationalModes) -> bool
fn contains(&self, other: OperationalModes) -> bool
Returns
true
if all of the flags in other
are contained within self
.source§fn insert(&mut self, other: OperationalModes)
fn insert(&mut self, other: OperationalModes)
Inserts the specified flags in-place.
source§fn remove(&mut self, other: OperationalModes)
fn remove(&mut self, other: OperationalModes)
Removes the specified flags in-place.
source§fn toggle(&mut self, other: OperationalModes)
fn toggle(&mut self, other: OperationalModes)
Toggles the specified flags in-place.
source§fn set(&mut self, other: OperationalModes, value: bool)
fn set(&mut self, other: OperationalModes, value: bool)
Inserts or removes the specified flags depending on the passed value.
source§impl BitOr<OperationalModes> for OperationalModes
impl BitOr<OperationalModes> for OperationalModes
source§fn bitor(self, other: OperationalModes) -> Self
fn bitor(self, other: OperationalModes) -> Self
Returns the union of the two sets of flags.
§type Output = OperationalModes
type Output = OperationalModes
The resulting type after applying the
|
operator.source§impl BitOrAssign<OperationalModes> for OperationalModes
impl BitOrAssign<OperationalModes> for OperationalModes
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
source§impl BitXor<OperationalModes> for OperationalModes
impl BitXor<OperationalModes> for OperationalModes
source§impl BitXorAssign<OperationalModes> for OperationalModes
impl BitXorAssign<OperationalModes> for OperationalModes
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
source§impl Clone for OperationalModes
impl Clone for OperationalModes
source§fn clone(&self) -> OperationalModes
fn clone(&self) -> OperationalModes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OperationalModes
impl Debug for OperationalModes
source§impl Default for OperationalModes
impl Default for OperationalModes
source§fn default() -> OperationalModes
fn default() -> OperationalModes
Returns the “default value” for a type. Read more
source§impl Extend<OperationalModes> for OperationalModes
impl Extend<OperationalModes> for OperationalModes
source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<OperationalModes> for OperationalModes
impl FromIterator<OperationalModes> for OperationalModes
source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for OperationalModes
impl Hash for OperationalModes
source§impl IntoIterator for OperationalModes
impl IntoIterator for OperationalModes
source§impl LowerHex for OperationalModes
impl LowerHex for OperationalModes
source§impl Not for OperationalModes
impl Not for OperationalModes
source§impl Octal for OperationalModes
impl Octal for OperationalModes
source§impl Ord for OperationalModes
impl Ord for OperationalModes
source§fn cmp(&self, other: &OperationalModes) -> Ordering
fn cmp(&self, other: &OperationalModes) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<OperationalModes> for OperationalModes
impl PartialEq<OperationalModes> for OperationalModes
source§fn eq(&self, other: &OperationalModes) -> bool
fn eq(&self, other: &OperationalModes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OperationalModes> for OperationalModes
impl PartialOrd<OperationalModes> for OperationalModes
source§fn partial_cmp(&self, other: &OperationalModes) -> Option<Ordering>
fn partial_cmp(&self, other: &OperationalModes) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PublicFlags for OperationalModes
impl PublicFlags for OperationalModes
source§impl Sub<OperationalModes> for OperationalModes
impl Sub<OperationalModes> for OperationalModes
source§impl SubAssign<OperationalModes> for OperationalModes
impl SubAssign<OperationalModes> for OperationalModes
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.