pub struct Config {
pub capacity: usize,
pub each: usize,
}Expand description
How large a roster this process will hold, and how large one contribution may be.
Fields§
§capacity: usizeHow many distinct actors may be in the roster at once.
each: usizeHow many bytes one actor’s contribution may render to.
Trait Implementations§
Source§impl Default for Config
impl Default for Config
Source§fn default() -> Config
fn default() -> Config
4,096 actors of 4 KiB each — sixteen megabytes at worst, and that is the number to read this as, because the product is what the process pays.
The capacity is crate::presence::Config::default’s and for its reason. The per-actor
bound is a cursor, a selection or a route with room to spare, and far short of a document.
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