Struct overclock::core::AbortableUnboundedHandle
source · [−]pub struct AbortableUnboundedHandle<T> { /* private fields */ }
Expand description
Abortable unbounded handle
Implementations
sourceimpl<T> AbortableUnboundedHandle<T>
impl<T> AbortableUnboundedHandle<T>
sourcepub fn new(sender: UnboundedHandle<T>) -> Self
pub fn new(sender: UnboundedHandle<T>) -> Self
Create new abortable unbounded 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 AbortableUnboundedHandle<T>
impl<T> Clone for AbortableUnboundedHandle<T>
sourceimpl<T: Debug> Debug for AbortableUnboundedHandle<T>
impl<T: Debug> Debug for AbortableUnboundedHandle<T>
sourceimpl<M: 'static + Send, E: Send> Route<M> for AbortableUnboundedHandle<E> where
E: TryFrom<M>,
impl<M: 'static + Send, E: Send> Route<M> for AbortableUnboundedHandle<E> where
E: TryFrom<M>,
sourceimpl<E: Send + 'static> Shutdown for AbortableUnboundedHandle<E>
impl<E: Send + 'static> Shutdown for AbortableUnboundedHandle<E>
sourceimpl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for AbortableUnboundedHandle<T>
impl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for AbortableUnboundedHandle<T>
type Event = T
type Event = T
The supervisor event type
Auto Trait Implementations
impl<T> !RefUnwindSafe for AbortableUnboundedHandle<T>
impl<T> Send for AbortableUnboundedHandle<T> where
T: Send,
impl<T> Sync for AbortableUnboundedHandle<T> where
T: Send,
impl<T> Unpin for AbortableUnboundedHandle<T>
impl<T> !UnwindSafe for AbortableUnboundedHandle<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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more