fidl_fuchsia_posix_socket_raw

Enum SocketRequest

Source
pub enum SocketRequest {
Show 90 variants Clone2 { request: ServerEnd<CloneableMarker>, control_handle: SocketControlHandle, }, Close { responder: SocketCloseResponder, }, Query { responder: SocketQueryResponder, }, SetReuseAddress { value: bool, responder: SocketSetReuseAddressResponder, }, GetReuseAddress { responder: SocketGetReuseAddressResponder, }, GetError { responder: SocketGetErrorResponder, }, SetBroadcast { value: bool, responder: SocketSetBroadcastResponder, }, GetBroadcast { responder: SocketGetBroadcastResponder, }, SetSendBuffer { value_bytes: u64, responder: SocketSetSendBufferResponder, }, GetSendBuffer { responder: SocketGetSendBufferResponder, }, SetReceiveBuffer { value_bytes: u64, responder: SocketSetReceiveBufferResponder, }, GetReceiveBuffer { responder: SocketGetReceiveBufferResponder, }, SetKeepAlive { value: bool, responder: SocketSetKeepAliveResponder, }, GetKeepAlive { responder: SocketGetKeepAliveResponder, }, SetOutOfBandInline { value: bool, responder: SocketSetOutOfBandInlineResponder, }, GetOutOfBandInline { responder: SocketGetOutOfBandInlineResponder, }, SetNoCheck { value: bool, responder: SocketSetNoCheckResponder, }, GetNoCheck { responder: SocketGetNoCheckResponder, }, SetLinger { linger: bool, length_secs: u32, responder: SocketSetLingerResponder, }, GetLinger { responder: SocketGetLingerResponder, }, SetReusePort { value: bool, responder: SocketSetReusePortResponder, }, GetReusePort { responder: SocketGetReusePortResponder, }, GetAcceptConn { responder: SocketGetAcceptConnResponder, }, SetBindToDevice { value: String, responder: SocketSetBindToDeviceResponder, }, GetBindToDevice { responder: SocketGetBindToDeviceResponder, }, SetBindToInterfaceIndex { value: u64, responder: SocketSetBindToInterfaceIndexResponder, }, GetBindToInterfaceIndex { responder: SocketGetBindToInterfaceIndexResponder, }, SetTimestamp { value: TimestampOption, responder: SocketSetTimestampResponder, }, GetTimestamp { responder: SocketGetTimestampResponder, }, SetMark { domain: MarkDomain, mark: OptionalUint32, responder: SocketSetMarkResponder, }, GetMark { domain: MarkDomain, responder: SocketGetMarkResponder, }, Bind { addr: SocketAddress, responder: SocketBindResponder, }, Connect { addr: SocketAddress, responder: SocketConnectResponder, }, Disconnect { responder: SocketDisconnectResponder, }, GetSockName { responder: SocketGetSockNameResponder, }, GetPeerName { responder: SocketGetPeerNameResponder, }, Shutdown { mode: ShutdownMode, responder: SocketShutdownResponder, }, SetIpTypeOfService { value: u8, responder: SocketSetIpTypeOfServiceResponder, }, GetIpTypeOfService { responder: SocketGetIpTypeOfServiceResponder, }, SetIpTtl { value: OptionalUint8, responder: SocketSetIpTtlResponder, }, GetIpTtl { responder: SocketGetIpTtlResponder, }, SetIpPacketInfo { value: bool, responder: SocketSetIpPacketInfoResponder, }, GetIpPacketInfo { responder: SocketGetIpPacketInfoResponder, }, SetIpReceiveTypeOfService { value: bool, responder: SocketSetIpReceiveTypeOfServiceResponder, }, GetIpReceiveTypeOfService { responder: SocketGetIpReceiveTypeOfServiceResponder, }, SetIpReceiveTtl { value: bool, responder: SocketSetIpReceiveTtlResponder, }, GetIpReceiveTtl { responder: SocketGetIpReceiveTtlResponder, }, SetIpMulticastInterface { iface: u64, address: Ipv4Address, responder: SocketSetIpMulticastInterfaceResponder, }, GetIpMulticastInterface { responder: SocketGetIpMulticastInterfaceResponder, }, SetIpMulticastTtl { value: OptionalUint8, responder: SocketSetIpMulticastTtlResponder, }, GetIpMulticastTtl { responder: SocketGetIpMulticastTtlResponder, }, SetIpMulticastLoopback { value: bool, responder: SocketSetIpMulticastLoopbackResponder, }, GetIpMulticastLoopback { responder: SocketGetIpMulticastLoopbackResponder, }, AddIpMembership { membership: IpMulticastMembership, responder: SocketAddIpMembershipResponder, }, DropIpMembership { membership: IpMulticastMembership, responder: SocketDropIpMembershipResponder, }, SetIpTransparent { value: bool, responder: SocketSetIpTransparentResponder, }, GetIpTransparent { responder: SocketGetIpTransparentResponder, }, SetIpReceiveOriginalDestinationAddress { value: bool, responder: SocketSetIpReceiveOriginalDestinationAddressResponder, }, GetIpReceiveOriginalDestinationAddress { responder: SocketGetIpReceiveOriginalDestinationAddressResponder, }, AddIpv6Membership { membership: Ipv6MulticastMembership, responder: SocketAddIpv6MembershipResponder, }, DropIpv6Membership { membership: Ipv6MulticastMembership, responder: SocketDropIpv6MembershipResponder, }, SetIpv6MulticastInterface { value: u64, responder: SocketSetIpv6MulticastInterfaceResponder, }, GetIpv6MulticastInterface { responder: SocketGetIpv6MulticastInterfaceResponder, }, SetIpv6UnicastHops { value: OptionalUint8, responder: SocketSetIpv6UnicastHopsResponder, }, GetIpv6UnicastHops { responder: SocketGetIpv6UnicastHopsResponder, }, SetIpv6ReceiveHopLimit { value: bool, responder: SocketSetIpv6ReceiveHopLimitResponder, }, GetIpv6ReceiveHopLimit { responder: SocketGetIpv6ReceiveHopLimitResponder, }, SetIpv6MulticastHops { value: OptionalUint8, responder: SocketSetIpv6MulticastHopsResponder, }, GetIpv6MulticastHops { responder: SocketGetIpv6MulticastHopsResponder, }, SetIpv6MulticastLoopback { value: bool, responder: SocketSetIpv6MulticastLoopbackResponder, }, GetIpv6MulticastLoopback { responder: SocketGetIpv6MulticastLoopbackResponder, }, SetIpv6Only { value: bool, responder: SocketSetIpv6OnlyResponder, }, GetIpv6Only { responder: SocketGetIpv6OnlyResponder, }, SetIpv6ReceiveTrafficClass { value: bool, responder: SocketSetIpv6ReceiveTrafficClassResponder, }, GetIpv6ReceiveTrafficClass { responder: SocketGetIpv6ReceiveTrafficClassResponder, }, SetIpv6TrafficClass { value: OptionalUint8, responder: SocketSetIpv6TrafficClassResponder, }, GetIpv6TrafficClass { responder: SocketGetIpv6TrafficClassResponder, }, SetIpv6ReceivePacketInfo { value: bool, responder: SocketSetIpv6ReceivePacketInfoResponder, }, GetIpv6ReceivePacketInfo { responder: SocketGetIpv6ReceivePacketInfoResponder, }, GetOriginalDestination { responder: SocketGetOriginalDestinationResponder, }, Describe { responder: SocketDescribeResponder, }, RecvMsg { want_addr: bool, data_len: u32, want_control: bool, flags: RecvMsgFlags, responder: SocketRecvMsgResponder, }, SendMsg { addr: Option<Box<SocketAddress>>, data: Vec<u8>, control: NetworkSocketSendControlData, flags: SendMsgFlags, responder: SocketSendMsgResponder, }, GetInfo { responder: SocketGetInfoResponder, }, SetIpHeaderIncluded { value: bool, responder: SocketSetIpHeaderIncludedResponder, }, GetIpHeaderIncluded { responder: SocketGetIpHeaderIncludedResponder, }, SetIcmpv6Filter { filter: Icmpv6Filter, responder: SocketSetIcmpv6FilterResponder, }, GetIcmpv6Filter { responder: SocketGetIcmpv6FilterResponder, }, SetIpv6Checksum { config: Ipv6ChecksumConfiguration, responder: SocketSetIpv6ChecksumResponder, }, GetIpv6Checksum { responder: SocketGetIpv6ChecksumResponder, },
}
Expand description

