pub struct L2CapCocConnectConfirm {
pub conn_handle: ConnectionHandle,
pub mtu: u16,
pub mps: u16,
pub initial_credits: u16,
pub result: u16,
pub channel_number: u8,
pub channel_index_list: [u8; 246],
}
Expand description
This event is generated when receiving a valid Credit Based Connection Response packet.
See Bluetooth spec. v.5.4 [Vol 3, Part A].
Fields§
§conn_handle: ConnectionHandle
handle of the connection where this event occured.
mtu: u16
Maximum Transmission Unit
Values:
- 23 .. 65535
mps: u16
Maximum Payload Size (in octets)
Values:
- 23 .. 248
initial_credits: u16
Number of K-frames that can be received on the created channel(s) by the L2CAP layer entity sending this packet.
Values:
- 0 .. 65535
result: u16
This parameter indicates the outcome of the request. A value of 0x0000 indicates success while a non zero value indicates the request is refused
Values:
- 0x0000 .. 0x000C
channel_number: u8
Number of channels to be created. If this parameter is set to 0, it requests the creation of one LE credit based connection- oriented channel. Otherwise, it requests the creation of one or more enhanced credit based connection-oriented channels.
Values:
- 0 .. 5
channel_index_list: [u8; 246]
List of channel indexes for which the primitives apply.
Trait Implementations§
Source§impl Clone for L2CapCocConnectConfirm
impl Clone for L2CapCocConnectConfirm
Source§fn clone(&self) -> L2CapCocConnectConfirm
fn clone(&self) -> L2CapCocConnectConfirm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more