pub enum ProviderRequest {
Socket {
kind: Kind,
responder: ProviderSocketResponder,
},
SocketWithOptions {
kind: Kind,
opts: SocketCreationOptions,
responder: ProviderSocketWithOptionsResponder,
},
}Expand description
A packet socket provider.
Variants§
Socket
Requests a packet socket.
- request
kindthe kind of packet socket to create.
- response
socketthe packet socket.
SocketWithOptions
Requests a packet socket with creation options.
- request
kindthe kind of packet socket to create. - request
optscreation options for the socket.
- response
socketthe packet socket.
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_socket(self) -> Option<(Kind, ProviderSocketResponder)>
pub fn into_socket_with_options( self, ) -> Option<(Kind, SocketCreationOptions, ProviderSocketWithOptionsResponder)>
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 !RefUnwindSafe for ProviderRequest
impl !UnwindSafe for ProviderRequest
impl Freeze for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl UnsafeUnpin for ProviderRequest
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