pub enum ServiceState<'a, A, S> {
Uninitialized(Option<&'a mut A>),
Ready(&'a mut S),
}
Expand description
An enum to represent the state of the language server.
Variants§
Uninitialized(Option<&'a mut A>)
The service is uninitialized.
Ready(&'a mut S)
The service is initializing.
Implementations§
Auto Trait Implementations§
impl<'a, A, S> Freeze for ServiceState<'a, A, S>
impl<'a, A, S> RefUnwindSafe for ServiceState<'a, A, S>where
S: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, A, S> Send for ServiceState<'a, A, S>
impl<'a, A, S> Sync for ServiceState<'a, A, S>
impl<'a, A, S> Unpin for ServiceState<'a, A, S>
impl<'a, A, S> !UnwindSafe for ServiceState<'a, A, S>
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