pub struct PortAlloc { /* private fields */ }
Implementations§
Source§impl PortAlloc
impl PortAlloc
pub fn new(min: u16, max: u16, timeout: Duration) -> Self
pub fn dealloc_timeout_ports(&self)
pub fn dealloc_all_ports(&self)
pub fn set_alloc_callback<F>(&self, f: F)
pub fn set_dealloc_callback<F>(&self, f: F)
pub fn alloc_timeout<T: AsRef<[u8]>>( &self, id: T, timeout: Duration, ) -> Option<u16>
pub fn dealloc<T: AsRef<[u8]>>(&self, id: T) -> Option<PortEntry>
pub async fn handle_signals(&self, signals: Signals)
pub async fn wait_process_exit(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortAlloc
impl RefUnwindSafe for PortAlloc
impl Send for PortAlloc
impl Sync for PortAlloc
impl Unpin for PortAlloc
impl UnwindSafe for PortAlloc
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