pub struct Options {
pub initial_capacity: usize,
pub message_buffer_capacity: usize,
}
Expand description
A way to configure new tree::Root
instances
let tree = prodash::tree::root::Options::default().create();
let tree2 = prodash::tree::root::Options { message_buffer_capacity: 100, ..Default::default() }.create();
Fields§
§initial_capacity: usize
The amount of items the tree can hold without being forced to allocate.
message_buffer_capacity: usize
The amount of messages we can hold before we start overwriting old ones.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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