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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert