[][src]Struct alacritty::message_bar::MessageBuffer

pub struct MessageBuffer {
    messages: VecDeque<Message>,
}

Storage for message bar.

Fields

messages: VecDeque<Message>

Implementations

impl MessageBuffer[src]

pub fn new() -> MessageBuffer[src]

Create new message buffer.

pub fn is_empty(&self) -> bool[src]

Check if there are any messages queued.

pub fn message(&self) -> Option<&Message>[src]

Current message.

pub fn pop(&mut self)[src]

Remove the currently visible message.

pub fn remove_target(&mut self, target: &str)[src]

Remove all messages with a specific target.

pub fn push(&mut self, message: Message)[src]

Add a new message to the queue.

Trait Implementations

impl Debug for MessageBuffer[src]

impl Default for MessageBuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageBuffer

impl Send for MessageBuffer

impl Sync for MessageBuffer

impl Unpin for MessageBuffer

impl UnwindSafe for MessageBuffer

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.