Enum media::media_channel::GLPlayerReceiver
source · pub enum GLPlayerReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,{
Ipc(IpcReceiver<T>),
Mpsc(GLPlayerReceiver<T>),
}
Variants§
Ipc(IpcReceiver<T>)
Mpsc(GLPlayerReceiver<T>)
Implementations§
source§impl<T> GLPlayerReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
impl<T> GLPlayerReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
pub fn recv(&self) -> Result<T, ()>
pub fn to_ipc_receiver(self) -> IpcReceiver<T>
Auto Trait Implementations§
impl<T> !Freeze for GLPlayerReceiver<T>
impl<T> !RefUnwindSafe for GLPlayerReceiver<T>
impl<T> Send for GLPlayerReceiver<T>where
T: Send,
impl<T> !Sync for GLPlayerReceiver<T>
impl<T> Unpin for GLPlayerReceiver<T>where
T: Unpin,
impl<T> UnwindSafe for GLPlayerReceiver<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