A raw network socket.

Once a socket has been retrieved from a provider, this interface is then used to further configure and use the socket. This interface is essentially POSIX.

All methods on this type are nonblocking; their exact behaviors match their Linux counterparts.

Warning: This protocol is not yet ready for direct use by clients. Instead, clients should use the BSD sockets API to interact with sockets. We plan to change this protocol substantially and clients that couple directly to this protocol will make those changes more difficult.

Variants§

§

Clone2

Fields

§request: ServerEnd<CloneableMarker>
§control_handle: SocketControlHandle
§

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Fields

§

Query

Fields

§

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

§

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

§

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Fields

§

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Fields

§value: bool
§

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

§

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Fields

§value_bytes: u64
§

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

§

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Fields

§value_bytes: u64
§

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

§

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Fields

§value: bool
§

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

§

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

§

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

§

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Fields

§value: bool
§

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

§

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Fields

§linger: bool
§length_secs: u32
§

GetLinger

Get SOL_SOCKET -> SO_LINGER.

§

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Fields

§value: bool
§

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

§

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

§

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

§

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

§

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

§

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

§

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Fields

§value: TimestampOption
§

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

§

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Fields

§domain: MarkDomain
§mark: OptionalUint32
§

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Fields

§domain: MarkDomain
§

Bind

