pub struct FramedConn<C> {
reader: FramedReader<C>,
writer: FramedWriter<C>,
}Expand description
Framed message connection over a byte stream.
Fields§
§reader: FramedReader<C>§writer: FramedWriter<C>Implementations§
Source§impl<C> FramedConn<C>
impl<C> FramedConn<C>
Sourcepub fn peer_endpoint(&self) -> Option<Endpoint>
pub fn peer_endpoint(&self) -> Option<Endpoint>
Remote peer address.
Sourcepub fn local_endpoint(&self) -> Option<Endpoint>
pub fn local_endpoint(&self) -> Option<Endpoint>
Local address.
Sourcepub fn split(self) -> (FramedReader<C>, FramedWriter<C>)
pub fn split(self) -> (FramedReader<C>, FramedWriter<C>)
Split into independent reader and writer halves.
Auto Trait Implementations§
impl<C> Freeze for FramedConn<C>where
C: Freeze,
impl<C> RefUnwindSafe for FramedConn<C>where
C: RefUnwindSafe,
impl<C> Send for FramedConn<C>where
C: Send,
impl<C> Sync for FramedConn<C>where
C: Sync,
impl<C> Unpin for FramedConn<C>where
C: Unpin,
impl<C> UnsafeUnpin for FramedConn<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for FramedConn<C>where
C: 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