pub struct L2capChannelConfig {
pub mtu: Option<u16>,
pub mps: Option<u16>,
pub flow_policy: CreditFlowPolicy,
pub initial_credits: Option<u16>,
}
Expand description
Configuration for an L2CAP channel.
Fields§
§mtu: Option<u16>
Size of Service Data Unit. Defaults to packet allocator MTU-6.
mps: Option<u16>
Frame size (1 frame == 1 credit). Defaults to packet allocator MTU-4.
flow_policy: CreditFlowPolicy
Flow control policy for connection oriented channels.
initial_credits: Option<u16>
Initial credits for connection oriented channels.
Trait Implementations§
Source§impl Default for L2capChannelConfig
impl Default for L2capChannelConfig
Source§fn default() -> L2capChannelConfig
fn default() -> L2capChannelConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for L2capChannelConfig
impl RefUnwindSafe for L2capChannelConfig
impl Send for L2capChannelConfig
impl Sync for L2capChannelConfig
impl Unpin for L2capChannelConfig
impl UnwindSafe for L2capChannelConfig
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