pub struct SynchronousDatagramSocketProxy { /* private fields */ }
Implementations§
source§impl SynchronousDatagramSocketProxy
impl SynchronousDatagramSocketProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.posix.socket/SynchronousDatagramSocket.
sourcepub fn take_event_stream(&self) -> SynchronousDatagramSocketEventStream
pub fn take_event_stream(&self) -> SynchronousDatagramSocketEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn clone2(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>
sourcepub fn close(&self) -> QueryResponseFut<CloseableCloseResult>
pub fn close(&self) -> QueryResponseFut<CloseableCloseResult>
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.
pub fn query(&self) -> QueryResponseFut<Vec<u8>>
sourcepub fn set_reuse_address(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetReuseAddressResult>
pub fn set_reuse_address( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetReuseAddressResult>
Set SOL_SOCKET
-> SO_REUSEADDR
.
sourcepub fn get_reuse_address(
&self,
) -> QueryResponseFut<BaseSocketGetReuseAddressResult>
pub fn get_reuse_address( &self, ) -> QueryResponseFut<BaseSocketGetReuseAddressResult>
Get SOL_SOCKET
-> SO_REUSEADDR
.
sourcepub fn get_error(&self) -> QueryResponseFut<BaseSocketGetErrorResult>
pub fn get_error(&self) -> QueryResponseFut<BaseSocketGetErrorResult>
Get SOL_SOCKET
-> SO_ERROR
.
Returns the last error if there is an error set on the socket.
sourcepub fn set_broadcast(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetBroadcastResult>
pub fn set_broadcast( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetBroadcastResult>
Set SOL_SOCKET
-> SO_BROADCAST
.
sourcepub fn get_broadcast(&self) -> QueryResponseFut<BaseSocketGetBroadcastResult>
pub fn get_broadcast(&self) -> QueryResponseFut<BaseSocketGetBroadcastResult>
Get SOL_SOCKET
-> SO_BROADCAST
.
sourcepub fn set_send_buffer(
&self,
value_bytes: u64,
) -> QueryResponseFut<BaseSocketSetSendBufferResult>
pub fn set_send_buffer( &self, value_bytes: u64, ) -> QueryResponseFut<BaseSocketSetSendBufferResult>
Set SOL_SOCKET
-> SO_SNDBUF
.
sourcepub fn get_send_buffer(&self) -> QueryResponseFut<BaseSocketGetSendBufferResult>
pub fn get_send_buffer(&self) -> QueryResponseFut<BaseSocketGetSendBufferResult>
Get SOL_SOCKET
-> SO_SNDBUF
.
sourcepub fn set_receive_buffer(
&self,
value_bytes: u64,
) -> QueryResponseFut<BaseSocketSetReceiveBufferResult>
pub fn set_receive_buffer( &self, value_bytes: u64, ) -> QueryResponseFut<BaseSocketSetReceiveBufferResult>
Set SOL_SOCKET
-> SO_RCVBUF
.
sourcepub fn get_receive_buffer(
&self,
) -> QueryResponseFut<BaseSocketGetReceiveBufferResult>
pub fn get_receive_buffer( &self, ) -> QueryResponseFut<BaseSocketGetReceiveBufferResult>
Get SOL_SOCKET
-> SO_RCVBUF
.
sourcepub fn set_keep_alive(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetKeepAliveResult>
pub fn set_keep_alive( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetKeepAliveResult>
Set SOL_SOCKET
-> SO_KEEPALIVE
.
sourcepub fn get_keep_alive(&self) -> QueryResponseFut<BaseSocketGetKeepAliveResult>
pub fn get_keep_alive(&self) -> QueryResponseFut<BaseSocketGetKeepAliveResult>
Get SOL_SOCKET
-> SO_KEEPALIVE
.
sourcepub fn set_out_of_band_inline(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetOutOfBandInlineResult>
pub fn set_out_of_band_inline( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetOutOfBandInlineResult>
Set SOL_SOCKET
-> SO_OOBINLINE
.
sourcepub fn get_out_of_band_inline(
&self,
) -> QueryResponseFut<BaseSocketGetOutOfBandInlineResult>
pub fn get_out_of_band_inline( &self, ) -> QueryResponseFut<BaseSocketGetOutOfBandInlineResult>
Get SOL_SOCKET
-> SO_OOBINLINE
.
sourcepub fn set_no_check(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetNoCheckResult>
pub fn set_no_check( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetNoCheckResult>
Set SOL_SOCKET
-> SO_NO_CHECK
.
sourcepub fn get_no_check(&self) -> QueryResponseFut<BaseSocketGetNoCheckResult>
pub fn get_no_check(&self) -> QueryResponseFut<BaseSocketGetNoCheckResult>
Get SOL_SOCKET
-> SO_NO_CHECK
.
sourcepub fn set_linger(
&self,
linger: bool,
length_secs: u32,
) -> QueryResponseFut<BaseSocketSetLingerResult>
pub fn set_linger( &self, linger: bool, length_secs: u32, ) -> QueryResponseFut<BaseSocketSetLingerResult>
Set SOL_SOCKET
-> SO_LINGER
.
sourcepub fn get_linger(&self) -> QueryResponseFut<BaseSocketGetLingerResult>
pub fn get_linger(&self) -> QueryResponseFut<BaseSocketGetLingerResult>
Get SOL_SOCKET
-> SO_LINGER
.
sourcepub fn set_reuse_port(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetReusePortResult>
pub fn set_reuse_port( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetReusePortResult>
Set SOL_SOCKET
-> SO_REUSEPORT
.
sourcepub fn get_reuse_port(&self) -> QueryResponseFut<BaseSocketGetReusePortResult>
pub fn get_reuse_port(&self) -> QueryResponseFut<BaseSocketGetReusePortResult>
Get SOL_SOCKET
-> SO_REUSEPORT
.
sourcepub fn get_accept_conn(&self) -> QueryResponseFut<BaseSocketGetAcceptConnResult>
pub fn get_accept_conn(&self) -> QueryResponseFut<BaseSocketGetAcceptConnResult>
Get SOL_SOCKET
-> SO_ACCEPTCONN
.
sourcepub fn set_bind_to_device(
&self,
value: &str,
) -> QueryResponseFut<BaseSocketSetBindToDeviceResult>
pub fn set_bind_to_device( &self, value: &str, ) -> QueryResponseFut<BaseSocketSetBindToDeviceResult>
Set SOL_SOCKET
-> SO_BINDTODEVICE
.
sourcepub fn get_bind_to_device(
&self,
) -> QueryResponseFut<BaseSocketGetBindToDeviceResult>
pub fn get_bind_to_device( &self, ) -> QueryResponseFut<BaseSocketGetBindToDeviceResult>
Get SOL_SOCKET
-> SO_BINDTODEVICE
.
sourcepub fn set_bind_to_interface_index(
&self,
value: u64,
) -> QueryResponseFut<BaseSocketSetBindToInterfaceIndexResult>
pub fn set_bind_to_interface_index( &self, value: u64, ) -> QueryResponseFut<BaseSocketSetBindToInterfaceIndexResult>
Set SOL_SOCKET
-> SO_BINDTOIFINDEX
.
If value
is 0, this clears the bound interface.
sourcepub fn get_bind_to_interface_index(
&self,
) -> QueryResponseFut<BaseSocketGetBindToInterfaceIndexResult>
pub fn get_bind_to_interface_index( &self, ) -> QueryResponseFut<BaseSocketGetBindToInterfaceIndexResult>
Get SOL_SOCKET
-> SO_BINDTOIFINDEX
.
sourcepub fn set_timestamp(
&self,
value: TimestampOption,
) -> QueryResponseFut<BaseSocketSetTimestampResult>
pub fn set_timestamp( &self, value: TimestampOption, ) -> QueryResponseFut<BaseSocketSetTimestampResult>
Set SOL_SOCKET
-> SO_TIMESTAMP
or SO_TIMESTAMPNS
.
sourcepub fn get_timestamp(&self) -> QueryResponseFut<BaseSocketGetTimestampResult>
pub fn get_timestamp(&self) -> QueryResponseFut<BaseSocketGetTimestampResult>
Get SOL_SOCKET
-> SO_TIMESTAMP
or SO_TIMESTAMPNS
.
sourcepub fn set_mark(
&self,
domain: MarkDomain,
mark: &OptionalUint32,
) -> QueryResponseFut<BaseSocketSetMarkResult>
pub fn set_mark( &self, domain: MarkDomain, mark: &OptionalUint32, ) -> QueryResponseFut<BaseSocketSetMarkResult>
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.
sourcepub fn get_mark(
&self,
domain: MarkDomain,
) -> QueryResponseFut<BaseSocketGetMarkResult>
pub fn get_mark( &self, domain: MarkDomain, ) -> QueryResponseFut<BaseSocketGetMarkResult>
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.
sourcepub fn bind(
&self,
addr: &SocketAddress,
) -> QueryResponseFut<BaseNetworkSocketBindResult>
pub fn bind( &self, addr: &SocketAddress, ) -> QueryResponseFut<BaseNetworkSocketBindResult>
Sets the local address used for the socket.
sourcepub fn connect(
&self,
addr: &SocketAddress,
) -> QueryResponseFut<BaseNetworkSocketConnectResult>
pub fn connect( &self, addr: &SocketAddress, ) -> QueryResponseFut<BaseNetworkSocketConnectResult>
Initiates a connection to a remote address.
sourcepub fn disconnect(&self) -> QueryResponseFut<BaseNetworkSocketDisconnectResult>
pub fn disconnect(&self) -> QueryResponseFut<BaseNetworkSocketDisconnectResult>
Clears connection information from this socket.
sourcepub fn get_sock_name(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetSockNameResult>
pub fn get_sock_name( &self, ) -> QueryResponseFut<BaseNetworkSocketGetSockNameResult>
Retrieves the local socket address.
sourcepub fn get_peer_name(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetPeerNameResult>
pub fn get_peer_name( &self, ) -> QueryResponseFut<BaseNetworkSocketGetPeerNameResult>
Retrieves the remote socket address.
sourcepub fn shutdown(
&self,
mode: ShutdownMode,
) -> QueryResponseFut<BaseNetworkSocketShutdownResult>
pub fn shutdown( &self, mode: ShutdownMode, ) -> QueryResponseFut<BaseNetworkSocketShutdownResult>
Shuts down part of the socket.
sourcepub fn set_ip_type_of_service(
&self,
value: u8,
) -> QueryResponseFut<BaseNetworkSocketSetIpTypeOfServiceResult>
pub fn set_ip_type_of_service( &self, value: u8, ) -> QueryResponseFut<BaseNetworkSocketSetIpTypeOfServiceResult>
Set SOL_IP
-> IP_TOS
.
sourcepub fn get_ip_type_of_service(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpTypeOfServiceResult>
pub fn get_ip_type_of_service( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpTypeOfServiceResult>
Get SOL_IP
-> IP_TOS
.
sourcepub fn set_ip_ttl(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpTtlResult>
pub fn set_ip_ttl( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpTtlResult>
Set SOL_IP
-> IP_TTL
.
sourcepub fn get_ip_ttl(&self) -> QueryResponseFut<BaseNetworkSocketGetIpTtlResult>
pub fn get_ip_ttl(&self) -> QueryResponseFut<BaseNetworkSocketGetIpTtlResult>
Get SOL_IP
-> IP_TTL
.
sourcepub fn set_ip_packet_info(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpPacketInfoResult>
pub fn set_ip_packet_info( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpPacketInfoResult>
Set SOL_IP
-> IP_PKTINFO
.
sourcepub fn get_ip_packet_info(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpPacketInfoResult>
pub fn get_ip_packet_info( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpPacketInfoResult>
Get SOL_IP
-> IP_PKTINFO
.
sourcepub fn set_ip_receive_type_of_service(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTypeOfServiceResult>
pub fn set_ip_receive_type_of_service( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTypeOfServiceResult>
Set SOL_IP
-> IP_RECVTOS
.
sourcepub fn get_ip_receive_type_of_service(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTypeOfServiceResult>
pub fn get_ip_receive_type_of_service( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTypeOfServiceResult>
Get SOL_IP
-> IP_RECVTOS
.
sourcepub fn set_ip_receive_ttl(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTtlResult>
pub fn set_ip_receive_ttl( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTtlResult>
Set SOL_IP
-> IP_RECVTTL
.
sourcepub fn get_ip_receive_ttl(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTtlResult>
pub fn get_ip_receive_ttl( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTtlResult>
Get SOL_IP
-> IP_RECVTTL
.
sourcepub fn set_ip_multicast_interface(
&self,
iface: u64,
address: &Ipv4Address,
) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastInterfaceResult>
pub fn set_ip_multicast_interface( &self, iface: u64, address: &Ipv4Address, ) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastInterfaceResult>
Set SOL_IP
-> IP_MULTICAST_IF
.
sourcepub fn get_ip_multicast_interface(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastInterfaceResult>
pub fn get_ip_multicast_interface( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastInterfaceResult>
Get SOL_IP
-> IP_MULTICAST_IF
.
sourcepub fn set_ip_multicast_ttl(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastTtlResult>
pub fn set_ip_multicast_ttl( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastTtlResult>
Set SOL_IP
-> IP_MULTICAST_TTL
.
sourcepub fn get_ip_multicast_ttl(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastTtlResult>
pub fn get_ip_multicast_ttl( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastTtlResult>
Get SOL_IP
-> IP_MULTICAST_TTL
.
sourcepub fn set_ip_multicast_loopback(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastLoopbackResult>
pub fn set_ip_multicast_loopback( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastLoopbackResult>
Set SOL_IP
-> IP_MULTICAST_LOOP
.
sourcepub fn get_ip_multicast_loopback(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastLoopbackResult>
pub fn get_ip_multicast_loopback( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastLoopbackResult>
Get SOL_IP
-> IP_MULTICAST_LOOP
.
sourcepub fn add_ip_membership(
&self,
membership: &IpMulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketAddIpMembershipResult>
pub fn add_ip_membership( &self, membership: &IpMulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketAddIpMembershipResult>
Set SOL_IP
-> IP_ADD_MEMBERSHIP
sourcepub fn drop_ip_membership(
&self,
membership: &IpMulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketDropIpMembershipResult>
pub fn drop_ip_membership( &self, membership: &IpMulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketDropIpMembershipResult>
Set SOL_IP
-> IP_DROP_MEMBERSHIP
sourcepub fn set_ip_transparent(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpTransparentResult>
pub fn set_ip_transparent( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpTransparentResult>
Set SOL_IP
-> IP_TRANSPARENT
sourcepub fn get_ip_transparent(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpTransparentResult>
pub fn get_ip_transparent( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpTransparentResult>
Get SOL_IP
-> IP_TRANSPARENT
sourcepub fn set_ip_receive_original_destination_address(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult>
pub fn set_ip_receive_original_destination_address( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult>
Set SOL_IP
-> IP_RECVORIGDSTADDR
sourcepub fn get_ip_receive_original_destination_address(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult>
pub fn get_ip_receive_original_destination_address( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult>
Get SOL_IP
-> IP_RECVORIGDSTADDR
sourcepub fn add_ipv6_membership(
&self,
membership: &Ipv6MulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketAddIpv6MembershipResult>
pub fn add_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketAddIpv6MembershipResult>
Set SOL_IPV6
-> IPV6_ADD_MEMBERSHIP
.
sourcepub fn drop_ipv6_membership(
&self,
membership: &Ipv6MulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketDropIpv6MembershipResult>
pub fn drop_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketDropIpv6MembershipResult>
Set SOL_IPV6
-> IPV6_DROP_MEMBERSHIP
.
sourcepub fn set_ipv6_multicast_interface(
&self,
value: u64,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastInterfaceResult>
pub fn set_ipv6_multicast_interface( &self, value: u64, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastInterfaceResult>
Set SOL_IPV6
-> IPV6_MULTICAST_IF
.
sourcepub fn get_ipv6_multicast_interface(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastInterfaceResult>
pub fn get_ipv6_multicast_interface( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastInterfaceResult>
Get SOL_IPV6
-> IPV6_MULTICAST_IF
.
sourcepub fn set_ipv6_unicast_hops(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6UnicastHopsResult>
pub fn set_ipv6_unicast_hops( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6UnicastHopsResult>
Set SOL_IPV6
-> IPV6_UNICAST_HOPS
.
sourcepub fn get_ipv6_unicast_hops(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6UnicastHopsResult>
pub fn get_ipv6_unicast_hops( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6UnicastHopsResult>
Get SOL_IPV6
-> IPV6_UNICAST_HOPS
.
sourcepub fn set_ipv6_receive_hop_limit(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveHopLimitResult>
pub fn set_ipv6_receive_hop_limit( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveHopLimitResult>
Set SOL_IPV6
-> IPV6_RECVHOPLIMIT
.
sourcepub fn get_ipv6_receive_hop_limit(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveHopLimitResult>
pub fn get_ipv6_receive_hop_limit( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveHopLimitResult>
Get SOL_IPV6
-> IPV6_RECVHOPLIMIT
.
sourcepub fn set_ipv6_multicast_hops(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastHopsResult>
pub fn set_ipv6_multicast_hops( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastHopsResult>
Set SOL_IPV6
-> IPV6_MULTICAST_HOPS
.
sourcepub fn get_ipv6_multicast_hops(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastHopsResult>
pub fn get_ipv6_multicast_hops( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastHopsResult>
Get SOL_IPV6
-> IPV6_MULTICAST_HOPS
.
sourcepub fn set_ipv6_multicast_loopback(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastLoopbackResult>
pub fn set_ipv6_multicast_loopback( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastLoopbackResult>
Set SOL_IPV6
-> IPV6_MULTICAST_LOOP
.
sourcepub fn get_ipv6_multicast_loopback(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastLoopbackResult>
pub fn get_ipv6_multicast_loopback( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastLoopbackResult>
Get SOL_IPV6
-> IPV6_MULTICAST_LOOP
.
sourcepub fn set_ipv6_only(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6OnlyResult>
pub fn set_ipv6_only( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6OnlyResult>
Set SOL_IPV6
-> IPV6_V6ONLY
.
sourcepub fn get_ipv6_only(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6OnlyResult>
pub fn get_ipv6_only( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6OnlyResult>
Get SOL_IPV6
-> IPV6_V6ONLY
.
sourcepub fn set_ipv6_receive_traffic_class(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveTrafficClassResult>
pub fn set_ipv6_receive_traffic_class( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveTrafficClassResult>
Set SOL_IPV6
-> IPV6_RECVTCLASS
.
sourcepub fn get_ipv6_receive_traffic_class(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveTrafficClassResult>
pub fn get_ipv6_receive_traffic_class( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveTrafficClassResult>
Get SOL_IPV6
-> IPV6_RECVTCLASS
.
sourcepub fn set_ipv6_traffic_class(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6TrafficClassResult>
pub fn set_ipv6_traffic_class( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6TrafficClassResult>
Set SOL_IPV6
-> IPV6_TCLASS
sourcepub fn get_ipv6_traffic_class(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6TrafficClassResult>
pub fn get_ipv6_traffic_class( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6TrafficClassResult>
Get SOL_IPV6
-> IPV6_TCLASS
.
sourcepub fn set_ipv6_receive_packet_info(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceivePacketInfoResult>
pub fn set_ipv6_receive_packet_info( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceivePacketInfoResult>
Set SOL_IPV6
-> IPV6_RECVPKTINFO
.
sourcepub fn get_ipv6_receive_packet_info(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceivePacketInfoResult>
pub fn get_ipv6_receive_packet_info( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceivePacketInfoResult>
Get SOL_IPV6
-> IPV6_RECVPKTINFO
.
sourcepub fn get_original_destination(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetOriginalDestinationResult>
pub fn get_original_destination( &self, ) -> QueryResponseFut<BaseNetworkSocketGetOriginalDestinationResult>
Get SOL_IP
-> SO_ORIGINAL_DST
.
sourcepub fn get_info(&self) -> QueryResponseFut<BaseDatagramSocketGetInfoResult>
pub fn get_info(&self) -> QueryResponseFut<BaseDatagramSocketGetInfoResult>
Retrieves creation information from the socket.
- response
domain
the socket’s associated domain. - response
proto
the socket’s associated protocol.
pub fn describe( &self, ) -> QueryResponseFut<SynchronousDatagramSocketDescribeResponse>
sourcepub fn recv_msg(
&self,
want_addr: bool,
data_len: u32,
want_control: bool,
flags: RecvMsgFlags,
) -> QueryResponseFut<SynchronousDatagramSocketRecvMsgResult>
pub fn recv_msg( &self, want_addr: bool, data_len: u32, want_control: bool, flags: RecvMsgFlags, ) -> QueryResponseFut<SynchronousDatagramSocketRecvMsgResult>
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.
sourcepub fn send_msg(
&self,
addr: Option<&SocketAddress>,
data: &[u8],
control: &DatagramSocketSendControlData,
flags: SendMsgFlags,
) -> QueryResponseFut<SynchronousDatagramSocketSendMsgResult>
pub fn send_msg( &self, addr: Option<&SocketAddress>, data: &[u8], control: &DatagramSocketSendControlData, flags: SendMsgFlags, ) -> QueryResponseFut<SynchronousDatagramSocketSendMsgResult>
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.
Trait Implementations§
source§impl Clone for SynchronousDatagramSocketProxy
impl Clone for SynchronousDatagramSocketProxy
source§fn clone(&self) -> SynchronousDatagramSocketProxy
fn clone(&self) -> SynchronousDatagramSocketProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Proxy for SynchronousDatagramSocketProxy
impl Proxy for SynchronousDatagramSocketProxy
§type Protocol = SynchronousDatagramSocketMarker
type Protocol = SynchronousDatagramSocketMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
source§impl SynchronousDatagramSocketProxyInterface for SynchronousDatagramSocketProxy
impl SynchronousDatagramSocketProxyInterface for SynchronousDatagramSocketProxy
fn clone2(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>
type CloseResponseFut = QueryResponseFut<Result<(), i32>>
fn close(&self) -> Self::CloseResponseFut
type QueryResponseFut = QueryResponseFut<Vec<u8>>
fn query(&self) -> Self::QueryResponseFut
type SetReuseAddressResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_reuse_address(&self, value: bool) -> Self::SetReuseAddressResponseFut
type GetReuseAddressResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_reuse_address(&self) -> Self::GetReuseAddressResponseFut
type GetErrorResponseFut = QueryResponseFut<Result<(), Errno>>
fn get_error(&self) -> Self::GetErrorResponseFut
type SetBroadcastResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_broadcast(&self, value: bool) -> Self::SetBroadcastResponseFut
type GetBroadcastResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_broadcast(&self) -> Self::GetBroadcastResponseFut
type SetSendBufferResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_send_buffer(&self, value_bytes: u64) -> Self::SetSendBufferResponseFut
type GetSendBufferResponseFut = QueryResponseFut<Result<u64, Errno>>
fn get_send_buffer(&self) -> Self::GetSendBufferResponseFut
type SetReceiveBufferResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_receive_buffer( &self, value_bytes: u64, ) -> Self::SetReceiveBufferResponseFut
type GetReceiveBufferResponseFut = QueryResponseFut<Result<u64, Errno>>
fn get_receive_buffer(&self) -> Self::GetReceiveBufferResponseFut
type SetKeepAliveResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_keep_alive(&self, value: bool) -> Self::SetKeepAliveResponseFut
type GetKeepAliveResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_keep_alive(&self) -> Self::GetKeepAliveResponseFut
type SetOutOfBandInlineResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_out_of_band_inline( &self, value: bool, ) -> Self::SetOutOfBandInlineResponseFut
type GetOutOfBandInlineResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_out_of_band_inline(&self) -> Self::GetOutOfBandInlineResponseFut
type SetNoCheckResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_no_check(&self, value: bool) -> Self::SetNoCheckResponseFut
type GetNoCheckResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_no_check(&self) -> Self::GetNoCheckResponseFut
type SetLingerResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_linger( &self, linger: bool, length_secs: u32, ) -> Self::SetLingerResponseFut
type GetLingerResponseFut = QueryResponseFut<Result<(bool, u32), Errno>>
fn get_linger(&self) -> Self::GetLingerResponseFut
type SetReusePortResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_reuse_port(&self, value: bool) -> Self::SetReusePortResponseFut
type GetReusePortResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_reuse_port(&self) -> Self::GetReusePortResponseFut
type GetAcceptConnResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_accept_conn(&self) -> Self::GetAcceptConnResponseFut
type SetBindToDeviceResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_bind_to_device(&self, value: &str) -> Self::SetBindToDeviceResponseFut
type GetBindToDeviceResponseFut = QueryResponseFut<Result<String, Errno>>
fn get_bind_to_device(&self) -> Self::GetBindToDeviceResponseFut
type SetBindToInterfaceIndexResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_bind_to_interface_index( &self, value: u64, ) -> Self::SetBindToInterfaceIndexResponseFut
type GetBindToInterfaceIndexResponseFut = QueryResponseFut<Result<u64, Errno>>
fn get_bind_to_interface_index( &self, ) -> Self::GetBindToInterfaceIndexResponseFut
type SetTimestampResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_timestamp(&self, value: TimestampOption) -> Self::SetTimestampResponseFut
type GetTimestampResponseFut = QueryResponseFut<Result<TimestampOption, Errno>>
fn get_timestamp(&self) -> Self::GetTimestampResponseFut
type SetMarkResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_mark( &self, domain: MarkDomain, mark: &OptionalUint32, ) -> Self::SetMarkResponseFut
type GetMarkResponseFut = QueryResponseFut<Result<OptionalUint32, Errno>>
fn get_mark(&self, domain: MarkDomain) -> Self::GetMarkResponseFut
type BindResponseFut = QueryResponseFut<Result<(), Errno>>
fn bind(&self, addr: &SocketAddress) -> Self::BindResponseFut
type ConnectResponseFut = QueryResponseFut<Result<(), Errno>>
fn connect(&self, addr: &SocketAddress) -> Self::ConnectResponseFut
type DisconnectResponseFut = QueryResponseFut<Result<(), Errno>>
fn disconnect(&self) -> Self::DisconnectResponseFut
type GetSockNameResponseFut = QueryResponseFut<Result<SocketAddress, Errno>>
fn get_sock_name(&self) -> Self::GetSockNameResponseFut
type GetPeerNameResponseFut = QueryResponseFut<Result<SocketAddress, Errno>>
fn get_peer_name(&self) -> Self::GetPeerNameResponseFut
type ShutdownResponseFut = QueryResponseFut<Result<(), Errno>>
fn shutdown(&self, mode: ShutdownMode) -> Self::ShutdownResponseFut
type SetIpTypeOfServiceResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_type_of_service( &self, value: u8, ) -> Self::SetIpTypeOfServiceResponseFut
type GetIpTypeOfServiceResponseFut = QueryResponseFut<Result<u8, Errno>>
fn get_ip_type_of_service(&self) -> Self::GetIpTypeOfServiceResponseFut
type SetIpTtlResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_ttl(&self, value: &OptionalUint8) -> Self::SetIpTtlResponseFut
type GetIpTtlResponseFut = QueryResponseFut<Result<u8, Errno>>
fn get_ip_ttl(&self) -> Self::GetIpTtlResponseFut
type SetIpPacketInfoResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_packet_info(&self, value: bool) -> Self::SetIpPacketInfoResponseFut
type GetIpPacketInfoResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ip_packet_info(&self) -> Self::GetIpPacketInfoResponseFut
type SetIpReceiveTypeOfServiceResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_receive_type_of_service( &self, value: bool, ) -> Self::SetIpReceiveTypeOfServiceResponseFut
type GetIpReceiveTypeOfServiceResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ip_receive_type_of_service( &self, ) -> Self::GetIpReceiveTypeOfServiceResponseFut
type SetIpReceiveTtlResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_receive_ttl(&self, value: bool) -> Self::SetIpReceiveTtlResponseFut
type GetIpReceiveTtlResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ip_receive_ttl(&self) -> Self::GetIpReceiveTtlResponseFut
type SetIpMulticastInterfaceResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_multicast_interface( &self, iface: u64, address: &Ipv4Address, ) -> Self::SetIpMulticastInterfaceResponseFut
type GetIpMulticastInterfaceResponseFut = QueryResponseFut<Result<Ipv4Address, Errno>>
fn get_ip_multicast_interface(&self) -> Self::GetIpMulticastInterfaceResponseFut
type SetIpMulticastTtlResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_multicast_ttl( &self, value: &OptionalUint8, ) -> Self::SetIpMulticastTtlResponseFut
type GetIpMulticastTtlResponseFut = QueryResponseFut<Result<u8, Errno>>
fn get_ip_multicast_ttl(&self) -> Self::GetIpMulticastTtlResponseFut
type SetIpMulticastLoopbackResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_multicast_loopback( &self, value: bool, ) -> Self::SetIpMulticastLoopbackResponseFut
type GetIpMulticastLoopbackResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ip_multicast_loopback(&self) -> Self::GetIpMulticastLoopbackResponseFut
type AddIpMembershipResponseFut = QueryResponseFut<Result<(), Errno>>
fn add_ip_membership( &self, membership: &IpMulticastMembership, ) -> Self::AddIpMembershipResponseFut
type DropIpMembershipResponseFut = QueryResponseFut<Result<(), Errno>>
fn drop_ip_membership( &self, membership: &IpMulticastMembership, ) -> Self::DropIpMembershipResponseFut
type SetIpTransparentResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_transparent(&self, value: bool) -> Self::SetIpTransparentResponseFut
type GetIpTransparentResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ip_transparent(&self) -> Self::GetIpTransparentResponseFut
type SetIpReceiveOriginalDestinationAddressResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ip_receive_original_destination_address( &self, value: bool, ) -> Self::SetIpReceiveOriginalDestinationAddressResponseFut
type GetIpReceiveOriginalDestinationAddressResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ip_receive_original_destination_address( &self, ) -> Self::GetIpReceiveOriginalDestinationAddressResponseFut
type AddIpv6MembershipResponseFut = QueryResponseFut<Result<(), Errno>>
fn add_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> Self::AddIpv6MembershipResponseFut
type DropIpv6MembershipResponseFut = QueryResponseFut<Result<(), Errno>>
fn drop_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> Self::DropIpv6MembershipResponseFut
type SetIpv6MulticastInterfaceResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_multicast_interface( &self, value: u64, ) -> Self::SetIpv6MulticastInterfaceResponseFut
type GetIpv6MulticastInterfaceResponseFut = QueryResponseFut<Result<u64, Errno>>
fn get_ipv6_multicast_interface( &self, ) -> Self::GetIpv6MulticastInterfaceResponseFut
type SetIpv6UnicastHopsResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_unicast_hops( &self, value: &OptionalUint8, ) -> Self::SetIpv6UnicastHopsResponseFut
type GetIpv6UnicastHopsResponseFut = QueryResponseFut<Result<u8, Errno>>
fn get_ipv6_unicast_hops(&self) -> Self::GetIpv6UnicastHopsResponseFut
type SetIpv6ReceiveHopLimitResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_receive_hop_limit( &self, value: bool, ) -> Self::SetIpv6ReceiveHopLimitResponseFut
type GetIpv6ReceiveHopLimitResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ipv6_receive_hop_limit(&self) -> Self::GetIpv6ReceiveHopLimitResponseFut
type SetIpv6MulticastHopsResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_multicast_hops( &self, value: &OptionalUint8, ) -> Self::SetIpv6MulticastHopsResponseFut
type GetIpv6MulticastHopsResponseFut = QueryResponseFut<Result<u8, Errno>>
fn get_ipv6_multicast_hops(&self) -> Self::GetIpv6MulticastHopsResponseFut
type SetIpv6MulticastLoopbackResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_multicast_loopback( &self, value: bool, ) -> Self::SetIpv6MulticastLoopbackResponseFut
type GetIpv6MulticastLoopbackResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ipv6_multicast_loopback( &self, ) -> Self::GetIpv6MulticastLoopbackResponseFut
type SetIpv6OnlyResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_only(&self, value: bool) -> Self::SetIpv6OnlyResponseFut
type GetIpv6OnlyResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ipv6_only(&self) -> Self::GetIpv6OnlyResponseFut
type SetIpv6ReceiveTrafficClassResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_receive_traffic_class( &self, value: bool, ) -> Self::SetIpv6ReceiveTrafficClassResponseFut
type GetIpv6ReceiveTrafficClassResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ipv6_receive_traffic_class( &self, ) -> Self::GetIpv6ReceiveTrafficClassResponseFut
type SetIpv6TrafficClassResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_traffic_class( &self, value: &OptionalUint8, ) -> Self::SetIpv6TrafficClassResponseFut
type GetIpv6TrafficClassResponseFut = QueryResponseFut<Result<u8, Errno>>
fn get_ipv6_traffic_class(&self) -> Self::GetIpv6TrafficClassResponseFut
type SetIpv6ReceivePacketInfoResponseFut = QueryResponseFut<Result<(), Errno>>
fn set_ipv6_receive_packet_info( &self, value: bool, ) -> Self::SetIpv6ReceivePacketInfoResponseFut
type GetIpv6ReceivePacketInfoResponseFut = QueryResponseFut<Result<bool, Errno>>
fn get_ipv6_receive_packet_info( &self, ) -> Self::GetIpv6ReceivePacketInfoResponseFut
type GetOriginalDestinationResponseFut = QueryResponseFut<Result<SocketAddress, Errno>>
fn get_original_destination(&self) -> Self::GetOriginalDestinationResponseFut
type GetInfoResponseFut = QueryResponseFut<Result<(Domain, DatagramSocketProtocol), Errno>>
fn get_info(&self) -> Self::GetInfoResponseFut
type DescribeResponseFut = QueryResponseFut<SynchronousDatagramSocketDescribeResponse>
fn describe(&self) -> Self::DescribeResponseFut
type RecvMsgResponseFut = QueryResponseFut<Result<(Option<Box<SocketAddress>>, Vec<u8>, DatagramSocketRecvControlData, u32), Errno>>
fn recv_msg( &self, want_addr: bool, data_len: u32, want_control: bool, flags: RecvMsgFlags, ) -> Self::RecvMsgResponseFut
type SendMsgResponseFut = QueryResponseFut<Result<i64, Errno>>
fn send_msg( &self, addr: Option<&SocketAddress>, data: &[u8], control: &DatagramSocketSendControlData, flags: SendMsgFlags, ) -> Self::SendMsgResponseFut
Auto Trait Implementations§
impl Freeze for SynchronousDatagramSocketProxy
impl !RefUnwindSafe for SynchronousDatagramSocketProxy
impl Send for SynchronousDatagramSocketProxy
impl Sync for SynchronousDatagramSocketProxy
impl Unpin for SynchronousDatagramSocketProxy
impl !UnwindSafe for SynchronousDatagramSocketProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)