Struct bluer::adv::Capabilities
source · [−]#[non_exhaustive]pub struct Capabilities {
pub max_advertisement_length: u8,
pub max_scan_response_length: u8,
pub min_tx_power: i16,
pub max_tx_power: i16,
}
bluetoothd
only.Expand description
Advertising-related controller capabilities.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_advertisement_length: u8
Maximum advertising data length.
max_scan_response_length: u8
Maximum advertising scan response length.
min_tx_power: i16
Minimum advertising TX power (dBm).
max_tx_power: i16
Maximum advertising TX power (dBm).
Trait Implementations
sourceimpl Clone for Capabilities
impl Clone for Capabilities
sourcefn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Capabilities
impl Debug for Capabilities
sourceimpl Default for Capabilities
impl Default for Capabilities
sourcefn default() -> Capabilities
fn default() -> Capabilities
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Capabilities
impl<'de> Deserialize<'de> for Capabilities
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for Capabilities
impl Hash for Capabilities
sourceimpl Ord for Capabilities
impl Ord for Capabilities
sourceimpl PartialEq<Capabilities> for Capabilities
impl PartialEq<Capabilities> for Capabilities
sourcefn eq(&self, other: &Capabilities) -> bool
fn eq(&self, other: &Capabilities) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Capabilities) -> bool
fn ne(&self, other: &Capabilities) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Capabilities> for Capabilities
impl PartialOrd<Capabilities> for Capabilities
sourcefn partial_cmp(&self, other: &Capabilities) -> Option<Ordering>
fn partial_cmp(&self, other: &Capabilities) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for Capabilities
impl Serialize for Capabilities
impl Eq for Capabilities
impl StructuralEq for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more