Enum base::generic_channel::GenericReceiver
source · pub enum GenericReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,{
Ipc(IpcReceiver<T>),
Crossbeam(Receiver<T>),
}
Variants§
Ipc(IpcReceiver<T>)
Crossbeam(Receiver<T>)
Implementations§
source§impl<T> GenericReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
impl<T> GenericReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
pub fn recv(&self) -> ReceiveResult<T>
pub fn try_recv(&self) -> ReceiveResult<T>
pub fn into_inner(self) -> Receiver<T>where
T: Send + 'static,
Auto Trait Implementations§
impl<T> !Freeze for GenericReceiver<T>
impl<T> !RefUnwindSafe for GenericReceiver<T>
impl<T> Send for GenericReceiver<T>where
T: Send,
impl<T> !Sync for GenericReceiver<T>
impl<T> Unpin for GenericReceiver<T>where
T: Unpin,
impl<T> UnwindSafe for GenericReceiver<T>where
T: UnwindSafe,
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