Struct overclock::core::AbortableBoundedChannel
source · pub struct AbortableBoundedChannel<E, const C: usize> { /* private fields */ }
Expand description
Abortable tokio bounded mpsc channel implementation
Trait Implementations
sourceimpl<E: Send + 'static, const C: usize> Channel for AbortableBoundedChannel<E, C>
impl<E: Send + 'static, const C: usize> Channel for AbortableBoundedChannel<E, C>
type Event = E
type Event = E
The channel Event type
type Handle = AbortableBoundedHandle<E>
type Handle = AbortableBoundedHandle<E>
The sender half of the channel
type Inbox = AbortableBoundedInbox<E>
type Inbox = AbortableBoundedInbox<E>
The receiver half of the channel
type Metric = GenericGauge<AtomicI64>
type Metric = GenericGauge<AtomicI64>
Metric Collector
sourceimpl<E: Send + 'static, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for Twhere
T: Send,
impl<E: Send + 'static, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for Twhere
T: Send,
sourcefn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<AbortableBoundedChannel<E, C>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<AbortableBoundedChannel<E, C>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Implement how to build the channel for the corresponding actor
Auto Trait Implementations
impl<E, const C: usize> !RefUnwindSafe for AbortableBoundedChannel<E, C>
impl<E, const C: usize> Send for AbortableBoundedChannel<E, C>where
E: Send,
impl<E, const C: usize> Sync for AbortableBoundedChannel<E, C>where
E: Send,
impl<E, const C: usize> Unpin for AbortableBoundedChannel<E, C>
impl<E, const C: usize> !UnwindSafe for AbortableBoundedChannel<E, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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