pub struct DhcpServer<'a> {
pub config: DhcpServerConfig<'a>,
/* private fields */
}
Fields§
§config: DhcpServerConfig<'a>
Implementations§
Source§impl<'a> DhcpServer<'a>
impl<'a> DhcpServer<'a>
pub fn new( config: DhcpServerConfig<'a>, leaser: &'a mut dyn DhcpLeaser, sock: UdpSocket<'a>, ) -> Result<Self, BindError>
pub async fn run(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for DhcpServer<'a>
impl<'a> !RefUnwindSafe for DhcpServer<'a>
impl<'a> !Send for DhcpServer<'a>
impl<'a> !Sync for DhcpServer<'a>
impl<'a> Unpin for DhcpServer<'a>
impl<'a> !UnwindSafe for DhcpServer<'a>
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