pub enum Channel {
Primary,
Numbered(ChannelNumber),
System,
Current,
}Variants§
Implementations§
Source§impl Channel
impl Channel
Sourcepub fn new(value: u8) -> Option<Self>
pub fn new(value: u8) -> Option<Self>
Create a new Channel.
This function returns None if value == 0xC || value == 0xD || value > 0xF`
Sourcepub fn value(&self) -> u8
pub fn value(&self) -> u8
The number of this channel.
This value is guaranteed to be less than or
equal to 0xF, and will be 0xE if self is
Channel::Current.
Trait Implementations§
impl Copy for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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