mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Implement close for StreamHandle
This commit is contained in:
@@ -205,6 +205,14 @@ pub struct StreamHandle {
|
|||||||
pending_writes: FuturesUnordered<oneshot::Receiver<Result<(), std::io::Error>>>,
|
pending_writes: FuturesUnordered<oneshot::Receiver<Result<(), std::io::Error>>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StreamHandle {
|
||||||
|
pub fn close(&mut self) {
|
||||||
|
let _ = self.send_channel.send(HandleMessage::Close {
|
||||||
|
host_port: self.host_port,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl AsyncRead for StreamHandle {
|
impl AsyncRead for StreamHandle {
|
||||||
/// Attempts to read from the connection into the provided buffer.
|
/// Attempts to read from the connection into the provided buffer.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user