#[repr(C)]#[non_exhaustive]pub struct Opts {
pub omtu: u16,
pub imtu: u16,
pub flush_to: u16,
pub mode: u8,
pub fcs: u8,
pub max_tx: u8,
pub txwin_size: u16,
}
Available on crate feature
l2cap
only.Expand description
Raw socket options for classic Bluetooth (BR/EDR) L2CAP sockets.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.omtu: u16
Outgoing MTU.
imtu: u16
Incoming MTU.
flush_to: u16
Flush to?
mode: u8
Mode.
fcs: u8
FCS option.
max_tx: u8
Max transmission.
txwin_size: u16
Transmission window.
Trait Implementations
sourceimpl Clone for l2cap_options
impl Clone for l2cap_options
sourcefn clone(&self) -> l2cap_options
fn clone(&self) -> l2cap_options
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 moresourceimpl Debug for l2cap_options
impl Debug for l2cap_options
sourceimpl Default for l2cap_options
impl Default for l2cap_options
sourceimpl<'de> Deserialize<'de> for l2cap_options
impl<'de> Deserialize<'de> for l2cap_options
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 PartialEq<l2cap_options> for l2cap_options
impl PartialEq<l2cap_options> for l2cap_options
sourcefn eq(&self, other: &l2cap_options) -> bool
fn eq(&self, other: &l2cap_options) -> bool
sourceimpl Serialize for l2cap_options
impl Serialize for l2cap_options
impl Eq for l2cap_options
impl StructuralEq for l2cap_options
impl StructuralPartialEq for l2cap_options
Auto Trait Implementations
impl RefUnwindSafe for l2cap_options
impl Send for l2cap_options
impl Sync for l2cap_options
impl Unpin for l2cap_options
impl UnwindSafe for l2cap_options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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