pub struct StreamSocketProxy { /* private fields */ }
Implementations§
Source§impl StreamSocketProxy
impl StreamSocketProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.posix.socket/StreamSocket.
Sourcepub fn take_event_stream(&self) -> StreamSocketEventStream
pub fn take_event_stream(&self) -> StreamSocketEventStream
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, DefaultFuchsiaResourceDialect>
pub fn close( &self, ) -> QueryResponseFut<CloseableCloseResult, DefaultFuchsiaResourceDialect>
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>, DefaultFuchsiaResourceDialect>
Sourcepub fn set_reuse_address(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetReuseAddressResult, DefaultFuchsiaResourceDialect>
pub fn set_reuse_address( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetReuseAddressResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_REUSEADDR
.
Sourcepub fn get_reuse_address(
&self,
) -> QueryResponseFut<BaseSocketGetReuseAddressResult, DefaultFuchsiaResourceDialect>
pub fn get_reuse_address( &self, ) -> QueryResponseFut<BaseSocketGetReuseAddressResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_REUSEADDR
.
Sourcepub fn get_error(
&self,
) -> QueryResponseFut<BaseSocketGetErrorResult, DefaultFuchsiaResourceDialect>
pub fn get_error( &self, ) -> QueryResponseFut<BaseSocketGetErrorResult, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn set_broadcast( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetBroadcastResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_BROADCAST
.
Sourcepub fn get_broadcast(
&self,
) -> QueryResponseFut<BaseSocketGetBroadcastResult, DefaultFuchsiaResourceDialect>
pub fn get_broadcast( &self, ) -> QueryResponseFut<BaseSocketGetBroadcastResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_BROADCAST
.
Sourcepub fn set_send_buffer(
&self,
value_bytes: u64,
) -> QueryResponseFut<BaseSocketSetSendBufferResult, DefaultFuchsiaResourceDialect>
pub fn set_send_buffer( &self, value_bytes: u64, ) -> QueryResponseFut<BaseSocketSetSendBufferResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_SNDBUF
.
Sourcepub fn get_send_buffer(
&self,
) -> QueryResponseFut<BaseSocketGetSendBufferResult, DefaultFuchsiaResourceDialect>
pub fn get_send_buffer( &self, ) -> QueryResponseFut<BaseSocketGetSendBufferResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_SNDBUF
.
Sourcepub fn set_receive_buffer(
&self,
value_bytes: u64,
) -> QueryResponseFut<BaseSocketSetReceiveBufferResult, DefaultFuchsiaResourceDialect>
pub fn set_receive_buffer( &self, value_bytes: u64, ) -> QueryResponseFut<BaseSocketSetReceiveBufferResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_RCVBUF
.
Sourcepub fn get_receive_buffer(
&self,
) -> QueryResponseFut<BaseSocketGetReceiveBufferResult, DefaultFuchsiaResourceDialect>
pub fn get_receive_buffer( &self, ) -> QueryResponseFut<BaseSocketGetReceiveBufferResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_RCVBUF
.
Sourcepub fn set_keep_alive(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetKeepAliveResult, DefaultFuchsiaResourceDialect>
pub fn set_keep_alive( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetKeepAliveResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_KEEPALIVE
.
Sourcepub fn get_keep_alive(
&self,
) -> QueryResponseFut<BaseSocketGetKeepAliveResult, DefaultFuchsiaResourceDialect>
pub fn get_keep_alive( &self, ) -> QueryResponseFut<BaseSocketGetKeepAliveResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_KEEPALIVE
.
Sourcepub fn set_out_of_band_inline(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetOutOfBandInlineResult, DefaultFuchsiaResourceDialect>
pub fn set_out_of_band_inline( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetOutOfBandInlineResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_OOBINLINE
.
Sourcepub fn get_out_of_band_inline(
&self,
) -> QueryResponseFut<BaseSocketGetOutOfBandInlineResult, DefaultFuchsiaResourceDialect>
pub fn get_out_of_band_inline( &self, ) -> QueryResponseFut<BaseSocketGetOutOfBandInlineResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_OOBINLINE
.
Sourcepub fn set_no_check(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetNoCheckResult, DefaultFuchsiaResourceDialect>
pub fn set_no_check( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetNoCheckResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_NO_CHECK
.
Sourcepub fn get_no_check(
&self,
) -> QueryResponseFut<BaseSocketGetNoCheckResult, DefaultFuchsiaResourceDialect>
pub fn get_no_check( &self, ) -> QueryResponseFut<BaseSocketGetNoCheckResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_NO_CHECK
.
Sourcepub fn set_linger(
&self,
linger: bool,
length_secs: u32,
) -> QueryResponseFut<BaseSocketSetLingerResult, DefaultFuchsiaResourceDialect>
pub fn set_linger( &self, linger: bool, length_secs: u32, ) -> QueryResponseFut<BaseSocketSetLingerResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_LINGER
.
Sourcepub fn get_linger(
&self,
) -> QueryResponseFut<BaseSocketGetLingerResult, DefaultFuchsiaResourceDialect>
pub fn get_linger( &self, ) -> QueryResponseFut<BaseSocketGetLingerResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_LINGER
.
Sourcepub fn set_reuse_port(
&self,
value: bool,
) -> QueryResponseFut<BaseSocketSetReusePortResult, DefaultFuchsiaResourceDialect>
pub fn set_reuse_port( &self, value: bool, ) -> QueryResponseFut<BaseSocketSetReusePortResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_REUSEPORT
.
Sourcepub fn get_reuse_port(
&self,
) -> QueryResponseFut<BaseSocketGetReusePortResult, DefaultFuchsiaResourceDialect>
pub fn get_reuse_port( &self, ) -> QueryResponseFut<BaseSocketGetReusePortResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_REUSEPORT
.
Sourcepub fn get_accept_conn(
&self,
) -> QueryResponseFut<BaseSocketGetAcceptConnResult, DefaultFuchsiaResourceDialect>
pub fn get_accept_conn( &self, ) -> QueryResponseFut<BaseSocketGetAcceptConnResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_ACCEPTCONN
.
Sourcepub fn set_bind_to_device(
&self,
value: &str,
) -> QueryResponseFut<BaseSocketSetBindToDeviceResult, DefaultFuchsiaResourceDialect>
pub fn set_bind_to_device( &self, value: &str, ) -> QueryResponseFut<BaseSocketSetBindToDeviceResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_BINDTODEVICE
.
Sourcepub fn get_bind_to_device(
&self,
) -> QueryResponseFut<BaseSocketGetBindToDeviceResult, DefaultFuchsiaResourceDialect>
pub fn get_bind_to_device( &self, ) -> QueryResponseFut<BaseSocketGetBindToDeviceResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_BINDTODEVICE
.
Sourcepub fn set_bind_to_interface_index(
&self,
value: u64,
) -> QueryResponseFut<BaseSocketSetBindToInterfaceIndexResult, DefaultFuchsiaResourceDialect>
pub fn set_bind_to_interface_index( &self, value: u64, ) -> QueryResponseFut<BaseSocketSetBindToInterfaceIndexResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_BINDTOIFINDEX
.
If value
is 0, this clears the bound interface.
Sourcepub fn get_bind_to_interface_index(
&self,
) -> QueryResponseFut<BaseSocketGetBindToInterfaceIndexResult, DefaultFuchsiaResourceDialect>
pub fn get_bind_to_interface_index( &self, ) -> QueryResponseFut<BaseSocketGetBindToInterfaceIndexResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_BINDTOIFINDEX
.
Sourcepub fn set_timestamp(
&self,
value: TimestampOption,
) -> QueryResponseFut<BaseSocketSetTimestampResult, DefaultFuchsiaResourceDialect>
pub fn set_timestamp( &self, value: TimestampOption, ) -> QueryResponseFut<BaseSocketSetTimestampResult, DefaultFuchsiaResourceDialect>
Set SOL_SOCKET
-> SO_TIMESTAMP
or SO_TIMESTAMPNS
.
Sourcepub fn get_timestamp(
&self,
) -> QueryResponseFut<BaseSocketGetTimestampResult, DefaultFuchsiaResourceDialect>
pub fn get_timestamp( &self, ) -> QueryResponseFut<BaseSocketGetTimestampResult, DefaultFuchsiaResourceDialect>
Get SOL_SOCKET
-> SO_TIMESTAMP
or SO_TIMESTAMPNS
.
Sourcepub fn set_mark(
&self,
domain: MarkDomain,
mark: &OptionalUint32,
) -> QueryResponseFut<BaseSocketSetMarkResult, DefaultFuchsiaResourceDialect>
pub fn set_mark( &self, domain: MarkDomain, mark: &OptionalUint32, ) -> QueryResponseFut<BaseSocketSetMarkResult, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn get_mark( &self, domain: MarkDomain, ) -> QueryResponseFut<BaseSocketGetMarkResult, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn bind( &self, addr: &SocketAddress, ) -> QueryResponseFut<BaseNetworkSocketBindResult, DefaultFuchsiaResourceDialect>
Sets the local address used for the socket.
Sourcepub fn connect(
&self,
addr: &SocketAddress,
) -> QueryResponseFut<BaseNetworkSocketConnectResult, DefaultFuchsiaResourceDialect>
pub fn connect( &self, addr: &SocketAddress, ) -> QueryResponseFut<BaseNetworkSocketConnectResult, DefaultFuchsiaResourceDialect>
Initiates a connection to a remote address.
Sourcepub fn disconnect(
&self,
) -> QueryResponseFut<BaseNetworkSocketDisconnectResult, DefaultFuchsiaResourceDialect>
pub fn disconnect( &self, ) -> QueryResponseFut<BaseNetworkSocketDisconnectResult, DefaultFuchsiaResourceDialect>
Clears connection information from this socket.
Sourcepub fn get_sock_name(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetSockNameResult, DefaultFuchsiaResourceDialect>
pub fn get_sock_name( &self, ) -> QueryResponseFut<BaseNetworkSocketGetSockNameResult, DefaultFuchsiaResourceDialect>
Retrieves the local socket address.
Sourcepub fn get_peer_name(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetPeerNameResult, DefaultFuchsiaResourceDialect>
pub fn get_peer_name( &self, ) -> QueryResponseFut<BaseNetworkSocketGetPeerNameResult, DefaultFuchsiaResourceDialect>
Retrieves the remote socket address.
Sourcepub fn shutdown(
&self,
mode: ShutdownMode,
) -> QueryResponseFut<BaseNetworkSocketShutdownResult, DefaultFuchsiaResourceDialect>
pub fn shutdown( &self, mode: ShutdownMode, ) -> QueryResponseFut<BaseNetworkSocketShutdownResult, DefaultFuchsiaResourceDialect>
Shuts down part of the socket.
Sourcepub fn set_ip_type_of_service(
&self,
value: u8,
) -> QueryResponseFut<BaseNetworkSocketSetIpTypeOfServiceResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_type_of_service( &self, value: u8, ) -> QueryResponseFut<BaseNetworkSocketSetIpTypeOfServiceResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_TOS
.
Sourcepub fn get_ip_type_of_service(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpTypeOfServiceResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_type_of_service( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpTypeOfServiceResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_TOS
.
Sourcepub fn set_ip_ttl(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpTtlResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_ttl( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpTtlResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_TTL
.
Sourcepub fn get_ip_ttl(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpTtlResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_ttl( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpTtlResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_TTL
.
Sourcepub fn set_ip_packet_info(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpPacketInfoResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_packet_info( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpPacketInfoResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_PKTINFO
.
Sourcepub fn get_ip_packet_info(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpPacketInfoResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_packet_info( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpPacketInfoResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_PKTINFO
.
Sourcepub fn set_ip_receive_type_of_service(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTypeOfServiceResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_receive_type_of_service( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTypeOfServiceResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_RECVTOS
.
Sourcepub fn get_ip_receive_type_of_service(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTypeOfServiceResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_receive_type_of_service( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTypeOfServiceResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_RECVTOS
.
Sourcepub fn set_ip_receive_ttl(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTtlResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_receive_ttl( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveTtlResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_RECVTTL
.
Sourcepub fn get_ip_receive_ttl(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTtlResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_receive_ttl( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveTtlResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_RECVTTL
.
Sourcepub fn set_ip_multicast_interface(
&self,
iface: u64,
address: &Ipv4Address,
) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastInterfaceResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_multicast_interface( &self, iface: u64, address: &Ipv4Address, ) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastInterfaceResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_MULTICAST_IF
.
Sourcepub fn get_ip_multicast_interface(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastInterfaceResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_multicast_interface( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastInterfaceResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_MULTICAST_IF
.
Sourcepub fn set_ip_multicast_ttl(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastTtlResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_multicast_ttl( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastTtlResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_MULTICAST_TTL
.
Sourcepub fn get_ip_multicast_ttl(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastTtlResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_multicast_ttl( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastTtlResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_MULTICAST_TTL
.
Sourcepub fn set_ip_multicast_loopback(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastLoopbackResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_multicast_loopback( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpMulticastLoopbackResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_MULTICAST_LOOP
.
Sourcepub fn get_ip_multicast_loopback(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastLoopbackResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_multicast_loopback( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpMulticastLoopbackResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_MULTICAST_LOOP
.
Sourcepub fn add_ip_membership(
&self,
membership: &IpMulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketAddIpMembershipResult, DefaultFuchsiaResourceDialect>
pub fn add_ip_membership( &self, membership: &IpMulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketAddIpMembershipResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_ADD_MEMBERSHIP
Sourcepub fn drop_ip_membership(
&self,
membership: &IpMulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketDropIpMembershipResult, DefaultFuchsiaResourceDialect>
pub fn drop_ip_membership( &self, membership: &IpMulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketDropIpMembershipResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_DROP_MEMBERSHIP
Sourcepub fn set_ip_transparent(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpTransparentResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_transparent( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpTransparentResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_TRANSPARENT
Sourcepub fn get_ip_transparent(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpTransparentResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_transparent( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpTransparentResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_TRANSPARENT
Sourcepub fn set_ip_receive_original_destination_address(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult, DefaultFuchsiaResourceDialect>
pub fn set_ip_receive_original_destination_address( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult, DefaultFuchsiaResourceDialect>
Set SOL_IP
-> IP_RECVORIGDSTADDR
Sourcepub fn get_ip_receive_original_destination_address(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult, DefaultFuchsiaResourceDialect>
pub fn get_ip_receive_original_destination_address( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> IP_RECVORIGDSTADDR
Sourcepub fn add_ipv6_membership(
&self,
membership: &Ipv6MulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketAddIpv6MembershipResult, DefaultFuchsiaResourceDialect>
pub fn add_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketAddIpv6MembershipResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_ADD_MEMBERSHIP
.
Sourcepub fn drop_ipv6_membership(
&self,
membership: &Ipv6MulticastMembership,
) -> QueryResponseFut<BaseNetworkSocketDropIpv6MembershipResult, DefaultFuchsiaResourceDialect>
pub fn drop_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> QueryResponseFut<BaseNetworkSocketDropIpv6MembershipResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_DROP_MEMBERSHIP
.
Sourcepub fn set_ipv6_multicast_interface(
&self,
value: u64,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastInterfaceResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_multicast_interface( &self, value: u64, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastInterfaceResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_MULTICAST_IF
.
Sourcepub fn get_ipv6_multicast_interface(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastInterfaceResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_multicast_interface( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastInterfaceResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_MULTICAST_IF
.
Sourcepub fn set_ipv6_unicast_hops(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6UnicastHopsResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_unicast_hops( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6UnicastHopsResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_UNICAST_HOPS
.
Sourcepub fn get_ipv6_unicast_hops(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6UnicastHopsResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_unicast_hops( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6UnicastHopsResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_UNICAST_HOPS
.
Sourcepub fn set_ipv6_receive_hop_limit(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveHopLimitResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_receive_hop_limit( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveHopLimitResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_RECVHOPLIMIT
.
Sourcepub fn get_ipv6_receive_hop_limit(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveHopLimitResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_receive_hop_limit( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveHopLimitResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_RECVHOPLIMIT
.
Sourcepub fn set_ipv6_multicast_hops(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastHopsResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_multicast_hops( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastHopsResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_MULTICAST_HOPS
.
Sourcepub fn get_ipv6_multicast_hops(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastHopsResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_multicast_hops( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastHopsResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_MULTICAST_HOPS
.
Sourcepub fn set_ipv6_multicast_loopback(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastLoopbackResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_multicast_loopback( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6MulticastLoopbackResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_MULTICAST_LOOP
.
Sourcepub fn get_ipv6_multicast_loopback(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastLoopbackResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_multicast_loopback( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6MulticastLoopbackResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_MULTICAST_LOOP
.
Sourcepub fn set_ipv6_only(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6OnlyResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_only( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6OnlyResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_V6ONLY
.
Sourcepub fn get_ipv6_only(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6OnlyResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_only( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6OnlyResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_V6ONLY
.
Sourcepub fn set_ipv6_receive_traffic_class(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveTrafficClassResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_receive_traffic_class( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceiveTrafficClassResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_RECVTCLASS
.
Sourcepub fn get_ipv6_receive_traffic_class(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveTrafficClassResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_receive_traffic_class( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceiveTrafficClassResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_RECVTCLASS
.
Sourcepub fn set_ipv6_traffic_class(
&self,
value: &OptionalUint8,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6TrafficClassResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_traffic_class( &self, value: &OptionalUint8, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6TrafficClassResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_TCLASS
Sourcepub fn get_ipv6_traffic_class(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6TrafficClassResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_traffic_class( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6TrafficClassResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_TCLASS
.
Sourcepub fn set_ipv6_receive_packet_info(
&self,
value: bool,
) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceivePacketInfoResult, DefaultFuchsiaResourceDialect>
pub fn set_ipv6_receive_packet_info( &self, value: bool, ) -> QueryResponseFut<BaseNetworkSocketSetIpv6ReceivePacketInfoResult, DefaultFuchsiaResourceDialect>
Set SOL_IPV6
-> IPV6_RECVPKTINFO
.
Sourcepub fn get_ipv6_receive_packet_info(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceivePacketInfoResult, DefaultFuchsiaResourceDialect>
pub fn get_ipv6_receive_packet_info( &self, ) -> QueryResponseFut<BaseNetworkSocketGetIpv6ReceivePacketInfoResult, DefaultFuchsiaResourceDialect>
Get SOL_IPV6
-> IPV6_RECVPKTINFO
.
Sourcepub fn get_original_destination(
&self,
) -> QueryResponseFut<BaseNetworkSocketGetOriginalDestinationResult, DefaultFuchsiaResourceDialect>
pub fn get_original_destination( &self, ) -> QueryResponseFut<BaseNetworkSocketGetOriginalDestinationResult, DefaultFuchsiaResourceDialect>
Get SOL_IP
-> SO_ORIGINAL_DST
.
pub fn describe( &self, ) -> QueryResponseFut<StreamSocketDescribeResponse, DefaultFuchsiaResourceDialect>
Sourcepub fn listen(
&self,
backlog: i16,
) -> QueryResponseFut<StreamSocketListenResult, DefaultFuchsiaResourceDialect>
pub fn listen( &self, backlog: i16, ) -> QueryResponseFut<StreamSocketListenResult, DefaultFuchsiaResourceDialect>
Begins listening for new incoming connections. At most backlog
connections will be buffered.
Sourcepub fn accept(
&self,
want_addr: bool,
) -> QueryResponseFut<StreamSocketAcceptResult, DefaultFuchsiaResourceDialect>
pub fn accept( &self, want_addr: bool, ) -> QueryResponseFut<StreamSocketAcceptResult, DefaultFuchsiaResourceDialect>
Accepts a buffered incoming connection.
Sourcepub fn get_info(
&self,
) -> QueryResponseFut<StreamSocketGetInfoResult, DefaultFuchsiaResourceDialect>
pub fn get_info( &self, ) -> QueryResponseFut<StreamSocketGetInfoResult, DefaultFuchsiaResourceDialect>
Retrieves creation information from the socket.
Sourcepub fn set_tcp_no_delay(
&self,
value: bool,
) -> QueryResponseFut<StreamSocketSetTcpNoDelayResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_no_delay( &self, value: bool, ) -> QueryResponseFut<StreamSocketSetTcpNoDelayResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_NODELAY
.
Sourcepub fn get_tcp_no_delay(
&self,
) -> QueryResponseFut<StreamSocketGetTcpNoDelayResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_no_delay( &self, ) -> QueryResponseFut<StreamSocketGetTcpNoDelayResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_NODELAY
.
Sourcepub fn set_tcp_max_segment(
&self,
value_bytes: u32,
) -> QueryResponseFut<StreamSocketSetTcpMaxSegmentResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_max_segment( &self, value_bytes: u32, ) -> QueryResponseFut<StreamSocketSetTcpMaxSegmentResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_MAXSEG
.
Sourcepub fn get_tcp_max_segment(
&self,
) -> QueryResponseFut<StreamSocketGetTcpMaxSegmentResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_max_segment( &self, ) -> QueryResponseFut<StreamSocketGetTcpMaxSegmentResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_MAXSEG
.
Sourcepub fn set_tcp_cork(
&self,
value: bool,
) -> QueryResponseFut<StreamSocketSetTcpCorkResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_cork( &self, value: bool, ) -> QueryResponseFut<StreamSocketSetTcpCorkResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_CORK
.
Sourcepub fn get_tcp_cork(
&self,
) -> QueryResponseFut<StreamSocketGetTcpCorkResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_cork( &self, ) -> QueryResponseFut<StreamSocketGetTcpCorkResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_CORK
.
Sourcepub fn set_tcp_keep_alive_idle(
&self,
value_secs: u32,
) -> QueryResponseFut<StreamSocketSetTcpKeepAliveIdleResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_keep_alive_idle( &self, value_secs: u32, ) -> QueryResponseFut<StreamSocketSetTcpKeepAliveIdleResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_KEEPIDLE
.
Sourcepub fn get_tcp_keep_alive_idle(
&self,
) -> QueryResponseFut<StreamSocketGetTcpKeepAliveIdleResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_keep_alive_idle( &self, ) -> QueryResponseFut<StreamSocketGetTcpKeepAliveIdleResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_KEEPIDLE
.
Sourcepub fn set_tcp_keep_alive_interval(
&self,
value_secs: u32,
) -> QueryResponseFut<StreamSocketSetTcpKeepAliveIntervalResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_keep_alive_interval( &self, value_secs: u32, ) -> QueryResponseFut<StreamSocketSetTcpKeepAliveIntervalResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_KEEPINTVL
.
Sourcepub fn get_tcp_keep_alive_interval(
&self,
) -> QueryResponseFut<StreamSocketGetTcpKeepAliveIntervalResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_keep_alive_interval( &self, ) -> QueryResponseFut<StreamSocketGetTcpKeepAliveIntervalResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_KEEPINTVL
.
Sourcepub fn set_tcp_keep_alive_count(
&self,
value: u32,
) -> QueryResponseFut<StreamSocketSetTcpKeepAliveCountResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_keep_alive_count( &self, value: u32, ) -> QueryResponseFut<StreamSocketSetTcpKeepAliveCountResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_KEEPCNT
.
Sourcepub fn get_tcp_keep_alive_count(
&self,
) -> QueryResponseFut<StreamSocketGetTcpKeepAliveCountResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_keep_alive_count( &self, ) -> QueryResponseFut<StreamSocketGetTcpKeepAliveCountResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_KEEPCNT
.
Sourcepub fn set_tcp_syn_count(
&self,
value: u32,
) -> QueryResponseFut<StreamSocketSetTcpSynCountResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_syn_count( &self, value: u32, ) -> QueryResponseFut<StreamSocketSetTcpSynCountResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_SYNCNT
.
Sourcepub fn get_tcp_syn_count(
&self,
) -> QueryResponseFut<StreamSocketGetTcpSynCountResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_syn_count( &self, ) -> QueryResponseFut<StreamSocketGetTcpSynCountResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_SYNCNT
.
Sourcepub fn set_tcp_linger(
&self,
value_secs: &OptionalUint32,
) -> QueryResponseFut<StreamSocketSetTcpLingerResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_linger( &self, value_secs: &OptionalUint32, ) -> QueryResponseFut<StreamSocketSetTcpLingerResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_LINGER2
.
Sourcepub fn get_tcp_linger(
&self,
) -> QueryResponseFut<StreamSocketGetTcpLingerResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_linger( &self, ) -> QueryResponseFut<StreamSocketGetTcpLingerResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_LINGER2
.
Sourcepub fn set_tcp_defer_accept(
&self,
value_secs: u32,
) -> QueryResponseFut<StreamSocketSetTcpDeferAcceptResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_defer_accept( &self, value_secs: u32, ) -> QueryResponseFut<StreamSocketSetTcpDeferAcceptResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_DEFER_ACCEPT
.
Sourcepub fn get_tcp_defer_accept(
&self,
) -> QueryResponseFut<StreamSocketGetTcpDeferAcceptResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_defer_accept( &self, ) -> QueryResponseFut<StreamSocketGetTcpDeferAcceptResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_DEFER_ACCEPT
.
Sourcepub fn set_tcp_window_clamp(
&self,
value: u32,
) -> QueryResponseFut<StreamSocketSetTcpWindowClampResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_window_clamp( &self, value: u32, ) -> QueryResponseFut<StreamSocketSetTcpWindowClampResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_WINDOW_CLAMP
.
Sourcepub fn get_tcp_window_clamp(
&self,
) -> QueryResponseFut<StreamSocketGetTcpWindowClampResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_window_clamp( &self, ) -> QueryResponseFut<StreamSocketGetTcpWindowClampResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_WINDOW_CLAMP
.
Sourcepub fn get_tcp_info(
&self,
) -> QueryResponseFut<StreamSocketGetTcpInfoResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_info( &self, ) -> QueryResponseFut<StreamSocketGetTcpInfoResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_INFO
.
Sourcepub fn set_tcp_quick_ack(
&self,
value: bool,
) -> QueryResponseFut<StreamSocketSetTcpQuickAckResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_quick_ack( &self, value: bool, ) -> QueryResponseFut<StreamSocketSetTcpQuickAckResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_QUICKACK
.
Sourcepub fn get_tcp_quick_ack(
&self,
) -> QueryResponseFut<StreamSocketGetTcpQuickAckResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_quick_ack( &self, ) -> QueryResponseFut<StreamSocketGetTcpQuickAckResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_QUICKACK
.
Sourcepub fn set_tcp_congestion(
&self,
value: TcpCongestionControl,
) -> QueryResponseFut<StreamSocketSetTcpCongestionResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_congestion( &self, value: TcpCongestionControl, ) -> QueryResponseFut<StreamSocketSetTcpCongestionResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_CONGESTION
.
Sourcepub fn get_tcp_congestion(
&self,
) -> QueryResponseFut<StreamSocketGetTcpCongestionResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_congestion( &self, ) -> QueryResponseFut<StreamSocketGetTcpCongestionResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_CONGESTION
.
Sourcepub fn set_tcp_user_timeout(
&self,
value_millis: u32,
) -> QueryResponseFut<StreamSocketSetTcpUserTimeoutResult, DefaultFuchsiaResourceDialect>
pub fn set_tcp_user_timeout( &self, value_millis: u32, ) -> QueryResponseFut<StreamSocketSetTcpUserTimeoutResult, DefaultFuchsiaResourceDialect>
Set SOL_TCP
-> TCP_USER_TIMEOUT
.
Sourcepub fn get_tcp_user_timeout(
&self,
) -> QueryResponseFut<StreamSocketGetTcpUserTimeoutResult, DefaultFuchsiaResourceDialect>
pub fn get_tcp_user_timeout( &self, ) -> QueryResponseFut<StreamSocketGetTcpUserTimeoutResult, DefaultFuchsiaResourceDialect>
Get SOL_TCP
-> TCP_USER_TIMEOUT
.
Trait Implementations§
Source§impl Clone for StreamSocketProxy
impl Clone for StreamSocketProxy
Source§fn clone(&self) -> StreamSocketProxy
fn clone(&self) -> StreamSocketProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StreamSocketProxy
impl Debug for StreamSocketProxy
Source§impl Proxy for StreamSocketProxy
impl Proxy for StreamSocketProxy
Source§type Protocol = StreamSocketMarker
type Protocol = StreamSocketMarker
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 StreamSocketProxyInterface for StreamSocketProxy
impl StreamSocketProxyInterface for StreamSocketProxy
type CloseResponseFut = QueryResponseFut<Result<(), i32>>
type QueryResponseFut = QueryResponseFut<Vec<u8>>
type SetReuseAddressResponseFut = QueryResponseFut<Result<(), Errno>>
type GetReuseAddressResponseFut = QueryResponseFut<Result<bool, Errno>>
type GetErrorResponseFut = QueryResponseFut<Result<(), Errno>>
type SetBroadcastResponseFut = QueryResponseFut<Result<(), Errno>>
type GetBroadcastResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetSendBufferResponseFut = QueryResponseFut<Result<(), Errno>>
type GetSendBufferResponseFut = QueryResponseFut<Result<u64, Errno>>
type SetReceiveBufferResponseFut = QueryResponseFut<Result<(), Errno>>
type GetReceiveBufferResponseFut = QueryResponseFut<Result<u64, Errno>>
type SetKeepAliveResponseFut = QueryResponseFut<Result<(), Errno>>
type GetKeepAliveResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetOutOfBandInlineResponseFut = QueryResponseFut<Result<(), Errno>>
type GetOutOfBandInlineResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetNoCheckResponseFut = QueryResponseFut<Result<(), Errno>>
type GetNoCheckResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetLingerResponseFut = QueryResponseFut<Result<(), Errno>>
type GetLingerResponseFut = QueryResponseFut<Result<(bool, u32), Errno>>
type SetReusePortResponseFut = QueryResponseFut<Result<(), Errno>>
type GetReusePortResponseFut = QueryResponseFut<Result<bool, Errno>>
type GetAcceptConnResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetBindToDeviceResponseFut = QueryResponseFut<Result<(), Errno>>
type GetBindToDeviceResponseFut = QueryResponseFut<Result<String, Errno>>
type SetBindToInterfaceIndexResponseFut = QueryResponseFut<Result<(), Errno>>
type GetBindToInterfaceIndexResponseFut = QueryResponseFut<Result<u64, Errno>>
type SetTimestampResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTimestampResponseFut = QueryResponseFut<Result<TimestampOption, Errno>>
type SetMarkResponseFut = QueryResponseFut<Result<(), Errno>>
type GetMarkResponseFut = QueryResponseFut<Result<OptionalUint32, Errno>>
type BindResponseFut = QueryResponseFut<Result<(), Errno>>
type ConnectResponseFut = QueryResponseFut<Result<(), Errno>>
type DisconnectResponseFut = QueryResponseFut<Result<(), Errno>>
type GetSockNameResponseFut = QueryResponseFut<Result<SocketAddress, Errno>>
type GetPeerNameResponseFut = QueryResponseFut<Result<SocketAddress, Errno>>
type ShutdownResponseFut = QueryResponseFut<Result<(), Errno>>
type SetIpTypeOfServiceResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpTypeOfServiceResponseFut = QueryResponseFut<Result<u8, Errno>>
type SetIpTtlResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpTtlResponseFut = QueryResponseFut<Result<u8, Errno>>
type SetIpPacketInfoResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpPacketInfoResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpReceiveTypeOfServiceResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpReceiveTypeOfServiceResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpReceiveTtlResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpReceiveTtlResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpMulticastInterfaceResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpMulticastInterfaceResponseFut = QueryResponseFut<Result<Ipv4Address, Errno>>
type SetIpMulticastTtlResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpMulticastTtlResponseFut = QueryResponseFut<Result<u8, Errno>>
type SetIpMulticastLoopbackResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpMulticastLoopbackResponseFut = QueryResponseFut<Result<bool, Errno>>
type AddIpMembershipResponseFut = QueryResponseFut<Result<(), Errno>>
type DropIpMembershipResponseFut = QueryResponseFut<Result<(), Errno>>
type SetIpTransparentResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpTransparentResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpReceiveOriginalDestinationAddressResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpReceiveOriginalDestinationAddressResponseFut = QueryResponseFut<Result<bool, Errno>>
type AddIpv6MembershipResponseFut = QueryResponseFut<Result<(), Errno>>
type DropIpv6MembershipResponseFut = QueryResponseFut<Result<(), Errno>>
type SetIpv6MulticastInterfaceResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6MulticastInterfaceResponseFut = QueryResponseFut<Result<u64, Errno>>
type SetIpv6UnicastHopsResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6UnicastHopsResponseFut = QueryResponseFut<Result<u8, Errno>>
type SetIpv6ReceiveHopLimitResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6ReceiveHopLimitResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpv6MulticastHopsResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6MulticastHopsResponseFut = QueryResponseFut<Result<u8, Errno>>
type SetIpv6MulticastLoopbackResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6MulticastLoopbackResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpv6OnlyResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6OnlyResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpv6ReceiveTrafficClassResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6ReceiveTrafficClassResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetIpv6TrafficClassResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6TrafficClassResponseFut = QueryResponseFut<Result<u8, Errno>>
type SetIpv6ReceivePacketInfoResponseFut = QueryResponseFut<Result<(), Errno>>
type GetIpv6ReceivePacketInfoResponseFut = QueryResponseFut<Result<bool, Errno>>
type GetOriginalDestinationResponseFut = QueryResponseFut<Result<SocketAddress, Errno>>
type DescribeResponseFut = QueryResponseFut<StreamSocketDescribeResponse>
type ListenResponseFut = QueryResponseFut<Result<(), Errno>>
type AcceptResponseFut = QueryResponseFut<Result<(Option<Box<SocketAddress>>, ClientEnd<StreamSocketMarker>), Errno>>
type GetInfoResponseFut = QueryResponseFut<Result<(Domain, StreamSocketProtocol), Errno>>
type SetTcpNoDelayResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpNoDelayResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetTcpMaxSegmentResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpMaxSegmentResponseFut = QueryResponseFut<Result<u32, Errno>>
type SetTcpCorkResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpCorkResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetTcpKeepAliveIdleResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpKeepAliveIdleResponseFut = QueryResponseFut<Result<u32, Errno>>
type SetTcpKeepAliveIntervalResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpKeepAliveIntervalResponseFut = QueryResponseFut<Result<u32, Errno>>
type SetTcpKeepAliveCountResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpKeepAliveCountResponseFut = QueryResponseFut<Result<u32, Errno>>
type SetTcpSynCountResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpSynCountResponseFut = QueryResponseFut<Result<u32, Errno>>
type SetTcpLingerResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpLingerResponseFut = QueryResponseFut<Result<OptionalUint32, Errno>>
type SetTcpDeferAcceptResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpDeferAcceptResponseFut = QueryResponseFut<Result<u32, Errno>>
type SetTcpWindowClampResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpWindowClampResponseFut = QueryResponseFut<Result<u32, Errno>>
type GetTcpInfoResponseFut = QueryResponseFut<Result<TcpInfo, Errno>>
type SetTcpQuickAckResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpQuickAckResponseFut = QueryResponseFut<Result<bool, Errno>>
type SetTcpCongestionResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpCongestionResponseFut = QueryResponseFut<Result<TcpCongestionControl, Errno>>
type SetTcpUserTimeoutResponseFut = QueryResponseFut<Result<(), Errno>>
type GetTcpUserTimeoutResponseFut = QueryResponseFut<Result<u32, Errno>>
fn clone2(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>
fn close(&self) -> Self::CloseResponseFut
fn query(&self) -> Self::QueryResponseFut
fn set_reuse_address(&self, value: bool) -> Self::SetReuseAddressResponseFut
fn get_reuse_address(&self) -> Self::GetReuseAddressResponseFut
fn get_error(&self) -> Self::GetErrorResponseFut
fn set_broadcast(&self, value: bool) -> Self::SetBroadcastResponseFut
fn get_broadcast(&self) -> Self::GetBroadcastResponseFut
fn set_send_buffer(&self, value_bytes: u64) -> Self::SetSendBufferResponseFut
fn get_send_buffer(&self) -> Self::GetSendBufferResponseFut
fn set_receive_buffer( &self, value_bytes: u64, ) -> Self::SetReceiveBufferResponseFut
fn get_receive_buffer(&self) -> Self::GetReceiveBufferResponseFut
fn set_keep_alive(&self, value: bool) -> Self::SetKeepAliveResponseFut
fn get_keep_alive(&self) -> Self::GetKeepAliveResponseFut
fn set_out_of_band_inline( &self, value: bool, ) -> Self::SetOutOfBandInlineResponseFut
fn get_out_of_band_inline(&self) -> Self::GetOutOfBandInlineResponseFut
fn set_no_check(&self, value: bool) -> Self::SetNoCheckResponseFut
fn get_no_check(&self) -> Self::GetNoCheckResponseFut
fn set_linger( &self, linger: bool, length_secs: u32, ) -> Self::SetLingerResponseFut
fn get_linger(&self) -> Self::GetLingerResponseFut
fn set_reuse_port(&self, value: bool) -> Self::SetReusePortResponseFut
fn get_reuse_port(&self) -> Self::GetReusePortResponseFut
fn get_accept_conn(&self) -> Self::GetAcceptConnResponseFut
fn set_bind_to_device(&self, value: &str) -> Self::SetBindToDeviceResponseFut
fn get_bind_to_device(&self) -> Self::GetBindToDeviceResponseFut
fn set_bind_to_interface_index( &self, value: u64, ) -> Self::SetBindToInterfaceIndexResponseFut
fn get_bind_to_interface_index( &self, ) -> Self::GetBindToInterfaceIndexResponseFut
fn set_timestamp(&self, value: TimestampOption) -> Self::SetTimestampResponseFut
fn get_timestamp(&self) -> Self::GetTimestampResponseFut
fn set_mark( &self, domain: MarkDomain, mark: &OptionalUint32, ) -> Self::SetMarkResponseFut
fn get_mark(&self, domain: MarkDomain) -> Self::GetMarkResponseFut
fn bind(&self, addr: &SocketAddress) -> Self::BindResponseFut
fn connect(&self, addr: &SocketAddress) -> Self::ConnectResponseFut
fn disconnect(&self) -> Self::DisconnectResponseFut
fn get_sock_name(&self) -> Self::GetSockNameResponseFut
fn get_peer_name(&self) -> Self::GetPeerNameResponseFut
fn shutdown(&self, mode: ShutdownMode) -> Self::ShutdownResponseFut
fn set_ip_type_of_service( &self, value: u8, ) -> Self::SetIpTypeOfServiceResponseFut
fn get_ip_type_of_service(&self) -> Self::GetIpTypeOfServiceResponseFut
fn set_ip_ttl(&self, value: &OptionalUint8) -> Self::SetIpTtlResponseFut
fn get_ip_ttl(&self) -> Self::GetIpTtlResponseFut
fn set_ip_packet_info(&self, value: bool) -> Self::SetIpPacketInfoResponseFut
fn get_ip_packet_info(&self) -> Self::GetIpPacketInfoResponseFut
fn set_ip_receive_type_of_service( &self, value: bool, ) -> Self::SetIpReceiveTypeOfServiceResponseFut
fn get_ip_receive_type_of_service( &self, ) -> Self::GetIpReceiveTypeOfServiceResponseFut
fn set_ip_receive_ttl(&self, value: bool) -> Self::SetIpReceiveTtlResponseFut
fn get_ip_receive_ttl(&self) -> Self::GetIpReceiveTtlResponseFut
fn set_ip_multicast_interface( &self, iface: u64, address: &Ipv4Address, ) -> Self::SetIpMulticastInterfaceResponseFut
fn get_ip_multicast_interface(&self) -> Self::GetIpMulticastInterfaceResponseFut
fn set_ip_multicast_ttl( &self, value: &OptionalUint8, ) -> Self::SetIpMulticastTtlResponseFut
fn get_ip_multicast_ttl(&self) -> Self::GetIpMulticastTtlResponseFut
fn set_ip_multicast_loopback( &self, value: bool, ) -> Self::SetIpMulticastLoopbackResponseFut
fn get_ip_multicast_loopback(&self) -> Self::GetIpMulticastLoopbackResponseFut
fn add_ip_membership( &self, membership: &IpMulticastMembership, ) -> Self::AddIpMembershipResponseFut
fn drop_ip_membership( &self, membership: &IpMulticastMembership, ) -> Self::DropIpMembershipResponseFut
fn set_ip_transparent(&self, value: bool) -> Self::SetIpTransparentResponseFut
fn get_ip_transparent(&self) -> Self::GetIpTransparentResponseFut
fn set_ip_receive_original_destination_address( &self, value: bool, ) -> Self::SetIpReceiveOriginalDestinationAddressResponseFut
fn get_ip_receive_original_destination_address( &self, ) -> Self::GetIpReceiveOriginalDestinationAddressResponseFut
fn add_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> Self::AddIpv6MembershipResponseFut
fn drop_ipv6_membership( &self, membership: &Ipv6MulticastMembership, ) -> Self::DropIpv6MembershipResponseFut
fn set_ipv6_multicast_interface( &self, value: u64, ) -> Self::SetIpv6MulticastInterfaceResponseFut
fn get_ipv6_multicast_interface( &self, ) -> Self::GetIpv6MulticastInterfaceResponseFut
fn set_ipv6_unicast_hops( &self, value: &OptionalUint8, ) -> Self::SetIpv6UnicastHopsResponseFut
fn get_ipv6_unicast_hops(&self) -> Self::GetIpv6UnicastHopsResponseFut
fn set_ipv6_receive_hop_limit( &self, value: bool, ) -> Self::SetIpv6ReceiveHopLimitResponseFut
fn get_ipv6_receive_hop_limit(&self) -> Self::GetIpv6ReceiveHopLimitResponseFut
fn set_ipv6_multicast_hops( &self, value: &OptionalUint8, ) -> Self::SetIpv6MulticastHopsResponseFut
fn get_ipv6_multicast_hops(&self) -> Self::GetIpv6MulticastHopsResponseFut
fn set_ipv6_multicast_loopback( &self, value: bool, ) -> Self::SetIpv6MulticastLoopbackResponseFut
fn get_ipv6_multicast_loopback( &self, ) -> Self::GetIpv6MulticastLoopbackResponseFut
fn set_ipv6_only(&self, value: bool) -> Self::SetIpv6OnlyResponseFut
fn get_ipv6_only(&self) -> Self::GetIpv6OnlyResponseFut
fn set_ipv6_receive_traffic_class( &self, value: bool, ) -> Self::SetIpv6ReceiveTrafficClassResponseFut
fn get_ipv6_receive_traffic_class( &self, ) -> Self::GetIpv6ReceiveTrafficClassResponseFut
fn set_ipv6_traffic_class( &self, value: &OptionalUint8, ) -> Self::SetIpv6TrafficClassResponseFut
fn get_ipv6_traffic_class(&self) -> Self::GetIpv6TrafficClassResponseFut
fn set_ipv6_receive_packet_info( &self, value: bool, ) -> Self::SetIpv6ReceivePacketInfoResponseFut
fn get_ipv6_receive_packet_info( &self, ) -> Self::GetIpv6ReceivePacketInfoResponseFut
fn get_original_destination(&self) -> Self::GetOriginalDestinationResponseFut
fn describe(&self) -> Self::DescribeResponseFut
fn listen(&self, backlog: i16) -> Self::ListenResponseFut
fn accept(&self, want_addr: bool) -> Self::AcceptResponseFut
fn get_info(&self) -> Self::GetInfoResponseFut
fn set_tcp_no_delay(&self, value: bool) -> Self::SetTcpNoDelayResponseFut
fn get_tcp_no_delay(&self) -> Self::GetTcpNoDelayResponseFut
fn set_tcp_max_segment( &self, value_bytes: u32, ) -> Self::SetTcpMaxSegmentResponseFut
fn get_tcp_max_segment(&self) -> Self::GetTcpMaxSegmentResponseFut
fn set_tcp_cork(&self, value: bool) -> Self::SetTcpCorkResponseFut
fn get_tcp_cork(&self) -> Self::GetTcpCorkResponseFut
fn set_tcp_keep_alive_idle( &self, value_secs: u32, ) -> Self::SetTcpKeepAliveIdleResponseFut
fn get_tcp_keep_alive_idle(&self) -> Self::GetTcpKeepAliveIdleResponseFut
fn set_tcp_keep_alive_interval( &self, value_secs: u32, ) -> Self::SetTcpKeepAliveIntervalResponseFut
fn get_tcp_keep_alive_interval( &self, ) -> Self::GetTcpKeepAliveIntervalResponseFut
fn set_tcp_keep_alive_count( &self, value: u32, ) -> Self::SetTcpKeepAliveCountResponseFut
fn get_tcp_keep_alive_count(&self) -> Self::GetTcpKeepAliveCountResponseFut
fn set_tcp_syn_count(&self, value: u32) -> Self::SetTcpSynCountResponseFut
fn get_tcp_syn_count(&self) -> Self::GetTcpSynCountResponseFut
fn set_tcp_linger( &self, value_secs: &OptionalUint32, ) -> Self::SetTcpLingerResponseFut
fn get_tcp_linger(&self) -> Self::GetTcpLingerResponseFut
fn set_tcp_defer_accept( &self, value_secs: u32, ) -> Self::SetTcpDeferAcceptResponseFut
fn get_tcp_defer_accept(&self) -> Self::GetTcpDeferAcceptResponseFut
fn set_tcp_window_clamp(&self, value: u32) -> Self::SetTcpWindowClampResponseFut
fn get_tcp_window_clamp(&self) -> Self::GetTcpWindowClampResponseFut
fn get_tcp_info(&self) -> Self::GetTcpInfoResponseFut
fn set_tcp_quick_ack(&self, value: bool) -> Self::SetTcpQuickAckResponseFut
fn get_tcp_quick_ack(&self) -> Self::GetTcpQuickAckResponseFut
fn set_tcp_congestion( &self, value: TcpCongestionControl, ) -> Self::SetTcpCongestionResponseFut
fn get_tcp_congestion(&self) -> Self::GetTcpCongestionResponseFut
fn set_tcp_user_timeout( &self, value_millis: u32, ) -> Self::SetTcpUserTimeoutResponseFut
fn get_tcp_user_timeout(&self) -> Self::GetTcpUserTimeoutResponseFut
Auto Trait Implementations§
impl Freeze for StreamSocketProxy
impl !RefUnwindSafe for StreamSocketProxy
impl Send for StreamSocketProxy
impl Sync for StreamSocketProxy
impl Unpin for StreamSocketProxy
impl !UnwindSafe for StreamSocketProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)