Struct swaynag::Swaynag[][src]

pub struct Swaynag { /* fields omitted */ }

Implementations

impl Swaynag[src]

pub fn spawn_with_detailed_message(
    &self,
    detailed_message: impl Into<Cow<'static, str>>
) -> Result<Child, Error>
[src]

pub fn spawn_with_detailed_message_reader<T: ?Sized>(
    &self,
    detailed_message: &mut T
) -> Result<Child, Error> where
    T: Read
[src]

impl Swaynag[src]

pub fn new(message: impl Into<Cow<'static, str>>) -> Self[src]

pub fn terminal(&mut self, terminal: impl Into<Cow<'static, str>>) -> &mut Self[src]

pub fn display_on_bottom_edge(&mut self) -> &mut Self[src]

pub fn display_on_top_edge(&mut self) -> &mut Self[src]

pub fn font(&mut self, font: impl Into<Cow<'static, str>>) -> &mut Self[src]

pub fn message_type(
    &mut self,
    message_type: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn output(&mut self, output: impl Into<Cow<'static, str>>) -> &mut Self[src]

pub fn background(
    &mut self,
    background: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn border(&mut self, border: impl Into<Cow<'static, str>>) -> &mut Self[src]

pub fn border_bottom(
    &mut self,
    border_bottom: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_background(
    &mut self,
    button_background: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn text(&mut self, text: impl Into<Cow<'static, str>>) -> &mut Self[src]

pub fn button_text(
    &mut self,
    button_text: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn border_bottom_size(
    &mut self,
    border_bottom_size: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn message_padding(
    &mut self,
    message_padding: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn details_background(
    &mut self,
    details_background: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn details_border_size(
    &mut self,
    details_border_size: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_border_size(
    &mut self,
    button_border_size: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_gap(
    &mut self,
    button_gap: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_dismiss_gap(
    &mut self,
    button_dismiss_gap: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_margin_right(
    &mut self,
    button_margin_right: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_padding(
    &mut self,
    button_padding: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button(
    &mut self,
    text: impl Into<Cow<'static, str>>,
    action: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn button_no_terminal(
    &mut self,
    text: impl Into<Cow<'static, str>>,
    action: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn dismiss_button(
    &mut self,
    text: impl Into<Cow<'static, str>>,
    action: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn dismiss_button_no_terminal(
    &mut self,
    text: impl Into<Cow<'static, str>>,
    action: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn override_default_dismiss_button(
    &mut self,
    text: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn details_button(
    &mut self,
    text: impl Into<Cow<'static, str>>
) -> &mut Self
[src]

pub fn spawn(&self) -> Result<Child, Error>[src]

Trait Implementations

impl Debug for Swaynag[src]

Auto Trait Implementations

impl RefUnwindSafe for Swaynag

impl Send for Swaynag

impl Sync for Swaynag

impl Unpin for Swaynag

impl UnwindSafe for Swaynag

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.