pub struct L2CapCocConnect {
pub conn_handle: ConnectionHandle,
pub spsm: u16,
pub mtu: u16,
pub mps: u16,
pub initial_credits: u16,
pub channel_number: u8,
}
Expand description
This event is generated when receiving a valid Credit Based Connection Request packet.
See Bluetooth spec. v.5.4 [Vol 3, Part A].
Fields§
§conn_handle: ConnectionHandle
handle of the connection where this event occured.
spsm: u16
Simplified Protocol/Service Multiplexer
Values:
- 0x0000 .. 0x00FF
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
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
Trait Implementations§
Source§impl Clone for L2CapCocConnect
impl Clone for L2CapCocConnect
Source§fn clone(&self) -> L2CapCocConnect
fn clone(&self) -> L2CapCocConnect
Returns a duplicate 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 L2CapCocConnect
impl Debug for L2CapCocConnect
impl Copy for L2CapCocConnect
Auto Trait Implementations§
impl Freeze for L2CapCocConnect
impl RefUnwindSafe for L2CapCocConnect
impl Send for L2CapCocConnect
impl Sync for L2CapCocConnect
impl Unpin for L2CapCocConnect
impl UnwindSafe for L2CapCocConnect
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