Sets the local address used for the socket.

§

Connect

Initiates a connection to a remote address.

§

Disconnect

Clears connection information from this socket.

§

GetSockName

Retrieves the local socket address.

§

GetPeerName

Retrieves the remote socket address.

§

Shutdown

Shuts down part of the socket.

Fields

§mode: ShutdownMode
§

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

§

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

§

SetIpTtl

Set SOL_IP -> IP_TTL.

Fields

§value: OptionalUint8
§

GetIpTtl

Get SOL_IP -> IP_TTL.

Fields

§

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

§

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

§

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

§

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

§

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

§

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

§

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

§

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

§

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Fields

§value: OptionalUint8
§

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

§

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

§

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

§

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Fields

§membership: IpMulticastMembership
§

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Fields

§membership: IpMulticastMembership
§

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

§

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

§

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

§

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

§

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Fields

§membership: Ipv6MulticastMembership
§

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Fields

§membership: Ipv6MulticastMembership
§

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

§

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

§

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Fields

§value: OptionalUint8
§

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

§

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

§

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

§

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Fields

§value: OptionalUint8
§

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

§

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

§

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

§

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Fields

§value: bool
§

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

§

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

§

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

§

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Fields

§value: OptionalUint8
§

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

§

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

§

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

§

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

§

Describe

Fields

§

RecvMsg

Receives a message from the socket.

  • request want_addr request message’s source address information to be returned.
  • request data_len the maximum allowed length of the response data buffer.
  • request want_control request ancillary data to be returned.
  • request flags flags for the receive request.
  • response addr the message’s source address information, if requested.
  • response data the message.
  • response control control messages, if requested.
  • response truncated indicates whether or not the returned message was truncated.

Fields

§want_addr: bool
§data_len: u32
§want_control: bool
§flags: RecvMsgFlags
§

SendMsg

Sends a message on the socket.

  • request addr the address to send the message to. If unset, will send to the connected peer.
  • request data the message.
  • request control ancillary data.
  • request flags flags for the send request.

Fields

§data: Vec<u8>
§control: NetworkSocketSendControlData
§flags: SendMsgFlags
§

GetInfo

