Struct dap_reactor::reactor::Client
source · [−]pub struct Client {
pub responses: Receiver<ClientResponse>,
pub events: Receiver<Event>,
pub requests: Sender<ClientRequest>,
pub inbound: JoinHandle<()>,
pub outbound: JoinHandle<()>,
}
Fields
responses: Receiver<ClientResponse>
events: Receiver<Event>
requests: Sender<ClientRequest>
inbound: JoinHandle<()>
outbound: JoinHandle<()>
Implementations
sourceimpl Client
impl Client
pub async fn connect<S>(capacity: usize, buffer: usize, socket: S) -> Result<Self>where
S: ToSocketAddrs,
pub async fn request(
&self,
request: Request
) -> Result<(), SendError<ClientRequest>>
pub async fn request_with_seq(
&self,
seq: u64,
request: Request
) -> Result<(), SendError<ClientRequest>>
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more