pub struct NetworkEventOptions {
pub capacity: usize,
pub max_bytes: usize,
}Expand description
Per-subscriber bounds. A full queue disconnects only that subscriber after
its retained prefix, reporting ReceiveError::Failed with CallbackOverflow.
An individual event larger than max_bytes ends it with ItemTooLarge.
Fields§
§capacity: usizeMaximum queued events, including the initial baseline.
max_bytes: usizeMaximum accounted event bytes, including owned network-name strings.
Trait Implementations§
Source§impl Clone for NetworkEventOptions
impl Clone for NetworkEventOptions
impl Copy for NetworkEventOptions
Source§impl Debug for NetworkEventOptions
impl Debug for NetworkEventOptions
Auto Trait Implementations§
impl Freeze for NetworkEventOptions
impl RefUnwindSafe for NetworkEventOptions
impl Send for NetworkEventOptions
impl Sync for NetworkEventOptions
impl Unpin for NetworkEventOptions
impl UnsafeUnpin for NetworkEventOptions
impl UnwindSafe for NetworkEventOptions
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