[−][src]Struct d3_core::machine_impl::Receiver
The Receiver is a wrapper aruond the Crossbeam receiver. It intentionally limits the surface of the receiver. Much of this is just boilerplate wrapping
Fields
receiver: Receiver<T>
Implementations
impl<T> Receiver<T> where
T: MachineImpl,
[src]
T: MachineImpl,
pub fn clone_receiver(&self) -> Receiver<T>
[src]
pub fn receiver(&self) -> &Receiver<T>
[src]
pub fn try_recv(&self) -> Result<T, TryRecvError>
[src]
pub fn recv(&self) -> Result<T, RecvError>
[src]
pub fn recv_timeout(&self, timeout: Duration) -> Result<T, RecvTimeoutError>
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn is_full(&self) -> bool
[src]
pub fn len(&self) -> usize
[src]
pub fn capacity(&self) -> Option<usize>
[src]
pub fn iter(&self) -> Iter<'_, T>
[src]
pub fn try_iter(&self) -> TryIter<'_, T>
[src]
Trait Implementations
impl<T> Clone for Receiver<T> where
T: MachineImpl,
[src]
T: MachineImpl,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for Receiver<T> where
T: MachineImpl,
[src]
T: MachineImpl,
impl<T> Eq for Receiver<T> where
T: MachineImpl,
[src]
T: MachineImpl,
impl<T> PartialEq<Receiver<T>> for Receiver<T> where
T: MachineImpl,
[src]
T: MachineImpl,
Auto Trait Implementations
impl<T> RefUnwindSafe for Receiver<T>
impl<T> Send for Receiver<T>
impl<T> Sync for Receiver<T>
impl<T> Unpin for Receiver<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Receiver<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,