pub struct ServerChannel(/* private fields */);
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 Display for ServerChannel
impl Display 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 for ServerChannel
impl PartialEq for ServerChannel
Source§impl TryFrom<DLCI> for ServerChannel
impl TryFrom<DLCI> for ServerChannel
Source§impl TryFrom<u8> for ServerChannel
impl TryFrom<u8> for ServerChannel
impl Copy for ServerChannel
impl Eq for ServerChannel
impl StructuralPartialEq for ServerChannel
Auto Trait Implementations§
impl Freeze for ServerChannel
impl RefUnwindSafe for ServerChannel
impl Send for ServerChannel
impl Sync for ServerChannel
impl Unpin for ServerChannel
impl UnwindSafe for ServerChannel
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
)