pub struct ServerWrapper<T: FLAMSLSPServer> {
pub inner: T,
}
Fieldsยง
ยงinner: T
Implementationsยง
Sourceยงimpl<T: FLAMSLSPServer> ServerWrapper<T>
impl<T: FLAMSLSPServer> ServerWrapper<T>
pub(crate) fn html_request( &mut self, params: HtmlRequestParams, ) -> BoxFuture<'static, Result<Option<String>, ResponseError>>
pub(crate) fn new_archive( &mut self, _: NewArchiveParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn export_standalone( &mut self, params: StandaloneExportParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn quiz_request( &mut self, params: QuizRequestParams, ) -> BoxFuture<'static, Result<String, ResponseError>>
fn build( doc: &LSPDocument, uri: &impl Display, stale_only: bool, ) -> Result<(), String>
pub(crate) fn build_one( &mut self, params: BuildParams, ) -> BoxFuture<'static, Result<(), ResponseError>>
pub(crate) fn build_all( &mut self, params: BuildParams, ) -> BoxFuture<'static, Result<(), ResponseError>>
pub(crate) fn reload( &mut self, _: ReloadParams, ) -> <Self as LanguageServer>::NotifyResult
pub(crate) fn install( &mut self, params: InstallParams, ) -> <Self as LanguageServer>::NotifyResult
Sourceยงimpl<T: FLAMSLSPServer> ServerWrapper<T>
impl<T: FLAMSLSPServer> ServerWrapper<T>
pub const fn new(inner: T) -> Self
pub fn router(self) -> Router<Self>
pub fn get_progress(&self, tk: ProgressToken) -> ProgressCallbackClient
Trait Implementationsยง
Sourceยงimpl<T: FLAMSLSPServer> LanguageServer for ServerWrapper<T>
impl<T: FLAMSLSPServer> LanguageServer for ServerWrapper<T>
Sourceยงtype Error = ResponseError
type Error = ResponseError
Should always be defined to [
ResponseError
] for user implementations.Sourceยงtype NotifyResult = ControlFlow<Result<(), Error>>
type NotifyResult = ControlFlow<Result<(), Error>>
Should always be defined to
ControlFlow<Result<()>>
for user implementations.fn initialize( &mut self, params: InitializeParams, ) -> BoxFuture<'static, Result<InitializeResult, ResponseError>>
fn shutdown(&mut self, (): ()) -> BoxFuture<'static, Result<(), ResponseError>>
fn initialized(&mut self, _params: InitializedParams) -> Self::NotifyResult
fn exit(&mut self, params: <Exit as Notification>::Params) -> Self::NotifyResult
fn did_change_workspace_folders( &mut self, params: <DidChangeWorkspaceFolders as Notification>::Params, ) -> Self::NotifyResult
fn did_change_configuration( &mut self, params: <DidChangeConfiguration as Notification>::Params, ) -> Self::NotifyResult
fn did_change_watched_files( &mut self, params: <DidChangeWatchedFiles as Notification>::Params, ) -> Self::NotifyResult
fn did_create_files( &mut self, params: <DidCreateFiles as Notification>::Params, ) -> Self::NotifyResult
fn did_rename_files( &mut self, params: <DidRenameFiles as Notification>::Params, ) -> Self::NotifyResult
fn did_delete_files( &mut self, params: <DidDeleteFiles as Notification>::Params, ) -> Self::NotifyResult
fn did_open(&mut self, params: DidOpenTextDocumentParams) -> Self::NotifyResult
fn did_change( &mut self, params: DidChangeTextDocumentParams, ) -> Self::NotifyResult
fn did_save(&mut self, params: DidSaveTextDocumentParams) -> Self::NotifyResult
fn will_save( &mut self, params: <WillSaveTextDocument as Notification>::Params, ) -> Self::NotifyResult
fn did_close( &mut self, params: DidCloseTextDocumentParams, ) -> Self::NotifyResult
fn work_done_progress_cancel( &mut self, params: <WorkDoneProgressCancel as Notification>::Params, ) -> Self::NotifyResult
fn set_trace( &mut self, params: <SetTrace as Notification>::Params, ) -> Self::NotifyResult
fn cancel_request( &mut self, params: <Cancel as Notification>::Params, ) -> Self::NotifyResult
fn progress( &mut self, params: <Progress as Notification>::Params, ) -> Self::NotifyResult
fn document_symbol( &mut self, params: DocumentSymbolParams, ) -> BoxFuture<'static, Result<Option<DocumentSymbolResponse>, ResponseError>>
fn document_diagnostic( &mut self, params: DocumentDiagnosticParams, ) -> BoxFuture<'static, Result<DocumentDiagnosticReportResult, ResponseError>>
fn references( &mut self, params: ReferenceParams, ) -> BoxFuture<'static, Result<Option<Vec<Location>>, ResponseError>>
fn document_link( &mut self, params: DocumentLinkParams, ) -> BoxFuture<'static, Result<Option<Vec<DocumentLink>>, ResponseError>>
fn hover( &mut self, params: HoverParams, ) -> BoxFuture<'static, Result<Option<Hover>, ResponseError>>
fn definition( &mut self, params: GotoDefinitionParams, ) -> BoxFuture<'static, Result<Option<GotoDefinitionResponse>, ResponseError>>
fn code_lens( &mut self, params: <CodeLensRequest as Request>::Params, ) -> BoxFuture<'static, Result<<CodeLensRequest as Request>::Result, ResponseError>>
fn declaration( &mut self, params: <GotoDefinition as Request>::Params, ) -> BoxFuture<'static, Result<<GotoDefinition as Request>::Result, ResponseError>>
fn workspace_diagnostic( &mut self, params: <WorkspaceDiagnosticRequest as Request>::Params, ) -> BoxFuture<'static, Result<<WorkspaceDiagnosticRequest as Request>::Result, ResponseError>>
fn inlay_hint( &mut self, params: InlayHintParams, ) -> BoxFuture<'static, Result<Option<Vec<InlayHint>>, ResponseError>>
fn inlay_hint_resolve( &mut self, params: <InlayHintResolveRequest as Request>::Params, ) -> BoxFuture<'static, Result<<InlayHintResolveRequest as Request>::Result, ResponseError>>
fn code_action( &mut self, params: CodeActionParams, ) -> BoxFuture<'static, Result<Option<CodeActionResponse>, ResponseError>>
fn prepare_call_hierarchy( &mut self, params: CallHierarchyPrepareParams, ) -> BoxFuture<'static, Result<Option<Vec<CallHierarchyItem>>, ResponseError>>
fn incoming_calls( &mut self, params: CallHierarchyIncomingCallsParams, ) -> BoxFuture<'static, Result<Option<Vec<CallHierarchyIncomingCall>>, ResponseError>>
fn outgoing_calls( &mut self, params: <CallHierarchyOutgoingCalls as Request>::Params, ) -> BoxFuture<'static, Result<<CallHierarchyOutgoingCalls as Request>::Result, ResponseError>>
fn document_highlight( &mut self, params: <DocumentHighlightRequest as Request>::Params, ) -> BoxFuture<'static, Result<<DocumentHighlightRequest as Request>::Result, ResponseError>>
fn folding_range( &mut self, params: <FoldingRangeRequest as Request>::Params, ) -> BoxFuture<'static, Result<<FoldingRangeRequest as Request>::Result, ResponseError>>
fn implementation( &mut self, params: <GotoImplementation as Request>::Params, ) -> BoxFuture<'static, Result<<GotoImplementation as Request>::Result, ResponseError>>
fn type_definition( &mut self, params: <GotoTypeDefinition as Request>::Params, ) -> BoxFuture<'static, Result<<GotoTypeDefinition as Request>::Result, ResponseError>>
fn document_color( &mut self, params: <DocumentColor as Request>::Params, ) -> BoxFuture<'static, Result<<DocumentColor as Request>::Result, ResponseError>>
fn color_presentation( &mut self, params: <ColorPresentationRequest as Request>::Params, ) -> BoxFuture<'static, Result<<ColorPresentationRequest as Request>::Result, ResponseError>>
fn selection_range( &mut self, params: <SelectionRangeRequest as Request>::Params, ) -> BoxFuture<'static, Result<<SelectionRangeRequest as Request>::Result, ResponseError>>
fn moniker( &mut self, params: <MonikerRequest as Request>::Params, ) -> BoxFuture<'static, Result<<MonikerRequest as Request>::Result, ResponseError>>
fn inline_value( &mut self, params: <InlineValueRequest as Request>::Params, ) -> BoxFuture<'static, Result<<InlineValueRequest as Request>::Result, ResponseError>>
fn on_type_formatting( &mut self, params: <OnTypeFormatting as Request>::Params, ) -> BoxFuture<'static, Result<<OnTypeFormatting as Request>::Result, ResponseError>>
fn range_formatting( &mut self, params: <RangeFormatting as Request>::Params, ) -> BoxFuture<'static, Result<<RangeFormatting as Request>::Result, ResponseError>>
fn formatting( &mut self, params: <Formatting as Request>::Params, ) -> BoxFuture<'static, Result<<Formatting as Request>::Result, ResponseError>>
fn prepare_rename( &mut self, params: <PrepareRenameRequest as Request>::Params, ) -> BoxFuture<'static, Result<<PrepareRenameRequest as Request>::Result, ResponseError>>
fn rename( &mut self, params: <Rename as Request>::Params, ) -> BoxFuture<'static, Result<<Rename as Request>::Result, ResponseError>>
fn prepare_type_hierarchy( &mut self, params: <TypeHierarchyPrepare as Request>::Params, ) -> BoxFuture<'static, Result<<TypeHierarchyPrepare as Request>::Result, ResponseError>>
fn will_save_wait_until( &mut self, params: <WillSaveWaitUntil as Request>::Params, ) -> BoxFuture<'static, Result<<WillSaveWaitUntil as Request>::Result, ResponseError>>
fn completion( &mut self, params: <Completion as Request>::Params, ) -> BoxFuture<'static, Result<<Completion as Request>::Result, ResponseError>>
fn signature_help( &mut self, params: <SignatureHelpRequest as Request>::Params, ) -> BoxFuture<'static, Result<<SignatureHelpRequest as Request>::Result, ResponseError>>
fn linked_editing_range( &mut self, params: <LinkedEditingRange as Request>::Params, ) -> BoxFuture<'static, Result<<LinkedEditingRange as Request>::Result, ResponseError>>
fn semantic_tokens_full( &mut self, params: SemanticTokensParams, ) -> BoxFuture<'static, Result<Option<SemanticTokensResult>, ResponseError>>
fn semantic_tokens_range( &mut self, params: SemanticTokensRangeParams, ) -> BoxFuture<'static, Result<Option<SemanticTokensRangeResult>, ResponseError>>
fn semantic_tokens_full_delta( &mut self, params: SemanticTokensDeltaParams, ) -> BoxFuture<'static, Result<Option<SemanticTokensFullDeltaResult>, ResponseError>>
fn will_create_files( &mut self, params: <WillCreateFiles as Request>::Params, ) -> BoxFuture<'static, Result<<WillCreateFiles as Request>::Result, ResponseError>>
fn will_rename_files( &mut self, params: <WillRenameFiles as Request>::Params, ) -> BoxFuture<'static, Result<<WillRenameFiles as Request>::Result, ResponseError>>
fn will_delete_files( &mut self, params: <WillDeleteFiles as Request>::Params, ) -> BoxFuture<'static, Result<<WillDeleteFiles as Request>::Result, ResponseError>>
fn symbol( &mut self, params: <WorkspaceSymbolRequest as Request>::Params, ) -> BoxFuture<'static, Result<<WorkspaceSymbolRequest as Request>::Result, ResponseError>>
fn execute_command( &mut self, params: <ExecuteCommand as Request>::Params, ) -> BoxFuture<'static, Result<<ExecuteCommand as Request>::Result, ResponseError>>
fn supertypes( &mut self, params: <TypeHierarchySupertypes as Request>::Params, ) -> BoxFuture<'static, Result<<TypeHierarchySupertypes as Request>::Result, ResponseError>>
fn subtypes( &mut self, params: <TypeHierarchySubtypes as Request>::Params, ) -> BoxFuture<'static, Result<<TypeHierarchySubtypes as Request>::Result, ResponseError>>
fn completion_item_resolve( &mut self, params: <ResolveCompletionItem as Request>::Params, ) -> BoxFuture<'static, Result<<ResolveCompletionItem as Request>::Result, ResponseError>>
fn code_action_resolve( &mut self, params: <CodeActionResolveRequest as Request>::Params, ) -> BoxFuture<'static, Result<<CodeActionResolveRequest as Request>::Result, ResponseError>>
fn workspace_symbol_resolve( &mut self, params: <WorkspaceSymbolResolve as Request>::Params, ) -> BoxFuture<'static, Result<<WorkspaceSymbolResolve as Request>::Result, ResponseError>>
fn code_lens_resolve( &mut self, params: <CodeLensResolve as Request>::Params, ) -> BoxFuture<'static, Result<<CodeLensResolve as Request>::Result, ResponseError>>
fn document_link_resolve( &mut self, params: <DocumentLinkResolve as Request>::Params, ) -> BoxFuture<'static, Result<<DocumentLinkResolve as Request>::Result, ResponseError>>
Auto Trait Implementationsยง
impl<T> Freeze for ServerWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for ServerWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ServerWrapper<T>where
T: Send,
impl<T> Sync for ServerWrapper<T>where
T: Sync,
impl<T> Unpin for ServerWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for ServerWrapper<T>where
T: UnwindSafe,
Blanket Implementationsยง
ยงimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
ยงtype ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
ยงfn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
ยงimpl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
ยงfn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.ยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
ยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more