Struct async_lsp::AnyRequest
source · #[non_exhaustive]pub struct AnyRequest {
pub id: RequestId,
pub method: String,
pub params: Value,
}
Expand description
A dynamic runtime request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: RequestId
§method: String
§params: Value
Trait Implementations§
source§impl Clone for AnyRequest
impl Clone for AnyRequest
source§fn clone(&self) -> AnyRequest
fn clone(&self) -> AnyRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnyRequest
impl Debug for AnyRequest
source§impl<'de> Deserialize<'de> for AnyRequest
impl<'de> Deserialize<'de> for AnyRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AnyRequest
impl Serialize for AnyRequest
source§impl<S: LspService> Service<AnyRequest> for CatchUnwind<S>
impl<S: LspService> Service<AnyRequest> for CatchUnwind<S>
§type Error = ResponseError
type Error = ResponseError
Errors produced by the service.
§type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
The future response value.
source§impl<S: LspService> Service<AnyRequest> for ClientProcessMonitor<S>
impl<S: LspService> Service<AnyRequest> for ClientProcessMonitor<S>
§type Error = ResponseError
type Error = ResponseError
Errors produced by the service.
§type Future = <S as Service<AnyRequest>>::Future
type Future = <S as Service<AnyRequest>>::Future
The future response value.
source§impl<S: LspService> Service<AnyRequest> for Concurrency<S>
impl<S: LspService> Service<AnyRequest> for Concurrency<S>
§type Error = ResponseError
type Error = ResponseError
Errors produced by the service.
§type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
The future response value.
source§impl<S: LspService> Service<AnyRequest> for Lifecycle<S>
impl<S: LspService> Service<AnyRequest> for Lifecycle<S>
§type Error = ResponseError
type Error = ResponseError
Errors produced by the service.
§type Future = Either<<S as Service<AnyRequest>>::Future, Ready<<<S as Service<AnyRequest>>::Future as Future>::Output>>
type Future = Either<<S as Service<AnyRequest>>::Future, Ready<<<S as Service<AnyRequest>>::Future as Future>::Output>>
The future response value.
source§impl<St> Service<AnyRequest> for Router<St>
impl<St> Service<AnyRequest> for Router<St>
§type Error = ResponseError
type Error = ResponseError
Errors produced by the service.
§type Future = Pin<Box<dyn Future<Output = Result<Value, ResponseError>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<Value, ResponseError>> + Send + 'static, Global>>
The future response value.
source§impl<S: LspService> Service<AnyRequest> for Tracing<S>
impl<S: LspService> Service<AnyRequest> for Tracing<S>
§type Error = ResponseError
type Error = ResponseError
Errors produced by the service.
§type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
The future response value.
Auto Trait Implementations§
impl RefUnwindSafe for AnyRequest
impl Send for AnyRequest
impl Sync for AnyRequest
impl Unpin for AnyRequest
impl UnwindSafe for AnyRequest
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