#[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: RequestId
The request id.
method: String
The method to be invoked.
params: Value
The 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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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>
Source§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.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>
impl<S: LspService> Service<AnyRequest> for Concurrency<S>
Source§impl<S: LspService> Service<AnyRequest> for Lifecycle<S>
impl<S: LspService> Service<AnyRequest> for Lifecycle<S>
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.Auto Trait Implementations§
impl Freeze for AnyRequest
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