Struct ya_relay_stack::socket::Memory
source · pub struct Memory { /* private fields */ }Expand description
Buffer size bounds used in auto tuning.
Currently, only max is used; other values are reserved for future use
Implementations§
source§impl Memory
impl Memory
pub fn new(min: usize, default: usize, max: usize) -> Result<Self, Error>
pub fn set_min(&mut self, min: usize) -> Result<(), Error>
pub fn set_default(&mut self, default: usize) -> Result<(), Error>
pub fn set_max(&mut self, max: usize) -> Result<(), Error>
pub fn default_tcp_rx() -> Self
pub fn default_tcp_tx() -> Self
pub fn default_udp_rx() -> Self
pub fn default_udp_tx() -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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