#[non_exhaustive]pub enum NotifChannel {
Auto,
TerminalBell,
Iterm2,
Iterm2WithBell,
Kitty,
Ghostty,
NotificationsDisabled,
Other(String),
}Expand description
preferredNotifChannel.
Docs: preferredNotifChannel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Claude Code sends a desktop notification when it detects iTerm2, Ghostty, or Kitty, rings the bell in Terminal.app only when its audible bell is off, and does nothing elsewhere.
TerminalBell
Claude Code rings the bell character in any terminal.
Iterm2
Claude Code sends an iTerm2 desktop notification.
Iterm2WithBell
Claude Code sends an iTerm2 desktop notification and rings the bell.
Kitty
Claude Code sends a Kitty desktop notification.
Ghostty
Claude Code sends a Ghostty desktop notification.
NotificationsDisabled
Claude Code sends no notification.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for NotifChannel
impl AsRef<str> for NotifChannel
Source§impl Clone for NotifChannel
impl Clone for NotifChannel
Source§impl Debug for NotifChannel
impl Debug for NotifChannel
Source§impl<'de> Deserialize<'de> for NotifChannel
impl<'de> Deserialize<'de> for NotifChannel
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NotifChannel
impl Display for NotifChannel
impl Eq for NotifChannel
Source§impl From<&str> for NotifChannel
impl From<&str> for NotifChannel
Source§impl From<String> for NotifChannel
impl From<String> for NotifChannel
Source§impl Hash for NotifChannel
impl Hash for NotifChannel
Source§impl Ord for NotifChannel
impl Ord for NotifChannel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NotifChannel
impl PartialEq for NotifChannel
Source§impl PartialOrd for NotifChannel
impl PartialOrd for NotifChannel
Source§impl Serialize for NotifChannel
impl Serialize for NotifChannel
impl StructuralPartialEq for NotifChannel
Auto Trait Implementations§
impl Forget for NotifChannel
impl Freeze for NotifChannel
impl Move for NotifChannel
impl RefUnwindSafe for NotifChannel
impl Send for NotifChannel
impl Sync for NotifChannel
impl Unpin for NotifChannel
impl UnsafeUnpin for NotifChannel
impl UnwindSafe for NotifChannel
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
Mutably borrows from an owned value. Read more