pub struct Channel<T, const N: usize = async_flow::::tokio::channel::Channel::{constant#0}> {
pub tx: Outputs<T, N>,
pub rx: Inputs<T, N>,
}Fields§
§tx: Outputs<T, N>§rx: Inputs<T, N>Implementations§
Trait Implementations§
Source§impl<T, const N: usize> From<(Sender<PortEvent<T>>, Receiver<PortEvent<T>>)> for Channel<T, N>
impl<T, const N: usize> From<(Sender<PortEvent<T>>, Receiver<PortEvent<T>>)> for Channel<T, N>
impl<T> Connection<T> for Channel<T>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Channel<T, N>
impl<T, const N: usize> RefUnwindSafe for Channel<T, N>
impl<T, const N: usize> Send for Channel<T, N>where
T: Send,
impl<T, const N: usize> Sync for Channel<T, N>where
T: Send,
impl<T, const N: usize> Unpin for Channel<T, N>
impl<T, const N: usize> UnwindSafe for Channel<T, N>
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