Struct overclock::core::AbortableBoundedHandle
source · [−]pub struct AbortableBoundedHandle<T> { /* private fields */ }
Expand description
Abortable bounded handle
Implementations
sourceimpl<T> AbortableBoundedHandle<T>
impl<T> AbortableBoundedHandle<T>
sourcepub fn new(sender: BoundedHandle<T>) -> Self
pub fn new(sender: BoundedHandle<T>) -> Self
Crete new abortable bounded 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 try_send(&self, message: T) -> Result<(), TrySendError<T>>
pub fn try_send(&self, message: T) -> Result<(), TrySendError<T>>
Attempts to send message to the channel
sourcepub fn same_channel(&self, other: &Self) -> bool
pub fn same_channel(&self, other: &Self) -> bool
Returns true if the handle belongs to same channel
Trait Implementations
sourceimpl<T> Clone for AbortableBoundedHandle<T>
impl<T> Clone for AbortableBoundedHandle<T>
sourceimpl<T: Debug> Debug for AbortableBoundedHandle<T>
impl<T: Debug> Debug for AbortableBoundedHandle<T>
sourceimpl<M: 'static + Send, E: Send> Route<M> for AbortableBoundedHandle<E> where
E: TryFrom<M>,
E::Error: Send,
impl<M: 'static + Send, E: Send> Route<M> for AbortableBoundedHandle<E> where
E: TryFrom<M>,
E::Error: Send,
sourceimpl<E: Send + 'static> Shutdown for AbortableBoundedHandle<E>
impl<E: Send + 'static> Shutdown for AbortableBoundedHandle<E>
sourceimpl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for AbortableBoundedHandle<T>
impl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for AbortableBoundedHandle<T>
type Event = T
type Event = T
The supervisor event type
Auto Trait Implementations
impl<T> !RefUnwindSafe for AbortableBoundedHandle<T>
impl<T> Send for AbortableBoundedHandle<T> where
T: Send,
impl<T> Sync for AbortableBoundedHandle<T> where
T: Send,
impl<T> Unpin for AbortableBoundedHandle<T>
impl<T> !UnwindSafe for AbortableBoundedHandle<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