pub struct NickSettings<'a> { /* private fields */ }
Expand description
Settings to create a new nick.
Implementations§
Source§impl<'a> NickSettings<'a>
impl<'a> NickSettings<'a>
Sourcepub fn new(name: &str) -> NickSettings<'_>
pub fn new(name: &str) -> NickSettings<'_>
Sourcepub fn set_color(self, color: &'a str) -> NickSettings<'a>
pub fn set_color(self, color: &'a str) -> NickSettings<'a>
Sourcepub fn set_prefix(self, prefix: &'a str) -> NickSettings<'a>
pub fn set_prefix(self, prefix: &'a str) -> NickSettings<'a>
Set the prefix of the nick.
§Arguments
prefix
- The prefix displayed before the nick in the nicklist.
Sourcepub fn set_prefix_color(self, prefix_color: &'a str) -> NickSettings<'a>
pub fn set_prefix_color(self, prefix_color: &'a str) -> NickSettings<'a>
Sourcepub fn set_visible(self, visible: bool) -> NickSettings<'a>
pub fn set_visible(self, visible: bool) -> NickSettings<'a>
Set the visibility of the nick.
§Arguments
visible
- Should the nick be visible in the nicklist,true
if it should be visible, false otherwise. Defaults totrue
.
Auto Trait Implementations§
impl<'a> Freeze for NickSettings<'a>
impl<'a> RefUnwindSafe for NickSettings<'a>
impl<'a> Send for NickSettings<'a>
impl<'a> Sync for NickSettings<'a>
impl<'a> Unpin for NickSettings<'a>
impl<'a> UnwindSafe for NickSettings<'a>
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