Struct tokio_yamux::Control
source · pub struct Control(_);
Expand description
A session control is used to open the stream or close the session
Implementations§
source§impl Control
impl Control
sourcepub async fn open_stream(&mut self) -> Result<StreamHandle, Error>
pub async fn open_stream(&mut self) -> Result<StreamHandle, Error>
Open a new stream to remote session
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl !UnwindSafe for Control
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