pub(crate) struct Shared<S>(pub(crate) Mutex<WebSocketStream<S>>);Tuple Fields§
§0: Mutex<WebSocketStream<S>>Implementations§
pub(crate) fn lock(&self) -> MutexGuard<'_, WebSocketStream<S>>
pub(crate) fn into_inner(self) -> WebSocketStream<S>
Trait Implementations§
Auto Trait Implementations§
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