Skip to main content

CheckCapacity

Trait CheckCapacity 

Source
pub trait CheckCapacity {
    // Required method
    fn check_capacity(&self, threshold: f64, name: &str) -> &Self;
}
Expand description

Проверка емкости канала

Required Methods§

Source

fn check_capacity(&self, threshold: f64, name: &str) -> &Self

Проверить емкость канала и выдать предупреждение, если канал заполнен

Возвращает true, если емкость меньше заданного уровня

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> CheckCapacity for Receiver<T>

Source§

fn check_capacity(&self, threshold: f64, name: &str) -> &Self

Source§

impl<T> CheckCapacity for Sender<T>

Source§

fn check_capacity(&self, threshold: f64, name: &str) -> &Self

Implementors§