Struct rune_languageserver::Output [−][src]
Output connection.
Implementations
impl Output
[src]
pub async fn response<R>(&self, id: Option<RequestId>, result: R) -> Result<()> where
R: Serialize,
[src]
R: Serialize,
Send the given response.
pub async fn error<D, M>(
&self,
id: Option<RequestId>,
code: Code,
message: M,
data: Option<D>
) -> Result<()> where
D: Serialize,
M: Display,
[src]
&self,
id: Option<RequestId>,
code: Code,
message: M,
data: Option<D>
) -> Result<()> where
D: Serialize,
M: Display,
Send the given error as response.
pub async fn notification<N>(&self, notification: N::Params) -> Result<()> where
N: Notification,
[src]
N: Notification,
Send the given notification
pub async fn log<M>(&self, typ: MessageType, message: M) -> Result<()> where
M: Display,
[src]
M: Display,
Send a log message.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl !UnwindSafe for Output
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,