[][src]Struct weechat::buffer::Buffer

pub struct Buffer { /* fields omitted */ }

A high level Buffer type encapsulating weechats C buffer pointer. The buffer won't be closed if the object is destroyed.

Methods

impl Buffer[src]

pub fn get_weechat(&self) -> Weechat[src]

Get the Weechat plugin object from a Buffer object.

pub fn print(&self, message: &str)[src]

Display a message on the buffer.

pub fn add_nick(&self, nick: NickArgs, group: Option<&NickGroup>) -> Nick[src]

Create and add a new nick to the buffer nicklist. Returns the newly created nick. The nick won't be removed from the nicklist if the returned nick is dropped.

  • nick - Nick arguments struct for the nick that should be added.
  • group - Nicklist group that the nick should be added to. If no group is provided the nick is added to the root group.

pub fn add_group(
    &self,
    name: &str,
    color: &str,
    visible: bool,
    parent_group: Option<&NickGroup>
) -> NickGroup
[src]

Create and add a new nicklist group to the buffers nicklist.

  • name - Name of the new group.
  • color - Color of the new group.
  • visible - Should the group be visible in the nicklist.
  • parent_group - Parent group that the group should be added to. If no group is provided the group is added to the root group. Returns the new nicklist group. The group is not removed if the object is dropped.

pub fn full_name(&self) -> &str[src]

Get the full name of the buffer.

pub fn name(&self) -> &str[src]

Get the name of the buffer.

pub fn plugin_name(&self) -> &str[src]

Get the plugin name of the plugin that owns this buffer.

pub fn disable_time_for_each_line(&self)[src]

Hide time for all lines in the buffer.

pub fn disable_nicklist(&self)[src]

Disable the nicklist for this buffer.

pub fn set_title(&self, title: &str)[src]

Set the title of the buffer.

  • title - The new title that will be set.

pub fn disable_log(&self)[src]

Disable logging for this buffer.

Trait Implementations

impl Eq for Buffer[src]

impl PartialEq<Buffer> for Buffer[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl !Send for Buffer

impl !Sync for Buffer

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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