pub struct Channel {
pub tx: Box<dyn FrameTx>,
pub rx: Box<dyn FrameRx>,
}Expand description
A two-way message channel to one node.
Fields§
§tx: Box<dyn FrameTx>§rx: Box<dyn FrameRx>Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Channel
impl !Sync for Channel
impl !UnwindSafe for Channel
impl Forget for Channel
impl Freeze for Channel
impl Move for Channel
impl Send for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
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