pub struct L2capChannel {
pub local_cid: u16,
pub remote_cid: u16,
pub state: ChannelState,
pub psm: u16,
pub mtu: u16,
pub remote_mtu: u16,
pub flush_timeout: u16,
pub local_config_done: bool,
pub remote_config_done: bool,
pub hci_handle: u16,
pub reassembly_buf: Vec<u8>,
pub reassembly_expected: u16,
}Expand description
An L2CAP logical channel
Fields§
§local_cid: u16Local Channel ID
remote_cid: u16Remote Channel ID (assigned by peer)
state: ChannelStateCurrent channel state
psm: u16Protocol/Service Multiplexer (identifies upper layer)
mtu: u16Maximum Transmission Unit (negotiated)
remote_mtu: u16Remote peer’s MTU
flush_timeout: u16Flush timeout in milliseconds (0xFFFF = infinite)
local_config_done: boolWhether local configuration is complete
remote_config_done: boolWhether remote configuration is complete
hci_handle: u16HCI connection handle this channel belongs to
reassembly_buf: Vec<u8>Reassembly buffer for incoming fragments
reassembly_expected: u16Expected total length for reassembly
Implementations§
Source§impl L2capChannel
impl L2capChannel
Trait Implementations§
Source§impl Clone for L2capChannel
impl Clone for L2capChannel
Source§fn clone(&self) -> L2capChannel
fn clone(&self) -> L2capChannel
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for L2capChannel
impl RefUnwindSafe for L2capChannel
impl Send for L2capChannel
impl Sync for L2capChannel
impl Unpin for L2capChannel
impl UnwindSafe for L2capChannel
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)