Struct tonari_actor::Capacity
source · [−]Expand description
Capacity of actor’s normal- and high-priority inboxes.
For each inbox type, None signifies default capacity of given actor. Converts from usize.
Fields
normal: Option<usize>high: Option<usize>Implementations
sourceimpl Capacity
impl Capacity
sourcepub fn of_normal_priority(capacity: usize) -> Self
pub fn of_normal_priority(capacity: usize) -> Self
Set capacity of the normal priority channel, and use default for the high priority one.
sourcepub fn of_high_priority(capacity: usize) -> Self
pub fn of_high_priority(capacity: usize) -> Self
Set capacity of the high priority channel, and use default for the normal priority one.
Trait Implementations
sourceimpl From<usize> for Capacity
impl From<usize> for Capacity
Set capacity of both normal and high priority channels to the same amount of messages.
impl Copy for Capacity
Auto Trait Implementations
impl RefUnwindSafe for Capacity
impl Send for Capacity
impl Sync for Capacity
impl Unpin for Capacity
impl UnwindSafe for Capacity
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