#[non_exhaustive]pub enum StartError {
AgentClosed,
SessionBusy,
Cancelled,
RunIdExhausted,
InvalidIdentity(CoordError),
Admission(LeaseError),
Prepare(AttributedError),
Transcript(Error),
}Expand description
Why Agent::start admitted no Run.
Every variant is pre-admission. A StartError means no Run exists, the
Session lease and Agent attachment have been rolled back, and the transcript
is as it was; once admission completes, failure is reported by the returned
Run’s Terminal instead. Agent::start
documents which condition produces which variant.
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.
AgentClosed
Agent close sealed new attachment before any Session access.
SessionBusy
The target Session already has an active lease.
Cancelled
Cancellation won before admission completed.
RunIdExhausted
The process-wide Run identity space was exhausted.
InvalidIdentity(CoordError)
Session or Run identity validation failed.
Admission(LeaseError)
Lease admission or a lease-bound prepare mutation failed.
Prepare(AttributedError)
A prepare hook failed.
Transcript(Error)
Transcript mutation failed.
Trait Implementations§
Source§impl Clone for StartError
impl Clone for StartError
Source§impl Debug for StartError
impl Debug for StartError
Source§impl Display for StartError
impl Display for StartError
Source§impl Error for StartError
impl Error for StartError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for StartError
impl !UnwindSafe for StartError
impl Freeze for StartError
impl Send for StartError
impl Sync for StartError
impl Unpin for StartError
impl UnsafeUnpin for StartError
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