Struct Swaynag

Source
pub struct Swaynag { /* private fields */ }

Implementations§

Source§

impl Swaynag

Source

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

Source

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

Source§

impl Swaynag

Source

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

Source

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

Source

pub fn display_on_bottom_edge(&mut self) -> &mut Self

Source

pub fn display_on_top_edge(&mut self) -> &mut Self

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl Debug for Swaynag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&Swaynag> for Command

Source§

fn from(swaynag: &Swaynag) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.