pub struct NotificationConfig {Show 15 fields
pub notification_bell_desktop: bool,
pub notification_bell_sound: u8,
pub notification_bell_visual: bool,
pub notification_visual_bell_color: [u8; 3],
pub notification_activity_enabled: bool,
pub notification_activity_threshold: u64,
pub anti_idle_enabled: bool,
pub anti_idle_seconds: u64,
pub anti_idle_code: u8,
pub notification_silence_enabled: bool,
pub notification_silence_threshold: u64,
pub notification_session_ended: bool,
pub suppress_notifications_when_focused: bool,
pub notification_max_buffer: usize,
pub alert_sounds: HashMap<AlertEvent, AlertSoundConfig>,
}Expand description
Notification and alert settings for the terminal emulator.
Controls the bell (audio, visual, desktop notifications), activity and silence alerts, the anti-idle keep-alive mechanism, and limits on the OSC 9/777 notification buffer.
Fields§
§notification_bell_desktop: boolForward BEL events to desktop notification centers
notification_bell_sound: u8Volume (0-100) for backend bell sound alerts (0 disables)
notification_bell_visual: boolEnable backend visual bell overlay
notification_visual_bell_color: [u8; 3]Visual bell flash color [R, G, B] (0-255, default: white)
notification_activity_enabled: boolEnable notifications when activity resumes after inactivity
notification_activity_threshold: u64Seconds of inactivity required before an activity alert fires
anti_idle_enabled: boolEnable anti-idle keep-alive (sends code after idle period)
anti_idle_seconds: u64Seconds of inactivity before sending keep-alive code
anti_idle_code: u8ASCII code to send as keep-alive (e.g., 0 = NUL, 27 = ESC)
notification_silence_enabled: boolEnable notifications after prolonged silence
notification_silence_threshold: u64Seconds of silence before a silence alert fires
notification_session_ended: boolEnable notification when a shell/session exits
suppress_notifications_when_focused: boolSuppress desktop notifications when the terminal window is focused
notification_max_buffer: usizeMaximum number of OSC 9/777 notification entries retained by backend
alert_sounds: HashMap<AlertEvent, AlertSoundConfig>Alert sound configuration per event type.
Maps AlertEvent variants to their sound settings.
Trait Implementations§
Source§impl Clone for NotificationConfig
impl Clone for NotificationConfig
Source§fn clone(&self) -> NotificationConfig
fn clone(&self) -> NotificationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NotificationConfig
impl Debug for NotificationConfig
Source§impl Default for NotificationConfig
impl Default for NotificationConfig
Source§fn default() -> NotificationConfig
fn default() -> NotificationConfig
Source§impl<'de> Deserialize<'de> for NotificationConfig
impl<'de> Deserialize<'de> for NotificationConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for NotificationConfig
impl Serialize for NotificationConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for NotificationConfig
impl RefUnwindSafe for NotificationConfig
impl Send for NotificationConfig
impl Sync for NotificationConfig
impl Unpin for NotificationConfig
impl UnsafeUnpin for NotificationConfig
impl UnwindSafe for NotificationConfig
Blanket Implementations§
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
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>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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>
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().