pub struct ConnectionRequest { /* private fields */ }Implementations§
Source§impl ConnectionRequest
impl ConnectionRequest
pub fn parse(bytes: &[u8]) -> Result<Self, Error>
pub fn get_bd_addr(&self) -> Address
pub fn get_class_of_device(&self) -> u32
pub fn get_event_code(&self) -> EventCode
pub fn get_link_type(&self) -> ConnectionRequestLinkType
pub fn get_size(&self) -> usize
Trait Implementations§
Source§impl Clone for ConnectionRequest
impl Clone for ConnectionRequest
Source§fn clone(&self) -> ConnectionRequest
fn clone(&self) -> ConnectionRequest
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 ConnectionRequest
impl Debug for ConnectionRequest
Source§impl From<ConnectionRequest> for Bytes
impl From<ConnectionRequest> for Bytes
Source§fn from(packet: ConnectionRequest) -> Self
fn from(packet: ConnectionRequest) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRequest> for Event
impl From<ConnectionRequest> for Event
Source§fn from(packet: ConnectionRequest) -> Event
fn from(packet: ConnectionRequest) -> Event
Converts to this type from the input type.
Source§impl From<ConnectionRequest> for Vec<u8>
impl From<ConnectionRequest> for Vec<u8>
Source§fn from(packet: ConnectionRequest) -> Self
fn from(packet: ConnectionRequest) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRequestBuilder> for ConnectionRequest
impl From<ConnectionRequestBuilder> for ConnectionRequest
Source§fn from(builder: ConnectionRequestBuilder) -> ConnectionRequest
fn from(builder: ConnectionRequestBuilder) -> ConnectionRequest
Converts to this type from the input type.
Source§impl Packet for ConnectionRequest
impl Packet for ConnectionRequest
Source§impl PartialEq for ConnectionRequest
impl PartialEq for ConnectionRequest
Source§impl TryFrom<Event> for ConnectionRequest
impl TryFrom<Event> for ConnectionRequest
impl Eq for ConnectionRequest
impl StructuralPartialEq for ConnectionRequest
Auto Trait Implementations§
impl !Freeze for ConnectionRequest
impl RefUnwindSafe for ConnectionRequest
impl Send for ConnectionRequest
impl Sync for ConnectionRequest
impl Unpin for ConnectionRequest
impl UnwindSafe for ConnectionRequest
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more