pub struct Stem { /* private fields */ }Implementations§
Source§impl Stem
impl Stem
pub async fn new<T: ToSocketAddrs>(addr: T) -> Result<Stem>
pub async fn with_server() -> Result<Stem>
pub fn framed_split( self, ) -> (FramedRead<OwnedReadHalf, StemCodec>, FramedWrite<OwnedWriteHalf, StemCodec>)
pub fn framed(self) -> Framed<TcpStream, StemCodec>
Auto Trait Implementations§
impl !Freeze for Stem
impl !RefUnwindSafe for Stem
impl Send for Stem
impl Sync for Stem
impl Unpin for Stem
impl UnsafeUnpin for Stem
impl !UnwindSafe for Stem
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