pub struct CreateConnection {
pub le_scan_interval: ScanInterval,
pub le_scan_window: ScanWindow,
pub initiator_filter_policy: InitiatorFilterPolicy,
pub peer_address_type: PeerAddressType,
pub peer_address: BTAddress,
pub own_address_type: OwnAddressType,
pub connection_interval_min: ConnectionInterval,
pub connection_interval_max: ConnectionInterval,
pub connection_latency: ConnectionLatency,
pub supervision_timeout: SupervisionTimeout,
pub min_ce_len: CELength,
pub max_ce_len: CELength,
}Fields§
§le_scan_interval: ScanInterval§le_scan_window: ScanWindow§initiator_filter_policy: InitiatorFilterPolicy§peer_address_type: PeerAddressType§peer_address: BTAddress§own_address_type: OwnAddressType§connection_interval_min: ConnectionInterval§connection_interval_max: ConnectionInterval§connection_latency: ConnectionLatency§supervision_timeout: SupervisionTimeout§min_ce_len: CELength§max_ce_len: CELengthImplementations§
Trait Implementations§
Source§impl Clone for CreateConnection
impl Clone for CreateConnection
Source§fn clone(&self) -> CreateConnection
fn clone(&self) -> CreateConnection
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 Command for CreateConnection
impl Command for CreateConnection
type Return = CommandStatus
fn opcode() -> Opcode
fn byte_len(&self) -> usize
Source§fn pack_into(&self, buf: &mut [u8]) -> Result<(), PackError>
fn pack_into(&self, buf: &mut [u8]) -> Result<(), PackError>
Pack the command parameters into a byte buffer.
!!
buf.len() == Command.byte_len() otherwise will return PackError::BadLength !! Read morefn unpack_from(buf: &[u8]) -> Result<Self, PackError>where
Self: Sized,
fn full_len(&self) -> usize
fn pack_full(&self, buf: &mut [u8]) -> Result<usize, PackError>
fn pack_command_packet<S: Storage<u8>>( &self, ) -> Result<CommandPacket<S>, PackError>
fn unpack_command_packet<S: AsRef<[u8]>>(
packet: &CommandPacket<S>,
) -> Result<Self, PackError>where
Self: Sized,
fn packet_byte_len(&self) -> usize
fn packet_pack_into(&self, buf: &mut [u8]) -> Result<usize, PackError>
fn unpack_return( event: EventPacket<&[u8]>, ) -> Result<Option<Self::Return>, PackError>
Source§impl Debug for CreateConnection
impl Debug for CreateConnection
Source§impl Hash for CreateConnection
impl Hash for CreateConnection
Source§impl Ord for CreateConnection
impl Ord for CreateConnection
Source§fn cmp(&self, other: &CreateConnection) -> Ordering
fn cmp(&self, other: &CreateConnection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CreateConnection
impl PartialEq for CreateConnection
Source§impl PartialOrd for CreateConnection
impl PartialOrd for CreateConnection
impl Copy for CreateConnection
impl Eq for CreateConnection
impl StructuralPartialEq for CreateConnection
Auto Trait Implementations§
impl Freeze for CreateConnection
impl RefUnwindSafe for CreateConnection
impl Send for CreateConnection
impl Sync for CreateConnection
impl Unpin for CreateConnection
impl UnwindSafe for CreateConnection
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