pub struct L2capSockAddr {
pub addr: MacAddress,
pub type_: AddressType,
pub psm: u16,
pub cid: u16,
}
Expand description
L2CAP socket address
Fields§
§addr: MacAddress
MAC address
type_: AddressType
Address type
psm: u16
PSM
cid: u16
CID
Implementations§
Source§impl L2capSockAddr
impl L2capSockAddr
Sourcepub fn new(addr: MacAddress, type_: AddressType, psm: impl Into<u16>) -> Self
pub fn new(addr: MacAddress, type_: AddressType, psm: impl Into<u16>) -> Self
Create L2CAP socket address
Trait Implementations§
Source§impl Clone for L2capSockAddr
impl Clone for L2capSockAddr
Source§fn clone(&self) -> L2capSockAddr
fn clone(&self) -> L2capSockAddr
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 L2capSockAddr
impl Debug for L2capSockAddr
Source§impl From<&L2capSockAddr> for SockAddr
impl From<&L2capSockAddr> for SockAddr
Source§fn from(sockaddr: &L2capSockAddr) -> Self
fn from(sockaddr: &L2capSockAddr) -> Self
Converts to this type from the input type.
Source§impl Hash for L2capSockAddr
impl Hash for L2capSockAddr
Source§impl Ord for L2capSockAddr
impl Ord for L2capSockAddr
Source§fn cmp(&self, other: &L2capSockAddr) -> Ordering
fn cmp(&self, other: &L2capSockAddr) -> 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 L2capSockAddr
impl PartialEq for L2capSockAddr
Source§impl PartialOrd for L2capSockAddr
impl PartialOrd for L2capSockAddr
Source§impl TryFrom<SockAddr> for L2capSockAddr
impl TryFrom<SockAddr> for L2capSockAddr
impl Copy for L2capSockAddr
impl Eq for L2capSockAddr
impl StructuralPartialEq for L2capSockAddr
Auto Trait Implementations§
impl Freeze for L2capSockAddr
impl RefUnwindSafe for L2capSockAddr
impl Send for L2capSockAddr
impl Sync for L2capSockAddr
impl Unpin for L2capSockAddr
impl UnwindSafe for L2capSockAddr
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