Struct tiny_actor::Channel
source · [−]pub struct Channel<M> { /* private fields */ }Expand description
Contains all data that should be shared between Addresses, Inboxes and the Child. This is wrapped in an Arc to allow sharing between them.
Implementations
Trait Implementations
sourceimpl<M: Send + 'static> AnyChannel for Channel<M>
impl<M: Send + 'static> AnyChannel for Channel<M>
fn into_any(self: Arc<Self>) -> Arc<dyn Any + Send + Sync>
fn close(&self) -> bool
fn halt_some(&self, n: u32)
fn inbox_count(&self) -> usize
fn msg_count(&self) -> usize
fn address_count(&self) -> usize
fn is_closed(&self) -> bool
fn capacity(&self) -> &Capacity
fn has_exited(&self) -> bool
fn halt(&self)
Auto Trait Implementations
impl<M> RefUnwindSafe for Channel<M>
impl<M> Send for Channel<M> where
M: Send,
impl<M> Sync for Channel<M> where
M: Send,
impl<M> Unpin for Channel<M> where
M: Unpin,
impl<M> UnwindSafe for Channel<M>
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