Retrieves creation information from the socket.

  • response domain the socket’s associated domain.
  • response proto the socket’s associated protocol.

Fields

§

SetIpHeaderIncluded

Set SOL_IP -> IP_HDRINCL.

§

GetIpHeaderIncluded

Get SOL_IP -> IP_HDRINCL.

§

SetIcmpv6Filter

Set SOL_ICMPV6 -> ICMP6_FILTER.

§

GetIcmpv6Filter

Get SOL_ICMPV6 -> ICMP6_FILTER.

§

SetIpv6Checksum

Set SOL_IPV6 -> IPV6_CHECKSUM.

§

GetIpv6Checksum

Get SOL_IPV6 -> IPV6_CHECKSUM.

Implementations§

Source§

impl SocketRequest

Source

pub fn into_clone2( self, ) -> Option<(ServerEnd<CloneableMarker>, SocketControlHandle)>

Source

pub fn into_close(self) -> Option<SocketCloseResponder>

Source

pub fn into_query(self) -> Option<SocketQueryResponder>

Source

pub fn into_set_reuse_address( self, ) -> Option<(bool, SocketSetReuseAddressResponder)>

Source

pub fn into_get_reuse_address(self) -> Option<SocketGetReuseAddressResponder>

Source

pub fn into_get_error(self) -> Option<SocketGetErrorResponder>

Source

pub fn into_set_broadcast(self) -> Option<(bool, SocketSetBroadcastResponder)>

Source

pub fn into_get_broadcast(self) -> Option<SocketGetBroadcastResponder>

Source

pub fn into_set_send_buffer(self) -> Option<(u64, SocketSetSendBufferResponder)>

Source

pub fn into_get_send_buffer(self) -> Option<SocketGetSendBufferResponder>

Source

pub fn into_set_receive_buffer( self, ) -> Option<(u64, SocketSetReceiveBufferResponder)>

Source

pub fn into_get_receive_buffer(self) -> Option<SocketGetReceiveBufferResponder>

Source

pub fn into_set_keep_alive(self) -> Option<(bool, SocketSetKeepAliveResponder)>

Source

pub fn into_get_keep_alive(self) -> Option<SocketGetKeepAliveResponder>

Source

pub fn into_set_out_of_band_inline( self, ) -> Option<(bool, SocketSetOutOfBandInlineResponder)>

Source

pub fn into_get_out_of_band_inline( self, ) -> Option<SocketGetOutOfBandInlineResponder>

Source

pub fn into_set_no_check(self) -> Option<(bool, SocketSetNoCheckResponder)>

Source

pub fn into_get_no_check(self) -> Option<SocketGetNoCheckResponder>

Source

pub fn into_set_linger(self) -> Option<(bool, u32, SocketSetLingerResponder)>

Source

pub fn into_get_linger(self) -> Option<SocketGetLingerResponder>

Source

pub fn into_set_reuse_port(self) -> Option<(bool, SocketSetReusePortResponder)>

Source

pub fn into_get_reuse_port(self) -> Option<SocketGetReusePortResponder>

Source

pub fn into_get_accept_conn(self) -> Option<SocketGetAcceptConnResponder>

Source

pub fn into_set_bind_to_device( self, ) -> Option<(String, SocketSetBindToDeviceResponder)>

Source

pub fn into_get_bind_to_device(self) -> Option<SocketGetBindToDeviceResponder>

Source

pub fn into_set_bind_to_interface_index( self, ) -> Option<(u64, SocketSetBindToInterfaceIndexResponder)>

Source

pub fn into_get_bind_to_interface_index( self, ) -> Option<SocketGetBindToInterfaceIndexResponder>

Source

pub fn into_set_timestamp( self, ) -> Option<(TimestampOption, SocketSetTimestampResponder)>

Source

pub fn into_get_timestamp(self) -> Option<SocketGetTimestampResponder>

Source

pub fn into_set_mark( self, ) -> Option<(MarkDomain, OptionalUint32, SocketSetMarkResponder)>

Source

