pub struct Config {
pub capacity: usize,
}Expand description
How large a roster this process will hold.
Fields§
§capacity: usizeHow many distinct actors may be in the roster at once.
Trait Implementations§
Source§impl Default for Config
impl Default for Config
Source§fn default() -> Config
fn default() -> Config
4,096 actors.
The number is chosen the way crate::quota::Quota::default’s is: large enough that no
legitimate deployment of a single process meets it — a Beck process serving more than four
thousand distinct identities at one instant has a fanout problem before it has a roster
problem — and small enough that the table is a few hundred kilobytes at worst.
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more