pub struct Transport {
pub reader: Pin<Box<dyn Stream<Item = Vec<u8>>>>,
pub writer: Pin<Box<dyn Sink<Vec<u8>, Error = TransportError>>>,
}Expand description
A bidirectional byte transport: a reader (inbound) and a writer (outbound).
Fields§
§reader: Pin<Box<dyn Stream<Item = Vec<u8>>>>§writer: Pin<Box<dyn Sink<Vec<u8>, Error = TransportError>>>Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Transport
impl !Send for Transport
impl !Sync for Transport
impl !UnwindSafe for Transport
impl Freeze for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
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