Struct alacritty::message_bar::Message
source · pub struct Message {
text: String,
ty: MessageType,
target: Option<String>,
}
Expand description
Message for display in the MessageBuffer.
Fields§
§text: String
§ty: MessageType
§target: Option<String>
Implementations§
source§impl Message
impl Message
sourcepub fn new(text: String, ty: MessageType) -> Message
pub fn new(text: String, ty: MessageType) -> Message
Create a new message.
sourcepub fn ty(&self) -> MessageType
pub fn ty(&self) -> MessageType
Message type.
sourcepub fn set_target(&mut self, target: String)
pub fn set_target(&mut self, target: String)
Update the message target.
Trait Implementations§
source§impl PartialEq<Message> for Message
impl PartialEq<Message> for Message
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.