pub struct DhcpClientTask { /* private fields */ }Expand description
Task for polling the DHCP client.
Implementations§
Source§impl DhcpClientTask
impl DhcpClientTask
Sourcepub fn new(
client: ClientProxy,
id: NonZeroU64,
route_set: RouteSetV4Proxy,
control: Control,
) -> DhcpClientTask
pub fn new( client: ClientProxy, id: NonZeroU64, route_set: RouteSetV4Proxy, control: Control, ) -> DhcpClientTask
Creates and returns an async task that polls the DHCP client.
Sourcepub fn wait_shutdown(&self) -> impl Future<Output = ()> + 'static
pub fn wait_shutdown(&self) -> impl Future<Output = ()> + 'static
Returns a future that resolves when the running DHCP client has shut down.
Auto Trait Implementations§
impl Freeze for DhcpClientTask
impl !RefUnwindSafe for DhcpClientTask
impl Send for DhcpClientTask
impl Sync for DhcpClientTask
impl Unpin for DhcpClientTask
impl UnsafeUnpin for DhcpClientTask
impl !UnwindSafe for DhcpClientTask
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.