pub struct FramedConn<S> { /* private fields */ }Expand description
Generic NDJSON framing over any duplex stream.
Implementations§
Source§impl<S> FramedConn<S>
impl<S> FramedConn<S>
Trait Implementations§
Source§impl<S> WireConn for FramedConn<S>
impl<S> WireConn for FramedConn<S>
fn read_msg<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write_msg<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: &'life1 Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for FramedConn<S>where
S: Freeze,
impl<S> RefUnwindSafe for FramedConn<S>where
S: RefUnwindSafe,
impl<S> Send for FramedConn<S>where
S: Send,
impl<S> Sync for FramedConn<S>where
S: Sync,
impl<S> Unpin for FramedConn<S>where
S: Unpin,
impl<S> UnsafeUnpin for FramedConn<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FramedConn<S>where
S: 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