pub trait Port<T>:
Debug
+ MaybeNamed
+ MaybeLabeled {
// Required methods
fn is_closed(&self) -> bool;
fn close(&mut self);
// Provided methods
fn is_open(&self) -> bool { ... }
fn capacity(&self) -> Option<usize> { ... }
fn max_capacity(&self) -> Option<usize> { ... }
}Expand description
The common interface for ports, whether for input or output.
Required Methods§
Provided Methods§
Sourcefn max_capacity(&self) -> Option<usize>
fn max_capacity(&self) -> Option<usize>
Returns the maximum buffer capacity of the connection.