pub fn into_get_mark(self) -> Option<(MarkDomain, SocketGetMarkResponder)>

Source

pub fn into_bind(self) -> Option<(SocketAddress, SocketBindResponder)>

Source

pub fn into_connect(self) -> Option<(SocketAddress, SocketConnectResponder)>

Source

pub fn into_disconnect(self) -> Option<SocketDisconnectResponder>

Source

pub fn into_get_sock_name(self) -> Option<SocketGetSockNameResponder>

Source

pub fn into_get_peer_name(self) -> Option<SocketGetPeerNameResponder>

Source

pub fn into_shutdown(self) -> Option<(ShutdownMode, SocketShutdownResponder)>

Source

pub fn into_set_ip_type_of_service( self, ) -> Option<(u8, SocketSetIpTypeOfServiceResponder)>

Source

pub fn into_get_ip_type_of_service( self, ) -> Option<SocketGetIpTypeOfServiceResponder>

Source

pub fn into_set_ip_ttl(self) -> Option<(OptionalUint8, SocketSetIpTtlResponder)>

Source

pub fn into_get_ip_ttl(self) -> Option<SocketGetIpTtlResponder>

Source

pub fn into_set_ip_packet_info( self, ) -> Option<(bool, SocketSetIpPacketInfoResponder)>

Source

pub fn into_get_ip_packet_info(self) -> Option<SocketGetIpPacketInfoResponder>

Source

pub fn into_set_ip_receive_type_of_service( self, ) -> Option<(bool, SocketSetIpReceiveTypeOfServiceResponder)>

Source

pub fn into_get_ip_receive_type_of_service( self, ) -> Option<SocketGetIpReceiveTypeOfServiceResponder>

Source

pub fn into_set_ip_receive_ttl( self, ) -> Option<(bool, SocketSetIpReceiveTtlResponder)>

Source

pub fn into_get_ip_receive_ttl(self) -> Option<SocketGetIpReceiveTtlResponder>

Source

pub fn into_set_ip_multicast_interface( self, ) -> Option<(u64, Ipv4Address, SocketSetIpMulticastInterfaceResponder)>

Source

pub fn into_get_ip_multicast_interface( self, ) -> Option<SocketGetIpMulticastInterfaceResponder>

Source

pub fn into_set_ip_multicast_ttl( self, ) -> Option<(OptionalUint8, SocketSetIpMulticastTtlResponder)>

Source

pub fn into_get_ip_multicast_ttl( self, ) -> Option<SocketGetIpMulticastTtlResponder>

Source

pub fn into_set_ip_multicast_loopback( self, ) -> Option<(bool, SocketSetIpMulticastLoopbackResponder)>

Source

pub fn into_get_ip_multicast_loopback( self, ) -> Option<SocketGetIpMulticastLoopbackResponder>

Source

pub fn into_add_ip_membership( self, ) -> Option<(IpMulticastMembership, SocketAddIpMembershipResponder)>

Source

pub fn into_drop_ip_membership( self, ) -> Option<(IpMulticastMembership, SocketDropIpMembershipResponder)>

Source

pub fn into_set_ip_transparent( self, ) -> Option<(bool, SocketSetIpTransparentResponder)>

Source

pub fn into_get_ip_transparent(self) -> Option<SocketGetIpTransparentResponder>

Source

pub fn into_set_ip_receive_original_destination_address( self, ) -> Option<(bool, SocketSetIpReceiveOriginalDestinationAddressResponder)>

Source

pub fn into_get_ip_receive_original_destination_address( self, ) -> Option<SocketGetIpReceiveOriginalDestinationAddressResponder>

Source

pub fn into_add_ipv6_membership( self, ) -> Option<(Ipv6MulticastMembership, SocketAddIpv6MembershipResponder)>

Source

pub fn into_drop_ipv6_membership( self, ) -> Option<(Ipv6MulticastMembership, SocketDropIpv6MembershipResponder)>

Source

pub fn into_set_ipv6_multicast_interface( self, ) -> Option<(u64, SocketSetIpv6MulticastInterfaceResponder)>

