pub struct SessionStartError { /* private fields */ }Expand description
Stable façade error for Session startup.
Internal compiler, runtime, capture-owner, and host error types never cross this boundary. Language bindings and external Rust callers consume the stable code and diagnostic message instead of depending on engine owners.
Implementations§
Source§impl SessionStartError
impl SessionStartError
pub const fn code(&self) -> SessionStartErrorCode
pub fn message(&self) -> &str
Sourcepub const fn rollback_failures_total(&self) -> u64
pub const fn rollback_failures_total(&self) -> u64
Number of cleanup failures reported by the startup transaction.
A nonzero count means rollback could not confirm cleanup. Zero means no rollback failure was reported; it does not prove physical resource release or cover compensation after explicit sidecar startup failure.
Sourcepub fn compile_diagnostic(&self) -> Option<&SessionCompileDiagnostic>
pub fn compile_diagnostic(&self) -> Option<&SessionCompileDiagnostic>
Returns structured compiler facts when startup failed while compiling the declared Session.
Consumers must branch on the stable diagnostic code and fields rather
than parsing Self::message.
pub fn kind(&self) -> SessionStartErrorKind
pub fn is_cancelled(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionStartError
impl Clone for SessionStartError
Source§impl Debug for SessionStartError
impl Debug for SessionStartError
Source§impl Display for SessionStartError
impl Display for SessionStartError
impl Eq for SessionStartError
Source§impl Error for SessionStartError
impl Error for SessionStartError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()