Struct async_lsp::AnyRequest 
source · #[non_exhaustive]pub struct AnyRequest {
    pub id: RequestId,
    pub method: String,
    pub params: Value,
}Expand description
A dynamic runtime LSP 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: RequestIdThe request id.
method: StringThe method to be invoked.
params: ValueThe method’s params.
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 Response = <S as Service<AnyRequest>>::Response
 
type Response = <S as Service<AnyRequest>>::Response
Responses given by the service.
§type Error = <S as Service<AnyRequest>>::Error
 
type Error = <S as Service<AnyRequest>>::Error
Errors produced by the service.
§type Future = ResponseFuture<<S as Service<AnyRequest>>::Future, <S as Service<AnyRequest>>::Error>
 
type Future = ResponseFuture<<S as Service<AnyRequest>>::Future, <S as Service<AnyRequest>>::Error>
The future response value.
source§impl<S: LspService> Service<AnyRequest> for ClientProcessMonitor<S>
Available on crate feature client-monitor only. 
impl<S: LspService> Service<AnyRequest> for ClientProcessMonitor<S>
Available on crate feature 
client-monitor only.§type Response = <S as Service<AnyRequest>>::Response
 
type Response = <S as Service<AnyRequest>>::Response
Responses given by the service.
§type Error = <S as Service<AnyRequest>>::Error
 
type Error = <S as Service<AnyRequest>>::Error
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 Service<AnyRequest> for ClientSocket
Available on crate feature forward only. 
impl Service<AnyRequest> for ClientSocket
Available on crate feature 
forward only.source§impl<S: LspService> Service<AnyRequest> for Concurrency<S>where
    S::Error: From<ResponseError>,
 
impl<S: LspService> Service<AnyRequest> for Concurrency<S>where S::Error: From<ResponseError>,
§type Response = <S as Service<AnyRequest>>::Response
 
type Response = <S as Service<AnyRequest>>::Response
Responses given by the service.
§type Error = <S as Service<AnyRequest>>::Error
 
type Error = <S as Service<AnyRequest>>::Error
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>where
    S::Error: From<ResponseError>,
 
impl<S: LspService> Service<AnyRequest> for Lifecycle<S>where S::Error: From<ResponseError>,
§type Response = <S as Service<AnyRequest>>::Response
 
type Response = <S as Service<AnyRequest>>::Response
Responses given by the service.
§type Error = <S as Service<AnyRequest>>::Error
 
type Error = <S as Service<AnyRequest>>::Error
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<St, Error> Service<AnyRequest> for Router<St, Error>
 
impl<St, Error> Service<AnyRequest> for Router<St, Error>
source§impl Service<AnyRequest> for ServerSocket
Available on crate feature forward only. 
impl Service<AnyRequest> for ServerSocket
Available on crate feature 
forward only.source§impl<S: LspService> Service<AnyRequest> for Tracing<S>
Available on crate feature tracing only. 
impl<S: LspService> Service<AnyRequest> for Tracing<S>
Available on crate feature 
tracing only.§type Response = <S as Service<AnyRequest>>::Response
 
type Response = <S as Service<AnyRequest>>::Response
Responses given by the service.
§type Error = <S as Service<AnyRequest>>::Error
 
type Error = <S as Service<AnyRequest>>::Error
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