[][src]Struct weechat::buffer::NickSettings

pub struct NickSettings<'a> { /* fields omitted */ }

Settings to create a new nick.

Implementations

impl<'a> NickSettings<'a>[src]

pub fn new(name: &str) -> NickSettings<'_>[src]

Create new empyt nick creation settings.

Arguments

  • name - The name of the new nick.

pub fn set_color(self, color: &'a str) -> NickSettings<'a>[src]

Set the color of the nick.

Arguments

  • color - The color that the nick should have.

pub fn set_prefix(self, prefix: &'a str) -> NickSettings<'a>[src]

Set the prefix of the nick.

Arguments

  • prefix - The prefix displayed before the nick in the nicklist.

pub fn set_prefix_color(self, prefix_color: &'a str) -> NickSettings<'a>[src]

Set the color of the nick prefix.

Arguments

  • prefix_color - The color that the prefix should have.

pub fn set_visible(self, visible: bool) -> NickSettings<'a>[src]

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 to true.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.