pub struct ClientProviderSynchronousProxy { /* private fields */ }
Implementations§
source§impl ClientProviderSynchronousProxy
impl ClientProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ClientProviderEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ClientProviderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn new_client(
&self,
params: NewClientParams,
request: ServerEnd<ClientMarker>
) -> Result<(), Error>
pub fn new_client( &self, params: NewClientParams, request: ServerEnd<ClientMarker> ) -> Result<(), Error>
Provides a DHCPv6 client.
- request
params
the parameters to create the client with. - request
request
grants control over the client. Closed with an epitaph if the client cannot be created.