Struct overclock::core::BoundedChannel
source · [−]pub struct BoundedChannel<E, const C: usize> { /* private fields */ }
Expand description
A tokio bounded mpsc channel implementation
Trait Implementations
sourceimpl<E: ShutdownEvent + 'static, const C: usize> Channel for BoundedChannel<E, C>
impl<E: ShutdownEvent + 'static, const C: usize> Channel for BoundedChannel<E, C>
type Event = E
type Event = E
The channel Event type
type Handle = BoundedHandle<E>
type Handle = BoundedHandle<E>
The sender half of the channel
type Inbox = BoundedInbox<E>
type Inbox = BoundedInbox<E>
The receiver half of the channel
sourceimpl<E: ShutdownEvent + 'static, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for T where
T: Send,
impl<E: ShutdownEvent + 'static, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for T where
T: Send,
sourcefn build_channel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ActorResult<BoundedChannel<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<BoundedChannel<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 BoundedChannel<E, C>
impl<E, const C: usize> Send for BoundedChannel<E, C> where
E: Send,
impl<E, const C: usize> Sync for BoundedChannel<E, C> where
E: Send,
impl<E, const C: usize> Unpin for BoundedChannel<E, C>
impl<E, const C: usize> !UnwindSafe for BoundedChannel<E, C>
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