pub struct Pool { /* private fields */ }Implementations§
Source§impl Pool
impl Pool
pub fn new_in_memory() -> Result<Pool, Error>
pub fn new() -> Result<Pool, Error>
pub fn get_pool_metrics(&mut self) -> Result<(u32, u32), Error>
pub fn get_leases(&mut self) -> Result<Vec<LeaseInfo>, Error>
pub fn allocate_address( &mut self, clientid: &[u8], requested: Option<Ipv4Addr>, addresses: &PoolAddresses, min_expire_time: Duration, max_expire_time: Duration, raw_options: &[u8], ) -> Result<Lease, Error>
Auto Trait Implementations§
impl !Freeze for Pool
impl !RefUnwindSafe for Pool
impl Send for Pool
impl !Sync for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
impl !UnwindSafe for Pool
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