pub struct ClientSideConnection { /* private fields */ }
Implementations§
Source§impl ClientSideConnection
impl ClientSideConnection
pub fn new( client: impl MessageHandler<ClientSide> + 'static, outgoing_bytes: impl Unpin + AsyncWrite, incoming_bytes: impl Unpin + AsyncRead, spawn: impl Fn(LocalBoxFuture<'static, ()>) + 'static, ) -> (Self, impl Future<Output = Result<()>>)
Trait Implementations§
Source§impl Agent for ClientSideConnection
impl Agent for ClientSideConnection
async fn initialize( &self, arguments: InitializeRequest, ) -> Result<InitializeResponse, Error>
async fn authenticate( &self, arguments: AuthenticateRequest, ) -> Result<(), Error>
async fn new_session( &self, arguments: NewSessionRequest, ) -> Result<NewSessionResponse, Error>
async fn load_session(&self, arguments: LoadSessionRequest) -> Result<(), Error>
async fn prompt( &self, arguments: PromptRequest, ) -> Result<PromptResponse, Error>
async fn cancel(&self, notification: CancelNotification) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for ClientSideConnection
impl !RefUnwindSafe for ClientSideConnection
impl Send for ClientSideConnection
impl Sync for ClientSideConnection
impl Unpin for ClientSideConnection
impl !UnwindSafe for ClientSideConnection
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