pub struct TaskEventOptions {
pub max_tasks: usize,
pub max_payload_bytes: usize,
pub urgent_reserve: Option<QueueLimit>,
}Expand description
Reserved capacity for one terminal task-event subscription.
Fields§
§max_tasks: usizeMaximum reserved terminal notifications (1024 by default).
max_payload_bytes: usizeMaximum total bytes for associated payloads (16 MiB by default).
urgent_reserve: Option<QueueLimit>Capacity reserved for the urgent lane; None shares all capacity between lanes.
When set, positive item and byte capacity must remain for normal tasks.
Implementations§
Trait Implementations§
Source§impl Clone for TaskEventOptions
impl Clone for TaskEventOptions
Source§impl Debug for TaskEventOptions
impl Debug for TaskEventOptions
Auto Trait Implementations§
impl Forget for TaskEventOptions
impl Freeze for TaskEventOptions
impl Move for TaskEventOptions
impl RefUnwindSafe for TaskEventOptions
impl Send for TaskEventOptions
impl Sync for TaskEventOptions
impl Unpin for TaskEventOptions
impl UnsafeUnpin for TaskEventOptions
impl UnwindSafe for TaskEventOptions
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