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§impl TryFrom<&ChannelParameters> for ChannelParameters
impl TryFrom<&ChannelParameters> for ChannelParameters
Source§impl TryFrom<&ChannelParameters> for ChannelParameters
impl TryFrom<&ChannelParameters> for ChannelParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)