pub enum ClientProviderRequest {
NewClient {
interface_id: u64,
params: NewClientParams,
request: ServerEnd<ClientMarker>,
control_handle: ClientProviderControlHandle,
},
CheckPresence {
responder: ClientProviderCheckPresenceResponder,
},
}
Expand description
Provides a method to create new DHCP clients.
Variants§
NewClient
Provides a DHCPv4 client.
- request
params
the parameters to create the client with. - request
request
grants control over the client.
Fields
§
params: NewClientParams
§
request: ServerEnd<ClientMarker>
§
control_handle: ClientProviderControlHandle
CheckPresence
No-op method that allows checking for presence.
It’s not currently possible for a client with an optionally-provided protocol to check whether there’s someone on the other end without making a FIDL call (https://fxbug.dev/42177573). This method provides a workaround by giving a client a method that it can call to check for liveness.
TODO(https://fxbug.dev/42076541): Remove this once the DHCP out-of-stack client is always being used.
Fields
§
responder: ClientProviderCheckPresenceResponder
Implementations§
Source§impl ClientProviderRequest
impl ClientProviderRequest
pub fn into_new_client( self, ) -> Option<(u64, NewClientParams, ServerEnd<ClientMarker>, ClientProviderControlHandle)>
pub fn into_check_presence(self) -> Option<ClientProviderCheckPresenceResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientProviderRequest
impl !RefUnwindSafe for ClientProviderRequest
impl Send for ClientProviderRequest
impl Sync for ClientProviderRequest
impl Unpin for ClientProviderRequest
impl !UnwindSafe for ClientProviderRequest
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