#[non_exhaustive]pub struct StreamSettings {
pub capacity: usize,
}Expand description
Buffer settings of one streamed run. capacity (default 4096, from
MIN_CAPACITY to MAX_CAPACITY) bounds queued events: when full a new
text delta is dropped and counted; lifecycle events are always kept.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capacity: usizeImplementations§
Source§impl StreamSettings
impl StreamSettings
Sourcepub const MIN_CAPACITY: usize = 16
pub const MIN_CAPACITY: usize = 16
Smallest capacity stream_with accepts.
Below it a burst of lifecycle events would crowd out every delta.
Fixed at 16.
Sourcepub const MAX_CAPACITY: usize = 1_048_576
pub const MAX_CAPACITY: usize = 1_048_576
Largest capacity stream_with accepts.
Bounds the memory one unread stream can hold.
Fixed at 1 048 576 events.
Trait Implementations§
Source§impl Clone for StreamSettings
impl Clone for StreamSettings
Source§impl Debug for StreamSettings
impl Debug for StreamSettings
Source§impl Default for StreamSettings
impl Default for StreamSettings
impl Eq for StreamSettings
Source§impl PartialEq for StreamSettings
impl PartialEq for StreamSettings
impl StructuralPartialEq for StreamSettings
Auto Trait Implementations§
impl Forget for StreamSettings
impl Freeze for StreamSettings
impl Move for StreamSettings
impl RefUnwindSafe for StreamSettings
impl Send for StreamSettings
impl Sync for StreamSettings
impl Unpin for StreamSettings
impl UnsafeUnpin for StreamSettings
impl UnwindSafe for StreamSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.