pub struct User { /* private fields */ }
Expand description
IRC User data.
Implementations§
source§impl User
impl User
sourcepub fn get_nickname(&self) -> &str
pub fn get_nickname(&self) -> &str
Gets the nickname of the user.
sourcepub fn get_username(&self) -> Option<&str>
pub fn get_username(&self) -> Option<&str>
Gets the username of the user, if it’s known.
This requires the IRCv3.2 extension userhost-in-name
.
sourcepub fn get_hostname(&self) -> Option<&str>
pub fn get_hostname(&self) -> Option<&str>
Gets the hostname of the user, if it’s known.
This requires the IRCv3.2 extension userhost-in-name
.
sourcepub fn highest_access_level(&self) -> AccessLevel
pub fn highest_access_level(&self) -> AccessLevel
Gets the user’s highest access level.
sourcepub fn access_levels(&self) -> Vec<AccessLevel>
pub fn access_levels(&self) -> Vec<AccessLevel>
Gets all the user’s access levels.
sourcepub fn update_access_level(&mut self, mode: &Mode<ChannelMode>)
pub fn update_access_level(&mut self, mode: &Mode<ChannelMode>)
Updates the user’s access level.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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