pub enum ProviderRequest {
Socket {
domain: Domain,
proto: ProtocolAssociation,
responder: ProviderSocketResponder,
},
SocketWithOptions {
domain: Domain,
proto: ProtocolAssociation,
opts: SocketCreationOptions,
responder: ProviderSocketWithOptionsResponder,
},
}
Expand description
A raw network socket provider.
Variants§
Socket
Requests a raw socket.
SocketWithOptions
Requests a raw socket with creation options.
Fields
§
domain: Domain
§
proto: ProtocolAssociation
§
opts: SocketCreationOptions
§
responder: ProviderSocketWithOptionsResponder
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_socket( self, ) -> Option<(Domain, ProtocolAssociation, ProviderSocketResponder)>
pub fn into_socket_with_options( self, ) -> Option<(Domain, ProtocolAssociation, 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 Freeze for ProviderRequest
impl !RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl !UnwindSafe 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