[−][src]Struct flume::Hook
Implementations
impl<T, S: ?Sized + Signal> Hook<T, S>
[src]
pub fn slot(msg: Option<T>, signal: S) -> Arc<Self> where
S: Sized,
[src]
S: Sized,
pub fn trigger(signal: S) -> Arc<Self> where
S: Sized,
[src]
S: Sized,
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]
&self,
abort: &AtomicBool,
deadline: Instant
) -> Result<T, bool>
pub fn wait_send(&self, abort: &AtomicBool)
[src]
pub fn wait_deadline_send(
&self,
abort: &AtomicBool,
deadline: Instant
) -> Result<(), bool>
[src]
&self,
abort: &AtomicBool,
deadline: Instant
) -> Result<(), bool>
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,
S: Send,
T: Send,
impl<T, S: ?Sized> Sync for Hook<T, S> where
S: Sync,
T: Send,
S: Sync,
T: Send,
impl<T, S: ?Sized> Unpin for Hook<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<T, S: ?Sized> UnwindSafe for Hook<T, S> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,