pub struct Connecting<T>(pub T);
Expand description
A dummy Connecting
type, that wraps a session and implements
endpoint::connect::Connecting
trait.
Useful when implementing a driver that does not have a meaningful way to encode the intermediate “connecting session” state, and provides a fully connected session right away. Those drivers can use this dummy type instead of implementing their own.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> Connecting for Connecting<T>where
T: Send,
impl<T> Connecting for Connecting<T>where
T: Send,
Auto Trait Implementations§
impl<T> Freeze for Connecting<T>where
T: Freeze,
impl<T> RefUnwindSafe for Connecting<T>where
T: RefUnwindSafe,
impl<T> Send for Connecting<T>where
T: Send,
impl<T> Sync for Connecting<T>where
T: Sync,
impl<T> Unpin for Connecting<T>where
T: Unpin,
impl<T> UnwindSafe for Connecting<T>where
T: 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