pub enum SynchronousDatagramSocketRequest {
Show 82 variants Clone2 { request: ServerEnd<CloneableMarker>, control_handle: SynchronousDatagramSocketControlHandle, }, Close { responder: SynchronousDatagramSocketCloseResponder, }, Query { responder: SynchronousDatagramSocketQueryResponder, }, SetReuseAddress { value: bool, responder: SynchronousDatagramSocketSetReuseAddressResponder, }, GetReuseAddress { responder: SynchronousDatagramSocketGetReuseAddressResponder, }, GetError { responder: SynchronousDatagramSocketGetErrorResponder, }, SetBroadcast { value: bool, responder: SynchronousDatagramSocketSetBroadcastResponder, }, GetBroadcast { responder: SynchronousDatagramSocketGetBroadcastResponder, }, SetSendBuffer { value_bytes: u64, responder: SynchronousDatagramSocketSetSendBufferResponder, }, GetSendBuffer { responder: SynchronousDatagramSocketGetSendBufferResponder, }, SetReceiveBuffer { value_bytes: u64, responder: SynchronousDatagramSocketSetReceiveBufferResponder, }, GetReceiveBuffer { responder: SynchronousDatagramSocketGetReceiveBufferResponder, }, SetKeepAlive { value: bool, responder: SynchronousDatagramSocketSetKeepAliveResponder, }, GetKeepAlive { responder: SynchronousDatagramSocketGetKeepAliveResponder, }, SetOutOfBandInline { value: bool, responder: SynchronousDatagramSocketSetOutOfBandInlineResponder, }, GetOutOfBandInline { responder: SynchronousDatagramSocketGetOutOfBandInlineResponder, }, SetNoCheck { value: bool, responder: SynchronousDatagramSocketSetNoCheckResponder, }, GetNoCheck { responder: SynchronousDatagramSocketGetNoCheckResponder, }, SetLinger { linger: bool, length_secs: u32, responder: SynchronousDatagramSocketSetLingerResponder, }, GetLinger { responder: SynchronousDatagramSocketGetLingerResponder, }, SetReusePort { value: bool, responder: SynchronousDatagramSocketSetReusePortResponder, }, GetReusePort { responder: SynchronousDatagramSocketGetReusePortResponder, }, GetAcceptConn { responder: SynchronousDatagramSocketGetAcceptConnResponder, }, SetBindToDevice { value: String, responder: SynchronousDatagramSocketSetBindToDeviceResponder, }, GetBindToDevice { responder: SynchronousDatagramSocketGetBindToDeviceResponder, }, SetBindToInterfaceIndex { value: u64, responder: SynchronousDatagramSocketSetBindToInterfaceIndexResponder, }, GetBindToInterfaceIndex { responder: SynchronousDatagramSocketGetBindToInterfaceIndexResponder, }, SetTimestamp { value: TimestampOption, responder: SynchronousDatagramSocketSetTimestampResponder, }, GetTimestamp { responder: SynchronousDatagramSocketGetTimestampResponder, }, Bind { addr: SocketAddress, responder: SynchronousDatagramSocketBindResponder, }, Connect { addr: SocketAddress, responder: SynchronousDatagramSocketConnectResponder, }, Disconnect { responder: SynchronousDatagramSocketDisconnectResponder, }, GetSockName { responder: SynchronousDatagramSocketGetSockNameResponder, }, GetPeerName { responder: SynchronousDatagramSocketGetPeerNameResponder, }, Shutdown { mode: ShutdownMode, responder: SynchronousDatagramSocketShutdownResponder, }, SetIpTypeOfService { value: u8, responder: SynchronousDatagramSocketSetIpTypeOfServiceResponder, }, GetIpTypeOfService { responder: SynchronousDatagramSocketGetIpTypeOfServiceResponder, }, SetIpTtl { value: OptionalUint8, responder: SynchronousDatagramSocketSetIpTtlResponder, }, GetIpTtl { responder: SynchronousDatagramSocketGetIpTtlResponder, }, SetIpPacketInfo { value: bool, responder: SynchronousDatagramSocketSetIpPacketInfoResponder, }, GetIpPacketInfo { responder: SynchronousDatagramSocketGetIpPacketInfoResponder, }, SetIpReceiveTypeOfService { value: bool, responder: SynchronousDatagramSocketSetIpReceiveTypeOfServiceResponder, }, GetIpReceiveTypeOfService { responder: SynchronousDatagramSocketGetIpReceiveTypeOfServiceResponder, }, SetIpReceiveTtl { value: bool, responder: SynchronousDatagramSocketSetIpReceiveTtlResponder, }, GetIpReceiveTtl { responder: SynchronousDatagramSocketGetIpReceiveTtlResponder, }, SetIpMulticastInterface { iface: u64, address: Ipv4Address, responder: SynchronousDatagramSocketSetIpMulticastInterfaceResponder, }, GetIpMulticastInterface { responder: SynchronousDatagramSocketGetIpMulticastInterfaceResponder, }, SetIpMulticastTtl { value: OptionalUint8, responder: SynchronousDatagramSocketSetIpMulticastTtlResponder, }, GetIpMulticastTtl { responder: SynchronousDatagramSocketGetIpMulticastTtlResponder, }, SetIpMulticastLoopback { value: bool, responder: SynchronousDatagramSocketSetIpMulticastLoopbackResponder, }, GetIpMulticastLoopback { responder: SynchronousDatagramSocketGetIpMulticastLoopbackResponder, }, AddIpMembership { membership: IpMulticastMembership, responder: SynchronousDatagramSocketAddIpMembershipResponder, }, DropIpMembership { membership: IpMulticastMembership, responder: SynchronousDatagramSocketDropIpMembershipResponder, }, SetIpTransparent { value: bool, responder: SynchronousDatagramSocketSetIpTransparentResponder, }, GetIpTransparent { responder: SynchronousDatagramSocketGetIpTransparentResponder, }, SetIpReceiveOriginalDestinationAddress { value: bool, responder: SynchronousDatagramSocketSetIpReceiveOriginalDestinationAddressResponder, }, GetIpReceiveOriginalDestinationAddress { responder: SynchronousDatagramSocketGetIpReceiveOriginalDestinationAddressResponder, }, AddIpv6Membership { membership: Ipv6MulticastMembership, responder: SynchronousDatagramSocketAddIpv6MembershipResponder, }, DropIpv6Membership { membership: Ipv6MulticastMembership, responder: SynchronousDatagramSocketDropIpv6MembershipResponder, }, SetIpv6MulticastInterface { value: u64, responder: SynchronousDatagramSocketSetIpv6MulticastInterfaceResponder, }, GetIpv6MulticastInterface { responder: SynchronousDatagramSocketGetIpv6MulticastInterfaceResponder, }, SetIpv6UnicastHops { value: OptionalUint8, responder: SynchronousDatagramSocketSetIpv6UnicastHopsResponder, }, GetIpv6UnicastHops { responder: SynchronousDatagramSocketGetIpv6UnicastHopsResponder, }, SetIpv6ReceiveHopLimit { value: bool, responder: SynchronousDatagramSocketSetIpv6ReceiveHopLimitResponder, }, GetIpv6ReceiveHopLimit { responder: SynchronousDatagramSocketGetIpv6ReceiveHopLimitResponder, }, SetIpv6MulticastHops { value: OptionalUint8, responder: SynchronousDatagramSocketSetIpv6MulticastHopsResponder, }, GetIpv6MulticastHops { responder: SynchronousDatagramSocketGetIpv6MulticastHopsResponder, }, SetIpv6MulticastLoopback { value: bool, responder: SynchronousDatagramSocketSetIpv6MulticastLoopbackResponder, }, GetIpv6MulticastLoopback { responder: SynchronousDatagramSocketGetIpv6MulticastLoopbackResponder, }, SetIpv6Only { value: bool, responder: SynchronousDatagramSocketSetIpv6OnlyResponder, }, GetIpv6Only { responder: SynchronousDatagramSocketGetIpv6OnlyResponder, }, SetIpv6ReceiveTrafficClass { value: bool, responder: SynchronousDatagramSocketSetIpv6ReceiveTrafficClassResponder, }, GetIpv6ReceiveTrafficClass { responder: SynchronousDatagramSocketGetIpv6ReceiveTrafficClassResponder, }, SetIpv6TrafficClass { value: OptionalUint8, responder: SynchronousDatagramSocketSetIpv6TrafficClassResponder, }, GetIpv6TrafficClass { responder: SynchronousDatagramSocketGetIpv6TrafficClassResponder, }, SetIpv6ReceivePacketInfo { value: bool, responder: SynchronousDatagramSocketSetIpv6ReceivePacketInfoResponder, }, GetIpv6ReceivePacketInfo { responder: SynchronousDatagramSocketGetIpv6ReceivePacketInfoResponder, }, GetOriginalDestination { responder: SynchronousDatagramSocketGetOriginalDestinationResponder, }, GetInfo { responder: SynchronousDatagramSocketGetInfoResponder, }, Describe { responder: SynchronousDatagramSocketDescribeResponder, }, RecvMsg { want_addr: bool, data_len: u32, want_control: bool, flags: RecvMsgFlags, responder: SynchronousDatagramSocketRecvMsgResponder, }, SendMsg { addr: Option<Box<SocketAddress>>, data: Vec<u8>, control: DatagramSocketSendControlData, flags: SendMsgFlags, responder: SynchronousDatagramSocketSendMsgResponder, },
}
Expand description

