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, max_frame_size: u16) -> Self
pub fn default_command(dlci: DLCI, max_frame_size: u16) -> 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|.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)