pub enum NotificationKind {
PermissionPrompt,
ElicitationDialog,
IdlePrompt,
Setup,
Info,
Other(String),
}Expand description
Sub-kind of a notification, for the cases the daemon special-cases.
Pi doesn’t use these strings — its permission gating is extension-
mediated and surfaces via NeedsInputReason::PermissionGate. The
known variants here are Claude Notification(notification_type)
values plus the setup synthetic kind we emit when translating
Claude’s one-time Setup hook event.
Variants§
PermissionPrompt
Claude permission prompt — agent is waiting on a yes/no.
ElicitationDialog
Claude MCP elicitation — extension wants structured input.
IdlePrompt
Claude idle prompt — agent has gone idle.
Setup
Claude one-time Setup hook (renamed from raw event).
Info
Generic informational notification.
Other(String)
Any other notification kind (vendor-specific, future kinds).
Implementations§
Trait Implementations§
Source§impl Clone for NotificationKind
impl Clone for NotificationKind
Source§fn clone(&self) -> NotificationKind
fn clone(&self) -> NotificationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationKind
impl Debug for NotificationKind
Source§impl<'de> Deserialize<'de> for NotificationKind
impl<'de> Deserialize<'de> for NotificationKind
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
Source§impl Display for NotificationKind
impl Display for NotificationKind
Source§impl From<&str> for NotificationKind
impl From<&str> for NotificationKind
Source§impl From<NotificationKind> for String
impl From<NotificationKind> for String
Source§fn from(k: NotificationKind) -> Self
fn from(k: NotificationKind) -> Self
Converts to this type from the input type.
Source§impl From<String> for NotificationKind
impl From<String> for NotificationKind
Source§impl Hash for NotificationKind
impl Hash for NotificationKind
Source§impl PartialEq for NotificationKind
impl PartialEq for NotificationKind
Source§fn eq(&self, other: &NotificationKind) -> bool
fn eq(&self, other: &NotificationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationKind
impl Serialize for NotificationKind
impl Eq for NotificationKind
impl StructuralPartialEq for NotificationKind
Auto Trait Implementations§
impl Freeze for NotificationKind
impl RefUnwindSafe for NotificationKind
impl Send for NotificationKind
impl Sync for NotificationKind
impl Unpin for NotificationKind
impl UnsafeUnpin for NotificationKind
impl UnwindSafe for NotificationKind
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