[−][src]Struct weechat::buffer::Buffer
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]
&self,
name: &str,
color: &str,
visible: bool,
parent_group: Option<&NickGroup>
) -> NickGroup
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,