Source

pub fn into_get_ipv6_multicast_interface( self, ) -> Option<SocketGetIpv6MulticastInterfaceResponder>

Source

pub fn into_set_ipv6_unicast_hops( self, ) -> Option<(OptionalUint8, SocketSetIpv6UnicastHopsResponder)>

Source

pub fn into_get_ipv6_unicast_hops( self, ) -> Option<SocketGetIpv6UnicastHopsResponder>

Source

pub fn into_set_ipv6_receive_hop_limit( self, ) -> Option<(bool, SocketSetIpv6ReceiveHopLimitResponder)>

Source

pub fn into_get_ipv6_receive_hop_limit( self, ) -> Option<SocketGetIpv6ReceiveHopLimitResponder>

Source

pub fn into_set_ipv6_multicast_hops( self, ) -> Option<(OptionalUint8, SocketSetIpv6MulticastHopsResponder)>

Source

pub fn into_get_ipv6_multicast_hops( self, ) -> Option<SocketGetIpv6MulticastHopsResponder>

Source

pub fn into_set_ipv6_multicast_loopback( self, ) -> Option<(bool, SocketSetIpv6MulticastLoopbackResponder)>

Source

pub fn into_get_ipv6_multicast_loopback( self, ) -> Option<SocketGetIpv6MulticastLoopbackResponder>

Source

pub fn into_set_ipv6_only(self) -> Option<(bool, SocketSetIpv6OnlyResponder)>

Source

pub fn into_get_ipv6_only(self) -> Option<SocketGetIpv6OnlyResponder>

Source

pub fn into_set_ipv6_receive_traffic_class( self, ) -> Option<(bool, SocketSetIpv6ReceiveTrafficClassResponder)>

Source

pub fn into_get_ipv6_receive_traffic_class( self, ) -> Option<SocketGetIpv6ReceiveTrafficClassResponder>

Source

pub fn into_set_ipv6_traffic_class( self, ) -> Option<(OptionalUint8, SocketSetIpv6TrafficClassResponder)>

Source

pub fn into_get_ipv6_traffic_class( self, ) -> Option<SocketGetIpv6TrafficClassResponder>

Source

pub fn into_set_ipv6_receive_packet_info( self, ) -> Option<(bool, SocketSetIpv6ReceivePacketInfoResponder)>

Source

pub fn into_get_ipv6_receive_packet_info( self, ) -> Option<SocketGetIpv6ReceivePacketInfoResponder>

Source

pub fn into_get_original_destination( self, ) -> Option<SocketGetOriginalDestinationResponder>

Source

pub fn into_describe(self) -> Option<SocketDescribeResponder>

Source

pub fn into_recv_msg( self, ) -> Option<(bool, u32, bool, RecvMsgFlags, SocketRecvMsgResponder)>

Source

pub fn into_send_msg( self, ) -> Option<(Option<Box<SocketAddress>>, Vec<u8>, NetworkSocketSendControlData, SendMsgFlags, SocketSendMsgResponder)>

Source

pub fn into_get_info(self) -> Option<SocketGetInfoResponder>

Source

pub fn into_set_ip_header_included( self, ) -> Option<(bool, SocketSetIpHeaderIncludedResponder)>

Source

pub fn into_get_ip_header_included( self, ) -> Option<SocketGetIpHeaderIncludedResponder>

Source

pub fn into_set_icmpv6_filter( self, ) -> Option<(Icmpv6Filter, SocketSetIcmpv6FilterResponder)>

Source

pub fn into_get_icmpv6_filter(self) -> Option<SocketGetIcmpv6FilterResponder>

Source

pub fn into_set_ipv6_checksum( self, ) -> Option<(Ipv6ChecksumConfiguration, SocketSetIpv6ChecksumResponder)>

Source

pub fn into_get_ipv6_checksum(self) -> Option<SocketGetIpv6ChecksumResponder>

Source

pub fn method_name(&self) -> &'static str

Name of the method defined in FIDL

Trait Implementations§

Source§

impl Debug for SocketRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more