Struct irc::client::data::user::User [−][src]
pub struct User { /* fields omitted */ }
IRC User data.
Methods
impl User
[src]
impl User
pub fn new(string: &str) -> User
[src]
pub fn new(string: &str) -> User
Creates a new User.
pub fn get_nickname(&self) -> &str
[src]
pub fn get_nickname(&self) -> &str
Gets the nickname of the user.
pub fn get_username(&self) -> Option<&str>
[src]
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
.
pub fn get_hostname(&self) -> Option<&str>
[src]
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
.
pub fn highest_access_level(&self) -> AccessLevel
[src]
pub fn highest_access_level(&self) -> AccessLevel
Gets the user's highest access level.
pub fn access_levels(&self) -> Vec<AccessLevel>
[src]
pub fn access_levels(&self) -> Vec<AccessLevel>
Gets all the user's access levels.
pub fn update_access_level(&mut self, mode: &Mode<ChannelMode>)
[src]
pub fn update_access_level(&mut self, mode: &Mode<ChannelMode>)
Updates the user's access level.
Trait Implementations
impl Clone for User
[src]
impl Clone for User
fn clone(&self) -> User
[src]
fn clone(&self) -> User
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for User
[src]
impl Debug for User
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for User
[src]
impl PartialEq for User