pub struct BufferHandle { /* private fields */ }
Expand description
A handle to a buffer that was created in the current plugin.
This means that the plugin owns this buffer. Nevertheless Weechat can invalidate the buffer between callbacks at any point in time.
The buffer handle can be upgraded to a buffer which can then manipulate the
buffer state using the upgrade()
method.
The buffer won’t be closed if this handle gets dropped, to close the buffer call the close method on the upgraded buffer object.
Implementations§
Trait Implementations§
Source§impl Clone for BufferHandle
impl Clone for BufferHandle
Source§fn clone(&self) -> BufferHandle
fn clone(&self) -> BufferHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BufferHandle
impl !RefUnwindSafe for BufferHandle
impl !Send for BufferHandle
impl !Sync for BufferHandle
impl Unpin for BufferHandle
impl !UnwindSafe for BufferHandle
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