pub struct ChannelData {
pub sender: Sender<Value>,
pub receiver: Receiver<Value>,
}Expand description
Channel data: holds sender and receiver for direct handle passing
Both sender and receiver are Clone (MPMC), so duplicating a Channel value just clones the Arc. Send/receive operations use the handles directly with zero mutex overhead.
Fields§
§sender: Sender<Value>§receiver: Receiver<Value>Trait Implementations§
Source§impl Clone for ChannelData
impl Clone for ChannelData
Source§impl Debug for ChannelData
impl Debug for ChannelData
Source§impl PartialEq for ChannelData
impl PartialEq for ChannelData
Auto Trait Implementations§
impl Freeze for ChannelData
impl RefUnwindSafe for ChannelData
impl Send for ChannelData
impl Sync for ChannelData
impl Unpin for ChannelData
impl UnwindSafe for ChannelData
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