pub enum StreamSocketRequest {
Show 102 variants Clone2 { request: ServerEnd<CloneableMarker>, control_handle: StreamSocketControlHandle, }, Close { responder: StreamSocketCloseResponder, }, Query { responder: StreamSocketQueryResponder, }, SetReuseAddress { value: bool, responder: StreamSocketSetReuseAddressResponder, }, GetReuseAddress { responder: StreamSocketGetReuseAddressResponder, }, GetError { responder: StreamSocketGetErrorResponder, }, SetBroadcast { value: bool, responder: StreamSocketSetBroadcastResponder, }, GetBroadcast { responder: StreamSocketGetBroadcastResponder, }, SetSendBuffer { value_bytes: u64, responder: StreamSocketSetSendBufferResponder, }, GetSendBuffer { responder: StreamSocketGetSendBufferResponder, }, SetReceiveBuffer { value_bytes: u64, responder: StreamSocketSetReceiveBufferResponder, }, GetReceiveBuffer { responder: StreamSocketGetReceiveBufferResponder, }, SetKeepAlive { value: bool, responder: StreamSocketSetKeepAliveResponder, }, GetKeepAlive { responder: StreamSocketGetKeepAliveResponder, }, SetOutOfBandInline { value: bool, responder: StreamSocketSetOutOfBandInlineResponder, }, GetOutOfBandInline { responder: StreamSocketGetOutOfBandInlineResponder, }, SetNoCheck { value: bool, responder: StreamSocketSetNoCheckResponder, }, GetNoCheck { responder: StreamSocketGetNoCheckResponder, }, SetLinger { linger: bool, length_secs: u32, responder: StreamSocketSetLingerResponder, }, GetLinger { responder: StreamSocketGetLingerResponder, }, SetReusePort { value: bool, responder: StreamSocketSetReusePortResponder, }, GetReusePort { responder: StreamSocketGetReusePortResponder, }, GetAcceptConn { responder: StreamSocketGetAcceptConnResponder, }, SetBindToDevice { value: String, responder: StreamSocketSetBindToDeviceResponder, }, GetBindToDevice { responder: StreamSocketGetBindToDeviceResponder, }, SetTimestamp { value: TimestampOption, responder: StreamSocketSetTimestampResponder, }, GetTimestamp { responder: StreamSocketGetTimestampResponder, }, Bind { addr: SocketAddress, responder: StreamSocketBindResponder, }, Connect { addr: SocketAddress, responder: StreamSocketConnectResponder, }, Disconnect { responder: StreamSocketDisconnectResponder, }, GetSockName { responder: StreamSocketGetSockNameResponder, }, GetPeerName { responder: StreamSocketGetPeerNameResponder, }, Shutdown { mode: ShutdownMode, responder: StreamSocketShutdownResponder, }, SetIpTypeOfService { value: u8, responder: StreamSocketSetIpTypeOfServiceResponder, }, GetIpTypeOfService { responder: StreamSocketGetIpTypeOfServiceResponder, }, SetIpTtl { value: OptionalUint8, responder: StreamSocketSetIpTtlResponder, }, GetIpTtl { responder: StreamSocketGetIpTtlResponder, }, SetIpPacketInfo { value: bool, responder: StreamSocketSetIpPacketInfoResponder, }, GetIpPacketInfo { responder: StreamSocketGetIpPacketInfoResponder, }, SetIpReceiveTypeOfService { value: bool, responder: StreamSocketSetIpReceiveTypeOfServiceResponder, }, GetIpReceiveTypeOfService { responder: StreamSocketGetIpReceiveTypeOfServiceResponder, }, SetIpReceiveTtl { value: bool, responder: StreamSocketSetIpReceiveTtlResponder, }, GetIpReceiveTtl { responder: StreamSocketGetIpReceiveTtlResponder, }, SetIpMulticastInterface { iface: u64, address: Ipv4Address, responder: StreamSocketSetIpMulticastInterfaceResponder, }, GetIpMulticastInterface { responder: StreamSocketGetIpMulticastInterfaceResponder, }, SetIpMulticastTtl { value: OptionalUint8, responder: StreamSocketSetIpMulticastTtlResponder, }, GetIpMulticastTtl { responder: StreamSocketGetIpMulticastTtlResponder, }, SetIpMulticastLoopback { value: bool, responder: StreamSocketSetIpMulticastLoopbackResponder, }, GetIpMulticastLoopback { responder: StreamSocketGetIpMulticastLoopbackResponder, }, AddIpMembership { membership: IpMulticastMembership, responder: StreamSocketAddIpMembershipResponder, }, DropIpMembership { membership: IpMulticastMembership, responder: StreamSocketDropIpMembershipResponder, }, AddIpv6Membership { membership: Ipv6MulticastMembership, responder: StreamSocketAddIpv6MembershipResponder, }, DropIpv6Membership { membership: Ipv6MulticastMembership, responder: StreamSocketDropIpv6MembershipResponder, }, SetIpv6MulticastInterface { value: u64, responder: StreamSocketSetIpv6MulticastInterfaceResponder, }, GetIpv6MulticastInterface { responder: StreamSocketGetIpv6MulticastInterfaceResponder, }, SetIpv6UnicastHops { value: OptionalUint8, responder: StreamSocketSetIpv6UnicastHopsResponder, }, GetIpv6UnicastHops { responder: StreamSocketGetIpv6UnicastHopsResponder, }, SetIpv6ReceiveHopLimit { value: bool, responder: StreamSocketSetIpv6ReceiveHopLimitResponder, }, GetIpv6ReceiveHopLimit { responder: StreamSocketGetIpv6ReceiveHopLimitResponder, }, SetIpv6MulticastHops { value: OptionalUint8, responder: StreamSocketSetIpv6MulticastHopsResponder, }, GetIpv6MulticastHops { responder: StreamSocketGetIpv6MulticastHopsResponder, }, SetIpv6MulticastLoopback { value: bool, responder: StreamSocketSetIpv6MulticastLoopbackResponder, }, GetIpv6MulticastLoopback { responder: StreamSocketGetIpv6MulticastLoopbackResponder, }, SetIpv6Only { value: bool, responder: StreamSocketSetIpv6OnlyResponder, }, GetIpv6Only { responder: StreamSocketGetIpv6OnlyResponder, }, SetIpv6ReceiveTrafficClass { value: bool, responder: StreamSocketSetIpv6ReceiveTrafficClassResponder, }, GetIpv6ReceiveTrafficClass { responder: StreamSocketGetIpv6ReceiveTrafficClassResponder, }, SetIpv6TrafficClass { value: OptionalUint8, responder: StreamSocketSetIpv6TrafficClassResponder, }, GetIpv6TrafficClass { responder: StreamSocketGetIpv6TrafficClassResponder, }, SetIpv6ReceivePacketInfo { value: bool, responder: StreamSocketSetIpv6ReceivePacketInfoResponder, }, GetIpv6ReceivePacketInfo { responder: StreamSocketGetIpv6ReceivePacketInfoResponder, }, Describe { responder: StreamSocketDescribeResponder, }, Listen { backlog: i16, responder: StreamSocketListenResponder, }, Accept { want_addr: bool, responder: StreamSocketAcceptResponder, }, GetInfo { responder: StreamSocketGetInfoResponder, }, SetTcpNoDelay { value: bool, responder: StreamSocketSetTcpNoDelayResponder, }, GetTcpNoDelay { responder: StreamSocketGetTcpNoDelayResponder, }, SetTcpMaxSegment { value_bytes: u32, responder: StreamSocketSetTcpMaxSegmentResponder, }, GetTcpMaxSegment { responder: StreamSocketGetTcpMaxSegmentResponder, }, SetTcpCork { value: bool, responder: StreamSocketSetTcpCorkResponder, }, GetTcpCork { responder: StreamSocketGetTcpCorkResponder, }, SetTcpKeepAliveIdle { value_secs: u32, responder: StreamSocketSetTcpKeepAliveIdleResponder, }, GetTcpKeepAliveIdle { responder: StreamSocketGetTcpKeepAliveIdleResponder, }, SetTcpKeepAliveInterval { value_secs: u32, responder: StreamSocketSetTcpKeepAliveIntervalResponder, }, GetTcpKeepAliveInterval { responder: StreamSocketGetTcpKeepAliveIntervalResponder, }, SetTcpKeepAliveCount { value: u32, responder: StreamSocketSetTcpKeepAliveCountResponder, }, GetTcpKeepAliveCount { responder: StreamSocketGetTcpKeepAliveCountResponder, }, SetTcpSynCount { value: u32, responder: StreamSocketSetTcpSynCountResponder, }, GetTcpSynCount { responder: StreamSocketGetTcpSynCountResponder, }, SetTcpLinger { value_secs: OptionalUint32, responder: StreamSocketSetTcpLingerResponder, }, GetTcpLinger { responder: StreamSocketGetTcpLingerResponder, }, SetTcpDeferAccept { value_secs: u32, responder: StreamSocketSetTcpDeferAcceptResponder, }, GetTcpDeferAccept { responder: StreamSocketGetTcpDeferAcceptResponder, }, SetTcpWindowClamp { value: u32, responder: StreamSocketSetTcpWindowClampResponder, }, GetTcpWindowClamp { responder: StreamSocketGetTcpWindowClampResponder, }, GetTcpInfo { responder: StreamSocketGetTcpInfoResponder, }, SetTcpQuickAck { value: bool, responder: StreamSocketSetTcpQuickAckResponder, }, GetTcpQuickAck { responder: StreamSocketGetTcpQuickAckResponder, }, SetTcpCongestion { value: TcpCongestionControl, responder: StreamSocketSetTcpCongestionResponder, }, GetTcpCongestion { responder: StreamSocketGetTcpCongestionResponder, }, SetTcpUserTimeout { value_millis: u32, responder: StreamSocketSetTcpUserTimeoutResponder, }, GetTcpUserTimeout { responder: StreamSocketGetTcpUserTimeoutResponder, },
}
Expand description

