pub struct CadetQueueOptions {
pub capacity: usize,
pub max_bytes: usize,
}Expand description
Ограничения очереди. Действуют отдельно для очереди сообщений каждого канала и для очереди входящих каналов порта. По умолчанию 256 элементов и 4 МиБ.
Fields§
§capacity: usizeНаибольшее число непрочитанных элементов, от 1 до 4096.
max_bytes: usizeНаибольший суммарный размер непрочитанных сообщений в байтах; не ноль.
Trait Implementations§
Source§impl Clone for CadetQueueOptions
impl Clone for CadetQueueOptions
Source§fn clone(&self) -> CadetQueueOptions
fn clone(&self) -> CadetQueueOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CadetQueueOptions
Source§impl Debug for CadetQueueOptions
impl Debug for CadetQueueOptions
Auto Trait Implementations§
impl Freeze for CadetQueueOptions
impl RefUnwindSafe for CadetQueueOptions
impl Send for CadetQueueOptions
impl Sync for CadetQueueOptions
impl Unpin for CadetQueueOptions
impl UnsafeUnpin for CadetQueueOptions
impl UnwindSafe for CadetQueueOptions
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