Struct profile_traits::ipc::IpcReceiver
source · pub struct IpcReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,{
ipc_receiver: IpcReceiver<T>,
time_profile_chan: ProfilerChan,
}
Fields§
§ipc_receiver: IpcReceiver<T>
§time_profile_chan: ProfilerChan
Implementations§
source§impl<T> IpcReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
impl<T> IpcReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
pub fn recv(&self) -> Result<T, IpcError>
pub fn try_recv(&self) -> Result<T, TryRecvError>
pub fn to_ipc_receiver(self) -> IpcReceiver<T>
Auto Trait Implementations§
impl<T> !Freeze for IpcReceiver<T>
impl<T> !RefUnwindSafe for IpcReceiver<T>
impl<T> Send for IpcReceiver<T>where
T: Send,
impl<T> !Sync for IpcReceiver<T>
impl<T> Unpin for IpcReceiver<T>where
T: Unpin,
impl<T> UnwindSafe for IpcReceiver<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