Struct bt_rfcomm::frame::mux_commands::ParameterNegotiationParams
source · pub struct ParameterNegotiationParams {
pub dlci: DLCI,
pub credit_based_flow_handshake: CreditBasedFlowHandshake,
pub priority: u8,
pub max_frame_size: u16,
pub initial_credits: u8,
}
Expand description
The DLC Parameter Negotiation command - used to negotiate parameters for a given DLC. See GSM 7.10 Section 5.4.6.3.1 for the fields and RFCOMM 5.5.3 for modifications.
Fields§
§dlci: DLCI
§credit_based_flow_handshake: CreditBasedFlowHandshake
§priority: u8
§max_frame_size: u16
§initial_credits: u8
Implementations§
source§impl ParameterNegotiationParams
impl ParameterNegotiationParams
sourcepub fn default_command(dlci: DLCI) -> Self
pub fn default_command(dlci: DLCI) -> Self
Returns the default parameters for a Parameter Negotiation command.
sourcepub fn credit_based_flow(&self) -> bool
pub fn credit_based_flow(&self) -> bool
Returns true if credit-based flow control is supported by the parameters.
Trait Implementations§
source§impl Clone for ParameterNegotiationParams
impl Clone for ParameterNegotiationParams
source§fn clone(&self) -> ParameterNegotiationParams
fn clone(&self) -> ParameterNegotiationParams
Returns a copy 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 ParameterNegotiationParams
impl Debug for ParameterNegotiationParams
source§impl Decodable for ParameterNegotiationParams
impl Decodable for ParameterNegotiationParams
type Error = FrameParseError
source§impl Encodable for ParameterNegotiationParams
impl Encodable for ParameterNegotiationParams
type Error = FrameParseError
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the number of bytes necessary to encode |self|.
source§impl PartialEq for ParameterNegotiationParams
impl PartialEq for ParameterNegotiationParams
source§fn eq(&self, other: &ParameterNegotiationParams) -> bool
fn eq(&self, other: &ParameterNegotiationParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParameterNegotiationParams
Auto Trait Implementations§
impl Freeze for ParameterNegotiationParams
impl RefUnwindSafe for ParameterNegotiationParams
impl Send for ParameterNegotiationParams
impl Sync for ParameterNegotiationParams
impl Unpin for ParameterNegotiationParams
impl UnwindSafe for ParameterNegotiationParams
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