pub struct UserCon { /* private fields */ }Expand description
This represents a single User-Connection and is used to send and receive Data for that one specific User
Implementations§
Source§impl UserCon
impl UserCon
Sourcepub fn into_split(self) -> (OwnedReceiver, OwnedSender)
pub fn into_split(self) -> (OwnedReceiver, OwnedSender)
Splits the Connection into its owned (Reader, Writer)-Halfes, which allows you to use them more independantly of one another and enables you to send them to different Threads without having to use any extra sync between the Halfes
Trait Implementations§
Source§impl Receiver for UserCon
impl Receiver for UserCon
Source§type ReceivingError = RecvError
type ReceivingError = RecvError
The Error-Type that the Receiver will return if it encounters
any problems
Auto Trait Implementations§
impl !RefUnwindSafe for UserCon
impl !UnwindSafe for UserCon
impl Freeze for UserCon
impl Send for UserCon
impl Sync for UserCon
impl Unpin for UserCon
impl UnsafeUnpin for UserCon
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