Struct rubble::link::channel_map::ChannelMap [−][src]
Expand description
A map marking data channels as used or unused.
A channel map must mark at least 2 channels as used.
Fields
raw: [u8; 5]
num_used_channels: u8
Implementations
Create a new channel map from the raw format used in Connection Request PDUs (ChM
).
The first byte (LSB) contains flags for data channels 0 to 7, where the least significant bit is the flag for channel 0, and so on.
Since there are only 37 data channels, but 40 bits in the 5 Bytes, the 3 most significant
bits in the last Byte of raw
are considered reserved for future use (RFU) and are ignored
by this function.
Creates a new channel map that marks all data channels as used.
Returns the number of data channels marked as used by this map.
Returns whether the given data channel is marked as used.
Returns an iterator over all data channels marked as used in this map.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ChannelMap
impl Send for ChannelMap
impl Sync for ChannelMap
impl Unpin for ChannelMap
impl UnwindSafe for ChannelMap
Blanket Implementations
Mutably borrows from an owned value. Read more