pub struct Connection<M> {
pub sender: TConnectionTx<M>,
pub receiver: TConnectionRx<M>,
}
Expand description
Connection is just a pair of channels of LSP messages.
Fields§
§sender: TConnectionTx<M>
The senders of the connection.
receiver: TConnectionRx<M>
The receivers of the connection.
Trait Implementations§
Source§impl<M: TryFrom<Message, Error = Error>> From<Connection<Message>> for Connection<M>
impl<M: TryFrom<Message, Error = Error>> From<Connection<Message>> for Connection<M>
Source§fn from(conn: Connection<Message>) -> Self
fn from(conn: Connection<Message>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<M> Freeze for Connection<M>
impl<M> RefUnwindSafe for Connection<M>where
M: RefUnwindSafe,
impl<M> Send for Connection<M>where
M: Send,
impl<M> Sync for Connection<M>where
M: Sync,
impl<M> Unpin for Connection<M>where
M: Unpin,
impl<M> UnwindSafe for Connection<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