A synchronous datagram socket.

This protocol defines synchronous methods for sending and receiving datagram payloads over a channel. All methods are nonblocking; their behavior roughly matches 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>
§

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.

§

Query

§

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.

§

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

§

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

§

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

§

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

§

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

§

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

§

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

§

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.

§

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.

§

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.

§

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

§

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.

§

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

§

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

§

SetIpTtl

Set SOL_IP -> IP_TTL.

§

GetIpTtl

Get SOL_IP -> IP_TTL.

§

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.

§

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

§

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

§

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.

§

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

§

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

§

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

§

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

§

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.

§

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.

§

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

§

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

§

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

§

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

§

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.

§

GetInfo

Retrieves creation information from the socket.

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

Describe

§

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
§

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.
  • response len the number of bytes sent.

Implementations§

source§

impl SynchronousDatagramSocketRequest

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn into_get_out_of_band_inline( self ) -> Option<SynchronousDatagramSocketGetOutOfBandInlineResponder>

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn into_get_bind_to_interface_index( self ) -> Option<SynchronousDatagramSocketGetBindToInterfaceIndexResponder>

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn into_get_ip_type_of_service( self ) -> Option<SynchronousDatagramSocketGetIpTypeOfServiceResponder>

source

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

source

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

source

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

source

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

