pub enum Channel<'input> {
Unary {
ty: Loc<Type<'input>>,
},
Streaming {
ty: Loc<Type<'input>>,
},
}
Expand description
Describes how data is transferred over a channel.
ⓘ
Unary(stream <ty>)
Streaming(<ty>)
Variants§
Implementations§
Trait Implementations§
impl<'input> Eq for Channel<'input>
impl<'input> StructuralPartialEq for Channel<'input>
Auto Trait Implementations§
impl<'input> Freeze for Channel<'input>
impl<'input> RefUnwindSafe for Channel<'input>
impl<'input> Send for Channel<'input>
impl<'input> Sync for Channel<'input>
impl<'input> Unpin for Channel<'input>
impl<'input> UnwindSafe for Channel<'input>
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