Struct tor_proto::stream::DataStreamCtrl
source · pub struct DataStreamCtrl { /* private fields */ }Available on crate feature
stream-ctrl only.Expand description
An object used to control and monitor a data stream.
Notes
This is a separate type from DataStream because it’s useful to have
multiple references to this object, whereas a DataReader and DataWriter
need to have a single owner for the AsyncRead and AsyncWrite APIs to
work correctly.
Implementations§
Trait Implementations§
source§impl ClientStreamCtrl for DataStreamCtrl
impl ClientStreamCtrl for DataStreamCtrl
Auto Trait Implementations§
impl !RefUnwindSafe for DataStreamCtrl
impl Send for DataStreamCtrl
impl Sync for DataStreamCtrl
impl Unpin for DataStreamCtrl
impl !UnwindSafe for DataStreamCtrl
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