pub struct TerminalSettings {
pub shell: String,
pub scrollback_lines: usize,
pub idle_minutes: u64,
}Expand description
The [terminal] table: the shell a seat’s terminal runs, how much
scrollback the model keeps, and when an idle terminal closes. Unknown
fields are rejected so a mistyped key fails the load instead of being
ignored.
Fields§
§shell: StringThe shell to run. Empty means $SHELL, falling back to /bin/zsh
on macOS.
scrollback_lines: usizeThe scrollback the model keeps, in lines. 0 keeps none.
idle_minutes: u64Minutes an untouched, unattached terminal may sit before it closes. 0 is off.
Trait Implementations§
Source§impl Clone for TerminalSettings
impl Clone for TerminalSettings
Source§impl Debug for TerminalSettings
impl Debug for TerminalSettings
Source§impl Default for TerminalSettings
impl Default for TerminalSettings
Source§impl<'de> Deserialize<'de> for TerminalSettingswhere
TerminalSettings: Default,
impl<'de> Deserialize<'de> for TerminalSettingswhere
TerminalSettings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TerminalSettings
Source§impl PartialEq for TerminalSettings
impl PartialEq for TerminalSettings
impl StructuralPartialEq for TerminalSettings
Auto Trait Implementations§
impl Freeze for TerminalSettings
impl RefUnwindSafe for TerminalSettings
impl Send for TerminalSettings
impl Sync for TerminalSettings
impl Unpin for TerminalSettings
impl UnsafeUnpin for TerminalSettings
impl UnwindSafe for TerminalSettings
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more