pub struct UnixClientSocket { /* private fields */ }Implementations§
Source§impl UnixClientSocket
impl UnixClientSocket
pub async fn new( tx: OwnedWriteHalf, rx: Lines<BufReader<OwnedReadHalf>>, buffer_size: usize, ) -> Self
pub async fn send_msg(&self, msg: ClientMessage) -> ConnectionResult<()>
pub async fn receive_msg(&mut self) -> ConnectionResult<Option<ServerMessage>>
pub async fn close(self) -> ConnectionResult<()>
Auto Trait Implementations§
impl Freeze for UnixClientSocket
impl !RefUnwindSafe for UnixClientSocket
impl Send for UnixClientSocket
impl Sync for UnixClientSocket
impl Unpin for UnixClientSocket
impl !UnwindSafe for UnixClientSocket
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