pub struct Builder<I, O> { /* private fields */ }Available on crate feature
languageserver only.Expand description
A builder for a language server.
See builder() for more details.
Implementations§
Source§impl<I, O> Builder<I, O>
impl<I, O> Builder<I, O>
Sourcepub fn with_input<T>(self, input: T) -> Builder<T, O>
pub fn with_input<T>(self, input: T) -> Builder<T, O>
Associate the specified input with the builder.
Sourcepub fn with_output<T>(self, output: T) -> Builder<I, T>where
T: Unpin + AsyncWrite,
pub fn with_output<T>(self, output: T) -> Builder<I, T>where
T: Unpin + AsyncWrite,
Associate the specified output with the builder.
Sourcepub fn with_stdio(self) -> Builder<Stdin, Stdout>
Available on crate feature std only.
pub fn with_stdio(self) -> Builder<Stdin, Stdout>
std only.Sourcepub fn with_context(self, context: Context) -> Self
pub fn with_context(self, context: Context) -> Self
Associate the specified context with the builder.
If none is specified, a default context will be constructed.
Sourcepub fn with_options(self, options: Options) -> Self
pub fn with_options(self, options: Options) -> Self
Associate the specified options with the builder.
Sourcepub fn build(self) -> Result<LanguageServer<I, O>>
pub fn build(self) -> Result<LanguageServer<I, O>>
Build a new language server using the provided options.
Auto Trait Implementations§
impl<I, O> !RefUnwindSafe for Builder<I, O>
impl<I, O> !Sync for Builder<I, O>
impl<I, O> !UnwindSafe for Builder<I, O>
impl<I, O> Forget for Builder<I, O>
impl<I, O> Freeze for Builder<I, O>where
I: Freeze,
O: Freeze,
PhantomData<fn() -> AHasher>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(&'static str, ())>: Freeze,
*const ContextMeta is !null: Freeze,
PhantomData<ContextMeta>: Freeze,
PhantomData<(Hash, Vec<usize>)>: Freeze,
PhantomData<(ItemBuf, BTreeSet<Hash>)>: Freeze,
PhantomData<(Hash, FunctionHandler)>: Freeze,
PhantomData<(Hash, String)>: Freeze,
PhantomData<(Hash, Vec<Hash>)>: Freeze,
PhantomData<(Hash, MacroHandler)>: Freeze,
PhantomData<(Hash, Option<TraitHandler>)>: Freeze,
PhantomData<(Hash, AttributeMacroHandler)>: Freeze,
PhantomData<(Hash, ContextType)>: Freeze,
*const LeafNode<Component, Node> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Component, Node)>>: Freeze,
PhantomData<(Box<str>, ())>: Freeze,
PhantomData<(Hash, ConstValueBuf)>: Freeze,
PhantomData<(Hash, ConstConstructImpl)>: Freeze,
*const dyn FnMut(&Path) -> Result<Option<Vec<u8>>, Error> + Send is !null: Freeze,
PhantomData<dyn FnMut(&Path) -> Result<Option<Vec<u8>>, Error> + Send>: Freeze,
impl<I, O> Move for Builder<I, O>
impl<I, O> Send for Builder<I, O>where
O: Send,
I: Send,
RawTable<(&'static str, ())>: Send,
Unique<ContextMeta>: Send,
RawTable<(Hash, Vec<usize>)>: Send,
RawTable<(ItemBuf, BTreeSet<Hash>)>: Send,
RawTable<(Hash, FunctionHandler)>: Send,
RawTable<(Hash, String)>: Send,
RawTable<(Hash, Vec<Hash>)>: Send,
RawTable<(Hash, MacroHandler)>: Send,
RawTable<(Hash, Option<TraitHandler>)>: Send,
RawTable<(Hash, AttributeMacroHandler)>: Send,
RawTable<(Hash, ContextType)>: Send,
NodeRef<Owned, Component, Node, LeafOrInternal>: Send,
Unique<(Component, Node)>: Send,
RawTable<(Box<str>, ())>: Send,
RawTable<(Hash, ConstValueBuf)>: Send,
RawTable<(Hash, ConstConstructImpl)>: Send,
BoxRaw<dyn FnMut(&Path) -> Result<Option<Vec<u8>>, Error> + Send>: Send,
impl<I, O> Unpin for Builder<I, O>where
O: Unpin,
I: Unpin,
*const u8 is !null: Unpin,
&'static str: Unpin,
*const ContextMeta is !null: Unpin,
Box<[FieldMeta]>: Unpin,
Box<[DocArgument]>: Unpin,
Box<[DocType]>: Unpin,
&'static Protocol: Unpin,
String: Unpin,
*const Hash is !null: Unpin,
Box<str>: Unpin,
*const String is !null: Unpin,
*const usize is !null: Unpin,
*const LeafNode<Hash, SetValZST> is !null: Unpin,
Box<(Hash, SetValZST)>: Unpin,
*const () is !null: Unpin,
&'static FunctionHandlerVTable: Unpin,
&'static MacroHandlerVtable: Unpin,
&'static TraitHandlerVtable: Unpin,
&'static AttributeMacroHandlerVtable: Unpin,
*const ArcInner<Rtti> is !null: Unpin,
Align8<usize>: Unpin,
*const LeafNode<Component, Node> is !null: Unpin,
Box<(Component, Node)>: Unpin,
Box<[u8]>: Unpin,
Box<[Box<str>]>: Unpin,
Box<[ConstNode]>: Unpin,
&'static ConstConstructVtable: Unpin,
Box<dyn FnMut(&Path) -> Result<Option<Vec<u8>>, Error> + Send>: Unpin,
impl<I, O> UnsafeUnpin for Builder<I, O>where
I: UnsafeUnpin,
O: UnsafeUnpin,
PhantomData<fn() -> AHasher>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(&'static str, ())>: UnsafeUnpin,
*const ContextMeta is !null: UnsafeUnpin,
PhantomData<ContextMeta>: UnsafeUnpin,
PhantomData<(Hash, Vec<usize>)>: UnsafeUnpin,
PhantomData<(ItemBuf, BTreeSet<Hash>)>: UnsafeUnpin,
PhantomData<(Hash, FunctionHandler)>: UnsafeUnpin,
PhantomData<(Hash, String)>: UnsafeUnpin,
PhantomData<(Hash, Vec<Hash>)>: UnsafeUnpin,
PhantomData<(Hash, MacroHandler)>: UnsafeUnpin,
PhantomData<(Hash, Option<TraitHandler>)>: UnsafeUnpin,
PhantomData<(Hash, AttributeMacroHandler)>: UnsafeUnpin,
PhantomData<(Hash, ContextType)>: UnsafeUnpin,
*const LeafNode<Component, Node> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Component, Node)>>: UnsafeUnpin,
PhantomData<(Box<str>, ())>: UnsafeUnpin,
PhantomData<(Hash, ConstValueBuf)>: UnsafeUnpin,
PhantomData<(Hash, ConstConstructImpl)>: UnsafeUnpin,
*const dyn FnMut(&Path) -> Result<Option<Vec<u8>>, Error> + Send is !null: UnsafeUnpin,
PhantomData<dyn FnMut(&Path) -> Result<Option<Vec<u8>>, Error> + Send>: UnsafeUnpin,
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