pub struct StreamLink<R, W> { /* private fields */ }Expand description
A Link over a byte stream with length-prefix framing.
Wraps an AsyncRead + AsyncWrite pair. Each message is framed as
[len: u32 LE][payload bytes].
Implementations§
Source§impl<R, W> StreamLink<R, W>
impl<R, W> StreamLink<R, W>
Source§impl StreamLink<Stdin, Stdout>
impl StreamLink<Stdin, Stdout>
Source§impl StreamLink<OwnedReadHalf, OwnedWriteHalf>
impl StreamLink<OwnedReadHalf, OwnedWriteHalf>
Sourcepub fn unix(stream: UnixStream) -> Self
pub fn unix(stream: UnixStream) -> Self
Wrap a UnixStream.
Trait Implementations§
Source§impl<R, W> Link for StreamLink<R, W>
impl<R, W> Link for StreamLink<R, W>
Auto Trait Implementations§
impl<R, W> Freeze for StreamLink<R, W>
impl<R, W> RefUnwindSafe for StreamLink<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for StreamLink<R, W>
impl<R, W> Sync for StreamLink<R, W>
impl<R, W> Unpin for StreamLink<R, W>
impl<R, W> UnsafeUnpin for StreamLink<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> UnwindSafe for StreamLink<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<L> IntoConduit for Lwhere
L: Link,
impl<L> IntoConduit for Lwhere
L: Link,
Source§type Conduit = BareConduit<MessageFamily, L>
type Conduit = BareConduit<MessageFamily, L>
The conduit type produced by this conversion.
Source§fn into_conduit(self) -> <L as IntoConduit>::Conduit
fn into_conduit(self) -> <L as IntoConduit>::Conduit
Convert into a conduit.