Struct overclock::core::UnboundedHandle
source · [−]pub struct UnboundedHandle<T> { /* private fields */ }
Expand description
Unbounded handle
Implementations
sourceimpl<T> UnboundedHandle<T>
impl<T> UnboundedHandle<T>
sourcepub fn new(
sender: UnboundedSender<T>,
gauge: IntGauge,
abort_handle: AbortHandle,
scope_id: ScopeId
) -> Self
pub fn new(
sender: UnboundedSender<T>,
gauge: IntGauge,
abort_handle: AbortHandle,
scope_id: ScopeId
) -> Self
Create new abortable handle
sourcepub fn send_after(
&self,
message: T,
duration: Duration
) -> JoinHandle<Result<(), SendError<T>>> where
T: Send + 'static,
pub fn send_after(
&self,
message: T,
duration: Duration
) -> JoinHandle<Result<(), SendError<T>>> where
T: Send + 'static,
Send message to the channel after the duration pass
sourcepub fn same_channel(&self, other: &Self) -> bool
pub fn same_channel(&self, other: &Self) -> bool
Returns true if senders belong to the same channel
Trait Implementations
sourceimpl<T> Clone for UnboundedHandle<T>
impl<T> Clone for UnboundedHandle<T>
sourceimpl<T: Debug> Debug for UnboundedHandle<T>
impl<T: Debug> Debug for UnboundedHandle<T>
sourceimpl<M: 'static + Send, E: Send> Route<M> for UnboundedHandle<E> where
E: TryFrom<M>,
impl<M: 'static + Send, E: Send> Route<M> for UnboundedHandle<E> where
E: TryFrom<M>,
sourceimpl<E: 'static + ShutdownEvent> Shutdown for UnboundedHandle<E>
impl<E: 'static + ShutdownEvent> Shutdown for UnboundedHandle<E>
sourceimpl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for UnboundedHandle<T>
impl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for UnboundedHandle<T>
type Event = T
type Event = T
The supervisor event type
Auto Trait Implementations
impl<T> !RefUnwindSafe for UnboundedHandle<T>
impl<T> Send for UnboundedHandle<T> where
T: Send,
impl<T> Sync for UnboundedHandle<T> where
T: Send,
impl<T> Unpin for UnboundedHandle<T>
impl<T> !UnwindSafe for UnboundedHandle<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more