pub struct SessionTasks {
pub reader: JoinHandle<()>,
pub writer: JoinHandle<()>,
}Expand description
The join handles of a running session.
Fields§
§reader: JoinHandle<()>The frame reader.
writer: JoinHandle<()>The frame writer.
Implementations§
Source§impl SessionTasks
impl SessionTasks
Sourcepub async fn join(self)
pub async fn join(self)
Waits for both tasks to finish.
Used by the testing harness to make shutdown deterministic; a real
node simply drops its crate::Node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionTasks
impl RefUnwindSafe for SessionTasks
impl Send for SessionTasks
impl Sync for SessionTasks
impl Unpin for SessionTasks
impl UnsafeUnpin for SessionTasks
impl UnwindSafe for SessionTasks
Blanket Implementations§
impl<T> Allocation for T
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