[][src]Struct flume::Hook

pub struct Hook<T, S: ?Sized>(_, _);

Implementations

impl<T, S: ?Sized + Signal> Hook<T, S>[src]

pub fn slot(msg: Option<T>, signal: S) -> Arc<Self> where
    S: Sized
[src]

pub fn trigger(signal: S) -> Arc<Self> where
    S: Sized
[src]

pub fn signal(&self) -> &S[src]

pub fn fire_nothing(&self)[src]

pub fn fire_recv(&self) -> T[src]

pub fn fire_send(&self, msg: T) -> Option<T>[src]

pub fn is_empty(&self) -> bool[src]

pub fn try_take(&self) -> Option<T>[src]

impl<T> Hook<T, SyncSignal>[src]

pub fn wait_recv(&self, abort: &AtomicBool) -> Option<T>[src]

pub fn wait_deadline_recv(
    &self,
    abort: &AtomicBool,
    deadline: Instant
) -> Result<T, bool>
[src]

pub fn wait_send(&self, abort: &AtomicBool)[src]

pub fn wait_deadline_send(
    &self,
    abort: &AtomicBool,
    deadline: Instant
) -> Result<(), bool>
[src]

Auto Trait Implementations

impl<T, S> !RefUnwindSafe for Hook<T, S>

impl<T, S: ?Sized> Send for Hook<T, S> where
    S: Send,
    T: Send

impl<T, S: ?Sized> Sync for Hook<T, S> where
    S: Sync,
    T: Send

impl<T, S: ?Sized> Unpin for Hook<T, S> where
    S: Unpin,
    T: Unpin

impl<T, S: ?Sized> UnwindSafe for Hook<T, S> where
    S: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,