Struct bt_rfcomm::ServerChannel
source · pub struct ServerChannel(_);
Expand description
The Server Channel number associated with an RFCOMM channel.
Use the provided u8::try_from
implementation to construct a valid ServerChannel.
Server Channels are 5 bits wide; they are the 5 most significant bits of the DLCI. Server Channels 0 and 31 are reserved. See RFCOMM 5.4 for the definition and usage.
Implementations§
source§impl ServerChannel
impl ServerChannel
sourcepub fn all() -> impl Iterator<Item = ServerChannel>
pub fn all() -> impl Iterator<Item = ServerChannel>
Returns an iterator over all the Server Channels.
Trait Implementations§
source§impl Clone for ServerChannel
impl Clone for ServerChannel
source§fn clone(&self) -> ServerChannel
fn clone(&self) -> ServerChannel
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 ServerChannel
impl Debug for ServerChannel
source§impl From<ServerChannel> for u8
impl From<ServerChannel> for u8
source§fn from(value: ServerChannel) -> u8
fn from(value: ServerChannel) -> u8
Converts to this type from the input type.
source§impl Hash for ServerChannel
impl Hash for ServerChannel
source§impl PartialEq<ServerChannel> for ServerChannel
impl PartialEq<ServerChannel> for ServerChannel
source§fn eq(&self, other: &ServerChannel) -> bool
fn eq(&self, other: &ServerChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.