A stream socket.

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

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

Variants§

§

Clone2

Fields

§request: ServerEnd<CloneableMarker>
§

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

Fields

§value_bytes: u64

Set SOL_SOCKET -> SO_SNDBUF.

§

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

§

SetReceiveBuffer

Fields

§value_bytes: u64

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

Fields

§linger: bool
§length_secs: u32

Set SOL_SOCKET -> SO_LINGER.

§

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.

§

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

§

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.

§

Describe

§

Listen

Fields

§backlog: i16

Begins listening for new incoming connections. At most backlog connections will be buffered.

§

Accept

Fields

§want_addr: bool

Accepts a buffered incoming connection.

§

GetInfo

Retrieves creation information from the socket.

§

SetTcpNoDelay

Set SOL_TCP -> TCP_NODELAY.

§

GetTcpNoDelay

Get SOL_TCP -> TCP_NODELAY.

§

SetTcpMaxSegment

Fields

§value_bytes: u32

Set SOL_TCP -> TCP_MAXSEG.

§

GetTcpMaxSegment

Get SOL_TCP -> TCP_MAXSEG.

§

SetTcpCork

Set SOL_TCP -> TCP_CORK.

§

GetTcpCork

Get SOL_TCP -> TCP_CORK.

§

SetTcpKeepAliveIdle

