pub struct TConnectionRx<M> {
pub event: Receiver<Event>,
pub lsp: Receiver<Message>,
/* private fields */
}Expand description
The sender of the language server.
Fields§
§event: Receiver<Event>The receiver of the events.
lsp: Receiver<Message>The receiver of the LSP messages.
Implementations§
Source§impl<M: TryFrom<Message, Error = Error>> TConnectionRx<M>
impl<M: TryFrom<Message, Error = Error>> TConnectionRx<M>
Sourcepub fn recv(&self) -> Result<EventOrMessage<M>>
pub fn recv(&self) -> Result<EventOrMessage<M>>
Receives a message or an event.
Trait Implementations§
Source§impl<M: Clone> Clone for TConnectionRx<M>
impl<M: Clone> Clone for TConnectionRx<M>
Source§fn clone(&self) -> TConnectionRx<M>
fn clone(&self) -> TConnectionRx<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<M> Freeze for TConnectionRx<M>
impl<M> RefUnwindSafe for TConnectionRx<M>where
M: RefUnwindSafe,
impl<M> Send for TConnectionRx<M>where
M: Send,
impl<M> Sync for TConnectionRx<M>where
M: Sync,
impl<M> Unpin for TConnectionRx<M>where
M: Unpin,
impl<M> UnwindSafe for TConnectionRx<M>where
M: 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