source

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

source

pub fn into_get_ip_receive_type_of_service( self ) -> Option<SynchronousDatagramSocketGetIpReceiveTypeOfServiceResponder>

source

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

source

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

source

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

source

pub fn into_get_ip_multicast_interface( self ) -> Option<SynchronousDatagramSocketGetIpMulticastInterfaceResponder>

source

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

source

pub fn into_get_ip_multicast_ttl( self ) -> Option<SynchronousDatagramSocketGetIpMulticastTtlResponder>

source

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

source

pub fn into_get_ip_multicast_loopback( self ) -> Option<SynchronousDatagramSocketGetIpMulticastLoopbackResponder>

source

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

source

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

source

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

source

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

source

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

source

pub fn into_get_ip_receive_original_destination_address( self ) -> Option<SynchronousDatagramSocketGetIpReceiveOriginalDestinationAddressResponder>

source

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

source

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

source

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

source

pub fn into_get_ipv6_multicast_interface( self ) -> Option<SynchronousDatagramSocketGetIpv6MulticastInterfaceResponder>

source

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

source

pub fn into_get_ipv6_unicast_hops( self ) -> Option<SynchronousDatagramSocketGetIpv6UnicastHopsResponder>

source

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

source

pub fn into_get_ipv6_receive_hop_limit( self ) -> Option<SynchronousDatagramSocketGetIpv6ReceiveHopLimitResponder>

source

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

source

pub fn into_get_ipv6_multicast_hops( self ) -> Option<SynchronousDatagramSocketGetIpv6MulticastHopsResponder>

source

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

source

pub fn into_get_ipv6_multicast_loopback( self ) -> Option<SynchronousDatagramSocketGetIpv6MulticastLoopbackResponder>

source

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

source

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

source

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

source

pub fn into_get_ipv6_receive_traffic_class( self ) -> Option<SynchronousDatagramSocketGetIpv6ReceiveTrafficClassResponder>

source

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

source

pub fn into_get_ipv6_traffic_class( self ) -> Option<SynchronousDatagramSocketGetIpv6TrafficClassResponder>

source

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

source

pub fn into_get_ipv6_receive_packet_info( self ) -> Option<SynchronousDatagramSocketGetIpv6ReceivePacketInfoResponder>

source

pub fn into_get_original_destination( self ) -> Option<SynchronousDatagramSocketGetOriginalDestinationResponder>

source

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

source

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

source

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

source

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

source

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

Name of the method defined in FIDL

Trait Implementations§

source§

impl Debug for SynchronousDatagramSocketRequest

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> Encode<Ambiguous1> for T

§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _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> Encode<Ambiguous2> for T

§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _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>,

§

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>,

§

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