Set SOL_TCP -> TCP_KEEPIDLE.

§

GetTcpKeepAliveIdle

Get SOL_TCP -> TCP_KEEPIDLE.

§

SetTcpKeepAliveInterval

Set SOL_TCP -> TCP_KEEPINTVL.

§

GetTcpKeepAliveInterval

Get SOL_TCP -> TCP_KEEPINTVL.

§

SetTcpKeepAliveCount

Set SOL_TCP -> TCP_KEEPCNT.

§

GetTcpKeepAliveCount

Get SOL_TCP -> TCP_KEEPCNT.

§

SetTcpSynCount

Set SOL_TCP -> TCP_SYNCNT.

§

GetTcpSynCount

Get SOL_TCP -> TCP_SYNCNT.

§

SetTcpLinger

Set SOL_TCP -> TCP_LINGER2.

§

GetTcpLinger

Get SOL_TCP -> TCP_LINGER2.

§

SetTcpDeferAccept

Set SOL_TCP -> TCP_DEFER_ACCEPT.

§

GetTcpDeferAccept

Get SOL_TCP -> TCP_DEFER_ACCEPT.

§

SetTcpWindowClamp

Set SOL_TCP -> TCP_WINDOW_CLAMP.

§

GetTcpWindowClamp

Get SOL_TCP -> TCP_WINDOW_CLAMP.

§

GetTcpInfo

Get SOL_TCP -> TCP_INFO.

§

SetTcpQuickAck

Set SOL_TCP -> TCP_QUICKACK.

§

GetTcpQuickAck

Get SOL_TCP -> TCP_QUICKACK.

§

SetTcpCongestion

