#[repr(u32)]pub enum ChanFlag {
Show 17 variants
CONNECTED = 1,
CONNECTING = 2,
MARKED_AWAY = 4,
END_OF_MOTD = 8,
HAS_WHOX = 16,
HAS_IDMSG = 32,
HIDE_JOIN = 64,
HIDE_JOIN_UNSET = 128,
BEEP_ON_MESSAGE = 256,
BLINK_TRAY = 512,
BLINK_TASKBAR = 1_024,
LOGGING = 2_048,
LOGGING_UNSET = 4_096,
SCROLLBACK = 8_192,
SCROLLBACK_UNSET = 16_384,
STRIP_COLORS = 32_768,
STRIP_COLORS_UNSET = 65_536,
}
Expand description
Channel flags.
Variants§
CONNECTED = 1
CONNECTING = 2
MARKED_AWAY = 4
END_OF_MOTD = 8
HAS_WHOX = 16
HAS_IDMSG = 32
HIDE_JOIN = 64
HIDE_JOIN_UNSET = 128
BEEP_ON_MESSAGE = 256
BLINK_TRAY = 512
BLINK_TASKBAR = 1_024
LOGGING = 2_048
LOGGING_UNSET = 4_096
SCROLLBACK = 8_192
SCROLLBACK_UNSET = 16_384
STRIP_COLORS = 32_768
STRIP_COLORS_UNSET = 65_536
Trait Implementations§
Source§impl BitFlag for ChanFlag
impl BitFlag for ChanFlag
§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags
with no flags set (in other words, with a value of 0). Read more§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags
if the raw value provided does not contain
any illegal flags. Read more§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
from an underlying bitwise value. If any
invalid bits are set, ignore them. Read more§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl RawBitFlags for ChanFlag
impl RawBitFlags for ChanFlag
Source§const EMPTY: Self::Numeric = {transmute(0x00000000): <consts::ChanFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <consts::ChanFlag as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <consts::ChanFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <consts::ChanFlag as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: Self::Numeric = {transmute(0x0001ffff): <consts::ChanFlag as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x0001ffff): <consts::ChanFlag as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<ChanFlag>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<ChanFlag>"
The name of the type for debug formatting purposes. Read more
impl Copy for ChanFlag
impl StructuralPartialEq for ChanFlag
Auto Trait Implementations§
impl Freeze for ChanFlag
impl RefUnwindSafe for ChanFlag
impl Send for ChanFlag
impl Sync for ChanFlag
impl Unpin for ChanFlag
impl UnwindSafe for ChanFlag
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