#[non_exhaustive]pub enum Phase {
BeforeInitialize,
AwaitingInitializeResult,
AfterInitializeSuccess,
AfterInitializeError,
Ready,
}Expand description
The 2025-11-25 session lifecycle phase before a given event is processed.
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.
BeforeInitialize
No initialize request has been observed yet.
AwaitingInitializeResult
initialize was sent; the server has not yet responded to it.
AfterInitializeSuccess
The server answered initialize with a result; notifications/initialized
has not yet been observed.
AfterInitializeError
The server answered initialize with an error; the session never became ready.
Ready
notifications/initialized has been observed; normal operation.
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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