Skip to main content

StartBlockOptions

Struct StartBlockOptions 

Source
pub struct StartBlockOptions<'a> {
    pub session_id: &'a str,
    pub timestamp: &'a str,
    pub command: &'a str,
    pub extra_lines: Option<Vec<&'a str>>,
    pub style: Option<&'a str>,
    pub width: Option<usize>,
    pub defer_command: bool,
}
Expand description

Options for creating a start block

Fields§

§session_id: &'a str§timestamp: &'a str§command: &'a str§extra_lines: Option<Vec<&'a str>>§style: Option<&'a str>§width: Option<usize>§defer_command: bool

If true, the command line is omitted from the start block (useful when virtual commands will be shown before the actual command)

Auto Trait Implementations§

§

impl<'a> Freeze for StartBlockOptions<'a>

§

impl<'a> RefUnwindSafe for StartBlockOptions<'a>

§

impl<'a> Send for StartBlockOptions<'a>

§

impl<'a> Sync for StartBlockOptions<'a>

§

impl<'a> Unpin for StartBlockOptions<'a>

§

impl<'a> UnsafeUnpin for StartBlockOptions<'a>

§

impl<'a> UnwindSafe for StartBlockOptions<'a>

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.