pub enum SdkErrorKind {
AttachProtocol,
CapabilityUnsupported,
ClipboardDisabled,
ClipboardPasteTooLarge,
InputParse,
QueueOverflow,
TerminalProgressMalformed,
UiLinkBlocked,
}Expand description
Typed SDK error taxonomy.
Consolidates the contract’s documented rejection/policy surfaces (malformed
progress signals, blocked links, clipboard bounds, capability gating,
bounded-queue drops, input parsing, and attach/protocol faults) into a
stable, host-consumable set of error codes. Each variant maps to a single
dotted Self::code that is stable for the 1.x line.
Variants§
AttachProtocol
attach.protocol_error — websocket attach/lifecycle protocol fault.
CapabilityUnsupported
capability.unsupported — requested feature/renderer not advertised.
ClipboardDisabled
clipboard.disabled — copy/paste disabled by host clipboard policy.
ClipboardPasteTooLarge
clipboard.paste_too_large — paste payload exceeds maxPasteBytes.
InputParse
input.parse — malformed host-encoded input payload.
QueueOverflow
queue.overflow — a bounded host-drained queue dropped its oldest entry.
TerminalProgressMalformed
terminal.progress.malformed — malformed OSC 9;4 progress payload.
UiLinkBlocked
ui.link.blocked — hyperlink activation denied by link-open policy.
Implementations§
Source§impl SdkErrorKind
impl SdkErrorKind
Sourcepub const ALL: [SdkErrorKind; 8]
pub const ALL: [SdkErrorKind; 8]
All error kinds in canonical (sorted-by-code) order.
Sourcepub const fn summary(self) -> &'static str
pub const fn summary(self) -> &'static str
Stable, human-readable summary of the error condition.
Sourcepub fn from_code(value: &str) -> Option<Self>
pub fn from_code(value: &str) -> Option<Self>
Parse a wire code back to its kind (inverse of Self::code).
Trait Implementations§
Source§impl Clone for SdkErrorKind
impl Clone for SdkErrorKind
Source§fn clone(&self) -> SdkErrorKind
fn clone(&self) -> SdkErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SdkErrorKind
Source§impl Debug for SdkErrorKind
impl Debug for SdkErrorKind
Source§impl Display for SdkErrorKind
impl Display for SdkErrorKind
impl Eq for SdkErrorKind
Source§impl Hash for SdkErrorKind
impl Hash for SdkErrorKind
Source§impl Ord for SdkErrorKind
impl Ord for SdkErrorKind
Source§fn cmp(&self, other: &SdkErrorKind) -> Ordering
fn cmp(&self, other: &SdkErrorKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SdkErrorKind
impl PartialEq for SdkErrorKind
Source§fn eq(&self, other: &SdkErrorKind) -> bool
fn eq(&self, other: &SdkErrorKind) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SdkErrorKind
impl PartialOrd for SdkErrorKind
impl StructuralPartialEq for SdkErrorKind
Auto Trait Implementations§
impl Freeze for SdkErrorKind
impl RefUnwindSafe for SdkErrorKind
impl Send for SdkErrorKind
impl Sync for SdkErrorKind
impl Unpin for SdkErrorKind
impl UnsafeUnpin for SdkErrorKind
impl UnwindSafe for SdkErrorKind
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.