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> Freeze for Builder<I, O>
impl<I, O> RefUnwindSafe for Builder<I, O>where
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<I, O> Send for Builder<I, O>
impl<I, O> Sync for Builder<I, O>
impl<I, O> Unpin for Builder<I, O>
impl<I, O> UnwindSafe for Builder<I, O>where
I: UnwindSafe,
O: UnwindSafe,
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