pub struct SpinSocketsView<'a, T> { /* private fields */ }Expand description
A view over WASI socket state that carries an optional per-instance socket permit store, enabling per-connection quota tracking.
Implementations§
Source§impl<'a, T> SpinSocketsView<'a, T>
impl<'a, T> SpinSocketsView<'a, T>
Sourcepub fn into_wasi(self) -> WasiSocketsCtxView<'a>
pub fn into_wasi(self) -> WasiSocketsCtxView<'a>
Consumes this view and returns the inner WasiSocketsCtxView.
Trait Implementations§
Source§impl<'a, T> Deref for SpinSocketsView<'a, T>
impl<'a, T> Deref for SpinSocketsView<'a, T>
Source§impl<T> DerefMut for SpinSocketsView<'_, T>
impl<T> DerefMut for SpinSocketsView<'_, T>
impl<T> Host for SpinSocketsView<'_, T>
Source§impl<T> Host for SpinSocketsView<'_, T>
impl<T> Host for SpinSocketsView<'_, T>
fn convert_error_code(&mut self, error: SocketError) -> Result<ErrorCode>
Source§impl<T> Host for SpinSocketsView<'_, T>
impl<T> Host for SpinSocketsView<'_, T>
Source§fn create_tcp_socket(
&mut self,
address_family: IpAddressFamily,
) -> SocketResult<Resource<TcpSocket>>
fn create_tcp_socket( &mut self, address_family: IpAddressFamily, ) -> SocketResult<Resource<TcpSocket>>
Create a new TCP socket. Read more
impl<T> Host for SpinSocketsView<'_, T>
Source§impl<T> Host for SpinSocketsView<'_, T>
impl<T> Host for SpinSocketsView<'_, T>
Source§fn create_udp_socket(
&mut self,
address_family: IpAddressFamily,
) -> SocketResult<Resource<UdpSocket>>
fn create_udp_socket( &mut self, address_family: IpAddressFamily, ) -> SocketResult<Resource<UdpSocket>>
Create a new UDP socket. Read more
Source§impl<T> Host for SpinSocketsView<'_, T>
impl<T> Host for SpinSocketsView<'_, T>
fn convert_error_code(&mut self, error: SocketError) -> Result<p3_ErrorCode>
Source§impl<T> HostIncomingDatagramStream for SpinSocketsView<'_, T>
impl<T> HostIncomingDatagramStream for SpinSocketsView<'_, T>
Source§fn receive(
&mut self,
this: Resource<IncomingDatagramStream>,
max_results: u64,
) -> SocketResult<Vec<IncomingDatagram>>
fn receive( &mut self, this: Resource<IncomingDatagramStream>, max_results: u64, ) -> SocketResult<Vec<IncomingDatagram>>
Receive messages on the socket. Read more
Source§fn subscribe(
&mut self,
this: Resource<IncomingDatagramStream>,
) -> Result<Resource<DynPollable>>
fn subscribe( &mut self, this: Resource<IncomingDatagramStream>, ) -> Result<Resource<DynPollable>>
Create a
pollable which will resolve once the stream is ready to receive again. Read morefn drop(&mut self, this: Resource<IncomingDatagramStream>) -> Result<()>
Source§impl<T> HostNetwork for SpinSocketsView<'_, T>
impl<T> HostNetwork for SpinSocketsView<'_, T>
Source§impl<T> HostOutgoingDatagramStream for SpinSocketsView<'_, T>
impl<T> HostOutgoingDatagramStream for SpinSocketsView<'_, T>
Source§fn check_send(
&mut self,
this: Resource<OutgoingDatagramStream>,
) -> SocketResult<u64>
fn check_send( &mut self, this: Resource<OutgoingDatagramStream>, ) -> SocketResult<u64>
Check readiness for sending. This function never blocks. Read more
Source§async fn send(
&mut self,
this: Resource<OutgoingDatagramStream>,
datagrams: Vec<OutgoingDatagram>,
) -> SocketResult<u64>
async fn send( &mut self, this: Resource<OutgoingDatagramStream>, datagrams: Vec<OutgoingDatagram>, ) -> SocketResult<u64>
Send messages on the socket. Read more
Source§fn subscribe(
&mut self,
this: Resource<OutgoingDatagramStream>,
) -> Result<Resource<DynPollable>>
fn subscribe( &mut self, this: Resource<OutgoingDatagramStream>, ) -> Result<Resource<DynPollable>>
Create a
pollable which will resolve once the stream is ready to send again. Read morefn drop(&mut self, this: Resource<OutgoingDatagramStream>) -> Result<()>
Source§impl<T> HostTcpSocket for SpinSocketsView<'_, T>
impl<T> HostTcpSocket for SpinSocketsView<'_, T>
Source§async fn start_bind(
&mut self,
this: Resource<TcpSocket>,
network: Resource<Network>,
local_address: IpSocketAddress,
) -> SocketResult<()>
async fn start_bind( &mut self, this: Resource<TcpSocket>, network: Resource<Network>, local_address: IpSocketAddress, ) -> SocketResult<()>
Bind the socket to a specific network on the provided IP address and port. Read more
fn finish_bind(&mut self, this: Resource<TcpSocket>) -> SocketResult<()>
Source§async fn start_connect(
&mut self,
this: Resource<TcpSocket>,
network: Resource<Network>,
remote_address: IpSocketAddress,
) -> SocketResult<()>
async fn start_connect( &mut self, this: Resource<TcpSocket>, network: Resource<Network>, remote_address: IpSocketAddress, ) -> SocketResult<()>
Connect to a remote endpoint. Read more
fn finish_connect( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<(Resource<DynInputStream>, Resource<DynOutputStream>)>
Source§fn start_listen(&mut self, this: Resource<TcpSocket>) -> SocketResult<()>
fn start_listen(&mut self, this: Resource<TcpSocket>) -> SocketResult<()>
Start listening for new connections. Read more
fn finish_listen(&mut self, this: Resource<TcpSocket>) -> SocketResult<()>
Source§fn accept(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<(Resource<TcpSocket>, Resource<DynInputStream>, Resource<DynOutputStream>)>
fn accept( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<(Resource<TcpSocket>, Resource<DynInputStream>, Resource<DynOutputStream>)>
Accept a new client socket. Read more
Source§fn local_address(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<IpSocketAddress>
fn local_address( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<IpSocketAddress>
Get the bound local address. Read more
Source§fn remote_address(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<IpSocketAddress>
fn remote_address( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<IpSocketAddress>
Get the remote address. Read more
Source§fn is_listening(&mut self, this: Resource<TcpSocket>) -> Result<bool>
fn is_listening(&mut self, this: Resource<TcpSocket>) -> Result<bool>
Whether the socket is in the
listening state. Read moreSource§fn address_family(
&mut self,
this: Resource<TcpSocket>,
) -> Result<IpAddressFamily>
fn address_family( &mut self, this: Resource<TcpSocket>, ) -> Result<IpAddressFamily>
Whether this is a IPv4 or IPv6 socket. Read more
Source§fn set_listen_backlog_size(
&mut self,
this: Resource<TcpSocket>,
value: u64,
) -> SocketResult<()>
fn set_listen_backlog_size( &mut self, this: Resource<TcpSocket>, value: u64, ) -> SocketResult<()>
Hints the desired listen queue size. Implementations are free to ignore this. Read more
Source§fn keep_alive_enabled(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<bool>
fn keep_alive_enabled( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<bool>
Enables or disables keepalive. Read more
fn set_keep_alive_enabled( &mut self, this: Resource<TcpSocket>, value: bool, ) -> SocketResult<()>
Source§fn keep_alive_idle_time(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<u64>
fn keep_alive_idle_time( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<u64>
Amount of time the connection has to be idle before TCP starts sending keepalive packets. Read more
fn set_keep_alive_idle_time( &mut self, this: Resource<TcpSocket>, value: u64, ) -> SocketResult<()>
Source§fn keep_alive_interval(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<u64>
fn keep_alive_interval( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<u64>
The time between keepalive packets. Read more
fn set_keep_alive_interval( &mut self, this: Resource<TcpSocket>, value: u64, ) -> SocketResult<()>
Source§fn keep_alive_count(&mut self, this: Resource<TcpSocket>) -> SocketResult<u32>
fn keep_alive_count(&mut self, this: Resource<TcpSocket>) -> SocketResult<u32>
The maximum amount of keepalive packets TCP should send before aborting the connection. Read more
fn set_keep_alive_count( &mut self, this: Resource<TcpSocket>, value: u32, ) -> SocketResult<()>
Source§fn hop_limit(&mut self, this: Resource<TcpSocket>) -> SocketResult<u8>
fn hop_limit(&mut self, this: Resource<TcpSocket>) -> SocketResult<u8>
Equivalent to the IP_TTL & IPV6_UNICAST_HOPS socket options. Read more
fn set_hop_limit( &mut self, this: Resource<TcpSocket>, value: u8, ) -> SocketResult<()>
Source§fn receive_buffer_size(
&mut self,
this: Resource<TcpSocket>,
) -> SocketResult<u64>
fn receive_buffer_size( &mut self, this: Resource<TcpSocket>, ) -> SocketResult<u64>
The kernel buffer space reserved for sends/receives on this socket. Read more
fn set_receive_buffer_size( &mut self, this: Resource<TcpSocket>, value: u64, ) -> SocketResult<()>
fn send_buffer_size(&mut self, this: Resource<TcpSocket>) -> SocketResult<u64>
fn set_send_buffer_size( &mut self, this: Resource<TcpSocket>, value: u64, ) -> SocketResult<()>
Source§fn subscribe(
&mut self,
this: Resource<TcpSocket>,
) -> Result<Resource<DynPollable>>
fn subscribe( &mut self, this: Resource<TcpSocket>, ) -> Result<Resource<DynPollable>>
Create a
pollable which can be used to poll for, or block on,
completion of any of the asynchronous operations of this socket. Read moreSource§fn shutdown(
&mut self,
this: Resource<TcpSocket>,
shutdown_type: ShutdownType,
) -> SocketResult<()>
fn shutdown( &mut self, this: Resource<TcpSocket>, shutdown_type: ShutdownType, ) -> SocketResult<()>
Initiate a graceful shutdown. Read more
fn drop(&mut self, this: Resource<TcpSocket>) -> Result<()>
Source§impl<T> HostTcpSocket for SpinSocketsView<'_, T>
impl<T> HostTcpSocket for SpinSocketsView<'_, T>
Source§async fn bind(
&mut self,
socket: Resource<TcpSocket>,
local_address: p3_IpSocketAddress,
) -> P3SocketResult<()>
async fn bind( &mut self, socket: Resource<TcpSocket>, local_address: p3_IpSocketAddress, ) -> P3SocketResult<()>
Bind the socket to the provided IP address and port. Read more
Source§fn create(
&mut self,
address_family: p3_IpAddressFamily,
) -> P3SocketResult<Resource<TcpSocket>>
fn create( &mut self, address_family: p3_IpAddressFamily, ) -> P3SocketResult<Resource<TcpSocket>>
Create a new TCP socket. Read more
Source§fn get_local_address(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<p3_IpSocketAddress>
fn get_local_address( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<p3_IpSocketAddress>
Get the bound local address. Read more
Source§fn get_remote_address(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<p3_IpSocketAddress>
fn get_remote_address( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<p3_IpSocketAddress>
Get the remote address. Read more
Source§fn get_is_listening(&mut self, socket: Resource<TcpSocket>) -> Result<bool>
fn get_is_listening(&mut self, socket: Resource<TcpSocket>) -> Result<bool>
Whether the socket is in the
listening state. Read moreSource§fn get_address_family(
&mut self,
socket: Resource<TcpSocket>,
) -> Result<p3_IpAddressFamily>
fn get_address_family( &mut self, socket: Resource<TcpSocket>, ) -> Result<p3_IpAddressFamily>
Whether this is a IPv4 or IPv6 socket. Read more
Source§fn set_listen_backlog_size(
&mut self,
socket: Resource<TcpSocket>,
value: u64,
) -> P3SocketResult<()>
fn set_listen_backlog_size( &mut self, socket: Resource<TcpSocket>, value: u64, ) -> P3SocketResult<()>
Hints the desired listen queue size. Implementations are free to
ignore this. Read more
Source§fn get_keep_alive_enabled(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<bool>
fn get_keep_alive_enabled( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<bool>
Enables or disables keepalive. Read more
fn set_keep_alive_enabled( &mut self, socket: Resource<TcpSocket>, value: bool, ) -> P3SocketResult<()>
Source§fn get_keep_alive_idle_time(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<p3_Duration>
fn get_keep_alive_idle_time( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<p3_Duration>
Amount of time the connection has to be idle before TCP starts
sending keepalive packets. Read more
fn set_keep_alive_idle_time( &mut self, socket: Resource<TcpSocket>, value: p3_Duration, ) -> P3SocketResult<()>
Source§fn get_keep_alive_interval(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<p3_Duration>
fn get_keep_alive_interval( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<p3_Duration>
The time between keepalive packets. Read more
fn set_keep_alive_interval( &mut self, socket: Resource<TcpSocket>, value: p3_Duration, ) -> P3SocketResult<()>
Source§fn get_keep_alive_count(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<u32>
fn get_keep_alive_count( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<u32>
The maximum amount of keepalive packets TCP should send before
aborting the connection. Read more
fn set_keep_alive_count( &mut self, socket: Resource<TcpSocket>, value: u32, ) -> P3SocketResult<()>
Source§fn get_hop_limit(&mut self, socket: Resource<TcpSocket>) -> P3SocketResult<u8>
fn get_hop_limit(&mut self, socket: Resource<TcpSocket>) -> P3SocketResult<u8>
Equivalent to the IP_TTL & IPV6_UNICAST_HOPS socket options. Read more
fn set_hop_limit( &mut self, socket: Resource<TcpSocket>, value: u8, ) -> P3SocketResult<()>
Source§fn get_receive_buffer_size(
&mut self,
socket: Resource<TcpSocket>,
) -> P3SocketResult<u64>
fn get_receive_buffer_size( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<u64>
Kernel buffer space reserved for sending/receiving on this socket.
Implementations usually treat this as a cap the buffer can grow to,
rather than allocating the full amount immediately. Read more
fn set_receive_buffer_size( &mut self, socket: Resource<TcpSocket>, value: u64, ) -> P3SocketResult<()>
fn get_send_buffer_size( &mut self, socket: Resource<TcpSocket>, ) -> P3SocketResult<u64>
fn set_send_buffer_size( &mut self, socket: Resource<TcpSocket>, value: u64, ) -> P3SocketResult<()>
fn drop(&mut self, sock: Resource<TcpSocket>) -> Result<()>
Source§impl<T> HostUdpSocket for SpinSocketsView<'_, T>
impl<T> HostUdpSocket for SpinSocketsView<'_, T>
Source§async fn start_bind(
&mut self,
this: Resource<UdpSocket>,
network: Resource<Network>,
local_address: IpSocketAddress,
) -> SocketResult<()>
async fn start_bind( &mut self, this: Resource<UdpSocket>, network: Resource<Network>, local_address: IpSocketAddress, ) -> SocketResult<()>
Bind the socket to a specific network on the provided IP address and port. Read more
fn finish_bind(&mut self, this: Resource<UdpSocket>) -> SocketResult<()>
Source§async fn stream(
&mut self,
this: Resource<UdpSocket>,
remote_address: Option<IpSocketAddress>,
) -> SocketResult<(Resource<IncomingDatagramStream>, Resource<OutgoingDatagramStream>)>
async fn stream( &mut self, this: Resource<UdpSocket>, remote_address: Option<IpSocketAddress>, ) -> SocketResult<(Resource<IncomingDatagramStream>, Resource<OutgoingDatagramStream>)>
Set up inbound & outbound communication channels, optionally to a specific peer. Read more
Source§fn local_address(
&mut self,
this: Resource<UdpSocket>,
) -> SocketResult<IpSocketAddress>
fn local_address( &mut self, this: Resource<UdpSocket>, ) -> SocketResult<IpSocketAddress>
Get the current bound address. Read more
Source§fn remote_address(
&mut self,
this: Resource<UdpSocket>,
) -> SocketResult<IpSocketAddress>
fn remote_address( &mut self, this: Resource<UdpSocket>, ) -> SocketResult<IpSocketAddress>
Get the address the socket is currently streaming to. Read more
Source§fn address_family(
&mut self,
this: Resource<UdpSocket>,
) -> Result<IpAddressFamily>
fn address_family( &mut self, this: Resource<UdpSocket>, ) -> Result<IpAddressFamily>
Whether this is a IPv4 or IPv6 socket. Read more
Source§fn unicast_hop_limit(&mut self, this: Resource<UdpSocket>) -> SocketResult<u8>
fn unicast_hop_limit(&mut self, this: Resource<UdpSocket>) -> SocketResult<u8>
Equivalent to the IP_TTL & IPV6_UNICAST_HOPS socket options. Read more
fn set_unicast_hop_limit( &mut self, this: Resource<UdpSocket>, value: u8, ) -> SocketResult<()>
Source§fn receive_buffer_size(
&mut self,
this: Resource<UdpSocket>,
) -> SocketResult<u64>
fn receive_buffer_size( &mut self, this: Resource<UdpSocket>, ) -> SocketResult<u64>
The kernel buffer space reserved for sends/receives on this socket. Read more
fn set_receive_buffer_size( &mut self, this: Resource<UdpSocket>, value: u64, ) -> SocketResult<()>
fn send_buffer_size(&mut self, this: Resource<UdpSocket>) -> SocketResult<u64>
fn set_send_buffer_size( &mut self, this: Resource<UdpSocket>, value: u64, ) -> SocketResult<()>
Source§fn subscribe(
&mut self,
this: Resource<UdpSocket>,
) -> Result<Resource<DynPollable>>
fn subscribe( &mut self, this: Resource<UdpSocket>, ) -> Result<Resource<DynPollable>>
Create a
pollable which will resolve once the socket is ready for I/O. Read morefn drop(&mut self, this: Resource<UdpSocket>) -> Result<()>
Source§impl<T> HostUdpSocket for SpinSocketsView<'_, T>
impl<T> HostUdpSocket for SpinSocketsView<'_, T>
Source§async fn bind(
&mut self,
socket: Resource<UdpSocket>,
local_address: p3_IpSocketAddress,
) -> P3SocketResult<()>
async fn bind( &mut self, socket: Resource<UdpSocket>, local_address: p3_IpSocketAddress, ) -> P3SocketResult<()>
Bind the socket to the provided IP address and port. Read more
Source§async fn connect(
&mut self,
socket: Resource<UdpSocket>,
remote_address: p3_IpSocketAddress,
) -> P3SocketResult<()>
async fn connect( &mut self, socket: Resource<UdpSocket>, remote_address: p3_IpSocketAddress, ) -> P3SocketResult<()>
Associate this socket with a specific peer address. Read more
Source§fn create(
&mut self,
address_family: p3_IpAddressFamily,
) -> P3SocketResult<Resource<UdpSocket>>
fn create( &mut self, address_family: p3_IpAddressFamily, ) -> P3SocketResult<Resource<UdpSocket>>
Create a new UDP socket. Read more
Source§fn disconnect(&mut self, socket: Resource<UdpSocket>) -> P3SocketResult<()>
fn disconnect(&mut self, socket: Resource<UdpSocket>) -> P3SocketResult<()>
Dissociate this socket from its peer address. Read more
Source§fn get_local_address(
&mut self,
socket: Resource<UdpSocket>,
) -> P3SocketResult<p3_IpSocketAddress>
fn get_local_address( &mut self, socket: Resource<UdpSocket>, ) -> P3SocketResult<p3_IpSocketAddress>
Get the current bound address. Read more
Source§fn get_remote_address(
&mut self,
socket: Resource<UdpSocket>,
) -> P3SocketResult<p3_IpSocketAddress>
fn get_remote_address( &mut self, socket: Resource<UdpSocket>, ) -> P3SocketResult<p3_IpSocketAddress>
Get the address the socket is currently “connected” to. Read more
Source§fn get_address_family(
&mut self,
socket: Resource<UdpSocket>,
) -> Result<p3_IpAddressFamily>
fn get_address_family( &mut self, socket: Resource<UdpSocket>, ) -> Result<p3_IpAddressFamily>
Whether this is a IPv4 or IPv6 socket. Read more
Source§fn get_unicast_hop_limit(
&mut self,
socket: Resource<UdpSocket>,
) -> P3SocketResult<u8>
fn get_unicast_hop_limit( &mut self, socket: Resource<UdpSocket>, ) -> P3SocketResult<u8>
Equivalent to the IP_TTL & IPV6_UNICAST_HOPS socket options. Read more
fn set_unicast_hop_limit( &mut self, socket: Resource<UdpSocket>, value: u8, ) -> P3SocketResult<()>
Source§fn get_receive_buffer_size(
&mut self,
socket: Resource<UdpSocket>,
) -> P3SocketResult<u64>
fn get_receive_buffer_size( &mut self, socket: Resource<UdpSocket>, ) -> P3SocketResult<u64>
Kernel buffer space reserved for sending/receiving on this socket.
Implementations usually treat this as a cap the buffer can grow to,
rather than allocating the full amount immediately. Read more
fn set_receive_buffer_size( &mut self, socket: Resource<UdpSocket>, value: u64, ) -> P3SocketResult<()>
fn get_send_buffer_size( &mut self, socket: Resource<UdpSocket>, ) -> P3SocketResult<u64>
fn set_send_buffer_size( &mut self, socket: Resource<UdpSocket>, value: u64, ) -> P3SocketResult<()>
fn drop(&mut self, sock: Resource<UdpSocket>) -> Result<()>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for SpinSocketsView<'a, T>
impl<'a, T> !Sync for SpinSocketsView<'a, T>
impl<'a, T> !UnwindSafe for SpinSocketsView<'a, T>
impl<'a, T> Freeze for SpinSocketsView<'a, T>
impl<'a, T> Send for SpinSocketsView<'a, T>
impl<'a, T> Unpin for SpinSocketsView<'a, T>
impl<'a, T> UnsafeUnpin for SpinSocketsView<'a, T>
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request