Set SOL_TCP -> TCP_CONGESTION.

§

GetTcpCongestion

Get SOL_TCP -> TCP_CONGESTION.

§

SetTcpUserTimeout

Fields

§value_millis: u32

Set SOL_TCP -> TCP_USER_TIMEOUT.

§

GetTcpUserTimeout

Get SOL_TCP -> TCP_USER_TIMEOUT.

Implementations§

source§

impl StreamSocketRequest

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn into_listen(self) -> Option<(i16, StreamSocketListenResponder)>

source

pub fn into_accept(self) -> Option<(bool, StreamSocketAcceptResponder)>

source

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

source

pub fn into_set_tcp_no_delay( self ) -> Option<(bool, StreamSocketSetTcpNoDelayResponder)>

source

pub fn into_get_tcp_no_delay(self) -> Option<StreamSocketGetTcpNoDelayResponder>

source

pub fn into_set_tcp_max_segment( self ) -> Option<(u32, StreamSocketSetTcpMaxSegmentResponder)>

source

pub fn into_get_tcp_max_segment( self ) -> Option<StreamSocketGetTcpMaxSegmentResponder>

source

pub fn into_set_tcp_cork( self ) -> Option<(bool, StreamSocketSetTcpCorkResponder)>

source

pub fn into_get_tcp_cork(self) -> Option<StreamSocketGetTcpCorkResponder>

source

pub fn into_set_tcp_keep_alive_idle( self ) -> Option<(u32, StreamSocketSetTcpKeepAliveIdleResponder)>

source

pub fn into_get_tcp_keep_alive_idle( self ) -> Option<StreamSocketGetTcpKeepAliveIdleResponder>

source

pub fn into_set_tcp_keep_alive_interval( self ) -> Option<(u32, StreamSocketSetTcpKeepAliveIntervalResponder)>

source

pub fn into_get_tcp_keep_alive_interval( self ) -> Option<StreamSocketGetTcpKeepAliveIntervalResponder>

source

pub fn into_set_tcp_keep_alive_count( self ) -> Option<(u32, StreamSocketSetTcpKeepAliveCountResponder)>

source

pub fn into_get_tcp_keep_alive_count( self ) -> Option<StreamSocketGetTcpKeepAliveCountResponder>

source

pub fn into_set_tcp_syn_count( self ) -> Option<(u32, StreamSocketSetTcpSynCountResponder)>

source

pub fn into_get_tcp_syn_count( self ) -> Option<StreamSocketGetTcpSynCountResponder>

source

pub fn into_set_tcp_linger( self ) -> Option<(OptionalUint32, StreamSocketSetTcpLingerResponder)>

source

pub fn into_get_tcp_linger(self) -> Option<StreamSocketGetTcpLingerResponder>

source

pub fn into_set_tcp_defer_accept( self ) -> Option<(u32, StreamSocketSetTcpDeferAcceptResponder)>

source

pub fn into_get_tcp_defer_accept( self ) -> Option<StreamSocketGetTcpDeferAcceptResponder>

source

pub fn into_set_tcp_window_clamp( self ) -> Option<(u32, StreamSocketSetTcpWindowClampResponder)>

source

pub fn into_get_tcp_window_clamp( self ) -> Option<StreamSocketGetTcpWindowClampResponder>

source

pub fn into_get_tcp_info(self) -> Option<StreamSocketGetTcpInfoResponder>

source

pub fn into_set_tcp_quick_ack( self ) -> Option<(bool, StreamSocketSetTcpQuickAckResponder)>

source

pub fn into_get_tcp_quick_ack( self ) -> Option<StreamSocketGetTcpQuickAckResponder>

source

pub fn into_set_tcp_congestion( self ) -> Option<(TcpCongestionControl, StreamSocketSetTcpCongestionResponder)>

source

pub fn into_get_tcp_congestion( self ) -> Option<StreamSocketGetTcpCongestionResponder>

source

pub fn into_set_tcp_user_timeout( self ) -> Option<(u32, StreamSocketSetTcpUserTimeoutResponder)>

source

pub fn into_get_tcp_user_timeout( self ) -> Option<StreamSocketGetTcpUserTimeoutResponder>

source

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

Name of the method defined in FIDL

Trait Implementations§

source§

impl Debug for StreamSocketRequest

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · 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

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

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 Twhere U: From<T>,

const: unstable · 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 = mem::align_of::<T>()

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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