pub struct ChanModes {
pub list: String,
pub always_arg: String,
pub arg_on_set: String,
pub flag: String,
}Expand description
The four classes of channel mode, from CHANMODES=beI,k,l,imnpst.
The class decides whether a mode takes an argument, which is the only way to parse a MODE line at all.
Fields§
§list: StringList modes such as bans. Always take an argument, setting and unsetting.
always_arg: StringModes that always take an argument, such as a key.
arg_on_set: StringModes that take an argument only when set, such as a user limit.
flag: StringFlags that never take an argument.
Implementations§
Trait Implementations§
impl Eq for ChanModes
impl StructuralPartialEq for ChanModes
Auto Trait Implementations§
impl Freeze for ChanModes
impl RefUnwindSafe for ChanModes
impl Send for ChanModes
impl Sync for ChanModes
impl Unpin for ChanModes
impl UnsafeUnpin for ChanModes
impl UnwindSafe for ChanModes
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