Struct fuchsia_bluetooth::profile::ChannelParameters
source · pub struct ChannelParameters {
pub channel_mode: Option<ChannelMode>,
pub max_rx_sdu_size: Option<u16>,
pub security_requirements: Option<SecurityRequirements>,
}
Expand description
Preferred L2CAP channel parameters for an advertised service.
Corresponds directly to the FIDL ChannelParameters
definition - with the extra properties
of Clone and PartialEq.
The invariants of the FIDL definition are enforced - the max SDU size must be >= 48.
See [fuchsia.bluetooth.bredr.ChannelParameters] for more documentation.
Fields§
§channel_mode: Option<ChannelMode>
§max_rx_sdu_size: Option<u16>
§security_requirements: Option<SecurityRequirements>
Trait Implementations§
source§impl Clone for ChannelParameters
impl Clone for ChannelParameters
source§fn clone(&self) -> ChannelParameters
fn clone(&self) -> ChannelParameters
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 ChannelParameters
impl Debug for ChannelParameters
source§impl Default for ChannelParameters
impl Default for ChannelParameters
source§fn default() -> ChannelParameters
fn default() -> ChannelParameters
Returns the “default value” for a type. Read more
source§impl PartialEq for ChannelParameters
impl PartialEq for ChannelParameters
source§fn eq(&self, other: &ChannelParameters) -> bool
fn eq(&self, other: &ChannelParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&ChannelParameters> for ChannelParameters
impl TryFrom<&ChannelParameters> for ChannelParameters
source§fn try_from(src: &ChannelParameters) -> Result<ChannelParameters, Self::Error>
fn try_from(src: &ChannelParameters) -> Result<ChannelParameters, Self::Error>
Performs the conversion.
source§impl TryFrom<&ChannelParameters> for ChannelParameters
impl TryFrom<&ChannelParameters> for ChannelParameters
source§fn try_from(src: &ChannelParameters) -> Result<ChannelParameters, Self::Error>
fn try_from(src: &ChannelParameters) -> Result<ChannelParameters, Self::Error>
Performs the conversion.
impl StructuralPartialEq for ChannelParameters
Auto Trait Implementations§
impl Freeze for ChannelParameters
impl RefUnwindSafe for ChannelParameters
impl Send for ChannelParameters
impl Sync for ChannelParameters
impl Unpin for ChannelParameters
impl UnwindSafe for ChannelParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more