pub mod tst_tcp
pub mod tst_tcp::builder
pub struct tst_tcp::builder::TcpListenerBuilder
impl tst_tcp::builder::TcpListenerBuilder
pub fn tst_tcp::builder::TcpListenerBuilder::build(&self) -> core::result::Result<tst_tcp::listener::TcpListener, tst_tcp::error::TcpError>
pub fn tst_tcp::builder::TcpListenerBuilder::from_url(&str) -> core::result::Result<Self, tst_core::url::common::UrlError>
pub fn tst_tcp::builder::TcpListenerBuilder::nodelay(&mut self, bool) -> &mut Self
pub fn tst_tcp::builder::TcpListenerBuilder::pkt_size(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpListenerBuilder::rcvbuf(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpListenerBuilder::sndbuf(&mut self, usize) -> &mut Self
impl core::clone::Clone for tst_tcp::builder::TcpListenerBuilder
pub fn tst_tcp::builder::TcpListenerBuilder::clone(&self) -> tst_tcp::builder::TcpListenerBuilder
impl core::fmt::Debug for tst_tcp::builder::TcpListenerBuilder
pub fn tst_tcp::builder::TcpListenerBuilder::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::builder::TcpListenerBuilder
impl core::marker::Send for tst_tcp::builder::TcpListenerBuilder
impl core::marker::Sync for tst_tcp::builder::TcpListenerBuilder
impl core::marker::Unpin for tst_tcp::builder::TcpListenerBuilder
impl core::marker::UnsafeUnpin for tst_tcp::builder::TcpListenerBuilder
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::builder::TcpListenerBuilder
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::builder::TcpListenerBuilder
pub struct tst_tcp::builder::TcpTransportBuilder
impl tst_tcp::builder::TcpTransportBuilder
pub fn tst_tcp::builder::TcpTransportBuilder::build(&self) -> core::result::Result<tst_tcp::transport::TcpTransport, tst_tcp::error::TcpError>
pub fn tst_tcp::builder::TcpTransportBuilder::connect_timeout(&mut self, core::time::Duration) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::from_url(&str) -> core::result::Result<Self, tst_core::url::common::UrlError>
pub fn tst_tcp::builder::TcpTransportBuilder::keepalive(&mut self, core::time::Duration) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::nodelay(&mut self, bool) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::pkt_size(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::rcvbuf(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::sndbuf(&mut self, usize) -> &mut Self
impl core::clone::Clone for tst_tcp::builder::TcpTransportBuilder
pub fn tst_tcp::builder::TcpTransportBuilder::clone(&self) -> tst_tcp::builder::TcpTransportBuilder
impl core::fmt::Debug for tst_tcp::builder::TcpTransportBuilder
pub fn tst_tcp::builder::TcpTransportBuilder::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::builder::TcpTransportBuilder
impl core::marker::Send for tst_tcp::builder::TcpTransportBuilder
impl core::marker::Sync for tst_tcp::builder::TcpTransportBuilder
impl core::marker::Unpin for tst_tcp::builder::TcpTransportBuilder
impl core::marker::UnsafeUnpin for tst_tcp::builder::TcpTransportBuilder
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::builder::TcpTransportBuilder
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::builder::TcpTransportBuilder
pub mod tst_tcp::config
#[non_exhaustive] pub struct tst_tcp::config::TcpConfig
pub tst_tcp::config::TcpConfig::ca: core::option::Option<std::path::PathBuf>
pub tst_tcp::config::TcpConfig::cert: core::option::Option<std::path::PathBuf>
pub tst_tcp::config::TcpConfig::connect_timeout: core::option::Option<core::time::Duration>
pub tst_tcp::config::TcpConfig::keepalive: core::option::Option<core::time::Duration>
pub tst_tcp::config::TcpConfig::key: core::option::Option<std::path::PathBuf>
pub tst_tcp::config::TcpConfig::nodelay: core::option::Option<bool>
pub tst_tcp::config::TcpConfig::pkt_size: core::option::Option<usize>
pub tst_tcp::config::TcpConfig::rcvbuf: core::option::Option<usize>
pub tst_tcp::config::TcpConfig::sndbuf: core::option::Option<usize>
impl tst_tcp::config::TcpConfig
pub const tst_tcp::config::TcpConfig::DEFAULT_PKT_SIZE: usize
pub fn tst_tcp::config::TcpConfig::connect_timeout_or_default(&self) -> core::time::Duration
pub fn tst_tcp::config::TcpConfig::pkt_size_or_default(&self) -> usize
impl core::clone::Clone for tst_tcp::config::TcpConfig
pub fn tst_tcp::config::TcpConfig::clone(&self) -> tst_tcp::config::TcpConfig
impl core::default::Default for tst_tcp::config::TcpConfig
pub fn tst_tcp::config::TcpConfig::default() -> tst_tcp::config::TcpConfig
impl core::fmt::Debug for tst_tcp::config::TcpConfig
pub fn tst_tcp::config::TcpConfig::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::config::TcpConfig
impl core::marker::Send for tst_tcp::config::TcpConfig
impl core::marker::Sync for tst_tcp::config::TcpConfig
impl core::marker::Unpin for tst_tcp::config::TcpConfig
impl core::marker::UnsafeUnpin for tst_tcp::config::TcpConfig
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::config::TcpConfig
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::config::TcpConfig
pub type tst_tcp::config::SocketConfig = tst_tcp::config::TcpConfig
pub mod tst_tcp::error
#[non_exhaustive] pub enum tst_tcp::error::TcpError
pub tst_tcp::error::TcpError::Closed
pub tst_tcp::error::TcpError::ConnectTimeout
pub tst_tcp::error::TcpError::ConnectTimeout::seconds: u64
pub tst_tcp::error::TcpError::InvalidConfig(alloc::string::String)
pub tst_tcp::error::TcpError::Io(core::io::error::Error)
pub tst_tcp::error::TcpError::Tls(alloc::string::String)
pub tst_tcp::error::TcpError::TlsDisabled
pub tst_tcp::error::TcpError::Url(tst_core::url::common::UrlError)
impl core::convert::From<core::io::error::Error> for tst_tcp::error::TcpError
pub fn tst_tcp::error::TcpError::from(core::io::error::Error) -> Self
impl core::convert::From<tst_core::url::common::UrlError> for tst_tcp::error::TcpError
pub fn tst_tcp::error::TcpError::from(tst_core::url::common::UrlError) -> Self
impl core::convert::From<tst_tcp::error::TcpError> for tst_pipeline::binding::kind::BindingError
pub fn tst_pipeline::binding::kind::BindingError::from(tst_tcp::error::TcpError) -> Self
impl core::error::Error for tst_tcp::error::TcpError
pub fn tst_tcp::error::TcpError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
impl core::fmt::Debug for tst_tcp::error::TcpError
pub fn tst_tcp::error::TcpError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for tst_tcp::error::TcpError
pub fn tst_tcp::error::TcpError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::error::TcpError
impl core::marker::Send for tst_tcp::error::TcpError
impl core::marker::Sync for tst_tcp::error::TcpError
impl core::marker::Unpin for tst_tcp::error::TcpError
impl core::marker::UnsafeUnpin for tst_tcp::error::TcpError
impl !core::panic::unwind_safe::RefUnwindSafe for tst_tcp::error::TcpError
impl !core::panic::unwind_safe::UnwindSafe for tst_tcp::error::TcpError
pub mod tst_tcp::listener
pub struct tst_tcp::listener::TcpListener
impl tst_tcp::listener::TcpListener
pub fn tst_tcp::listener::TcpListener::accept_blocking(&self) -> core::result::Result<tst_tcp::transport::TcpTransport, tst_tcp::error::TcpError>
pub fn tst_tcp::listener::TcpListener::bind(core::net::socket_addr::SocketAddr) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::listener::TcpListener::cancel_handle(&self) -> tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::listener::TcpListener::close(&self)
pub fn tst_tcp::listener::TcpListener::config_mut(&mut self) -> &mut tst_tcp::config::TcpConfig
pub fn tst_tcp::listener::TcpListener::from_url(&str) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::listener::TcpListener::local_addr(&self) -> core::io::error::Result<core::net::socket_addr::SocketAddr>
impl core::marker::Freeze for tst_tcp::listener::TcpListener
impl core::marker::Send for tst_tcp::listener::TcpListener
impl core::marker::Sync for tst_tcp::listener::TcpListener
impl core::marker::Unpin for tst_tcp::listener::TcpListener
impl core::marker::UnsafeUnpin for tst_tcp::listener::TcpListener
impl !core::panic::unwind_safe::RefUnwindSafe for tst_tcp::listener::TcpListener
impl !core::panic::unwind_safe::UnwindSafe for tst_tcp::listener::TcpListener
pub mod tst_tcp::opener
pub fn tst_tcp::opener::open_recv(&str) -> core::result::Result<tst_pipeline::binding::opened::Opened<alloc::boxed::Box<dyn tst_core::transport::RecvTransport>>, tst_pipeline::binding::kind::BindingError>
pub fn tst_tcp::opener::open_sender(&str) -> core::result::Result<tst_pipeline::binding::opened::Opened<alloc::boxed::Box<dyn tst_core::transport::Transport>>, tst_pipeline::binding::kind::BindingError>
pub mod tst_tcp::stats
#[non_exhaustive] pub struct tst_tcp::stats::TcpStats
pub tst_tcp::stats::TcpStats::bytes_received: u64
pub tst_tcp::stats::TcpStats::bytes_sent: u64
pub tst_tcp::stats::TcpStats::recv_calls: u64
pub tst_tcp::stats::TcpStats::recv_errors: u64
pub tst_tcp::stats::TcpStats::send_calls: u64
pub tst_tcp::stats::TcpStats::send_errors: u64
impl tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::to_socket_stats(&self) -> tst_core::transport::SocketStats
impl core::clone::Clone for tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::clone(&self) -> tst_tcp::stats::TcpStats
impl core::default::Default for tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::default() -> tst_tcp::stats::TcpStats
impl core::fmt::Debug for tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for tst_tcp::stats::TcpStats
impl core::marker::Freeze for tst_tcp::stats::TcpStats
impl core::marker::Send for tst_tcp::stats::TcpStats
impl core::marker::Sync for tst_tcp::stats::TcpStats
impl core::marker::Unpin for tst_tcp::stats::TcpStats
impl core::marker::UnsafeUnpin for tst_tcp::stats::TcpStats
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::stats::TcpStats
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::stats::TcpStats
pub mod tst_tcp::tls
pub enum tst_tcp::tls::TlsStream
pub tst_tcp::tls::TlsStream::Client(rustls::stream::StreamOwned<rustls::client::client_conn::connection::ClientConnection, std::net::tcp::TcpStream>)
pub tst_tcp::tls::TlsStream::Server(rustls::stream::StreamOwned<rustls::server::server_conn::connection::ServerConnection, std::net::tcp::TcpStream>)
impl tst_tcp::tls::TlsStream
pub fn tst_tcp::tls::TlsStream::read(&mut self, &mut [u8]) -> core::io::error::Result<usize>
pub fn tst_tcp::tls::TlsStream::write(&mut self, &[u8]) -> core::io::error::Result<usize>
impl core::marker::Freeze for tst_tcp::tls::TlsStream
impl core::marker::Send for tst_tcp::tls::TlsStream
impl core::marker::Sync for tst_tcp::tls::TlsStream
impl core::marker::Unpin for tst_tcp::tls::TlsStream
impl core::marker::UnsafeUnpin for tst_tcp::tls::TlsStream
impl !core::panic::unwind_safe::RefUnwindSafe for tst_tcp::tls::TlsStream
impl !core::panic::unwind_safe::UnwindSafe for tst_tcp::tls::TlsStream
pub fn tst_tcp::tls::accept_tls(std::net::tcp::TcpStream, core::net::socket_addr::SocketAddr, &tst_tcp::config::TcpConfig, alloc::sync::Arc<rustls::server::server_conn::ServerConfig>) -> core::result::Result<tst_tcp::transport::TcpTransport, tst_tcp::error::TcpError>
pub fn tst_tcp::tls::connect_tls(&tst_tcp::url::TcpUrl, &tst_tcp::config::TcpConfig) -> core::result::Result<tst_tcp::transport::TcpTransport, tst_tcp::error::TcpError>
pub mod tst_tcp::transport
pub struct tst_tcp::transport::TcpCancelHandle
impl tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::cancel(&self)
pub fn tst_tcp::transport::TcpCancelHandle::is_cancelled(&self) -> bool
impl core::clone::Clone for tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::clone(&self) -> tst_tcp::transport::TcpCancelHandle
impl core::fmt::Debug for tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl tst_core::transport::TransportCancel for tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::cancel(&self)
pub fn tst_tcp::transport::TcpCancelHandle::is_cancelled(&self) -> bool
impl core::marker::Freeze for tst_tcp::transport::TcpCancelHandle
impl core::marker::Send for tst_tcp::transport::TcpCancelHandle
impl core::marker::Sync for tst_tcp::transport::TcpCancelHandle
impl core::marker::Unpin for tst_tcp::transport::TcpCancelHandle
impl core::marker::UnsafeUnpin for tst_tcp::transport::TcpCancelHandle
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::transport::TcpCancelHandle
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::transport::TcpCancelHandle
pub struct tst_tcp::transport::TcpTransport
impl tst_tcp::transport::TcpTransport
pub fn tst_tcp::transport::TcpTransport::cancel_handle(&self) -> tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpTransport::connect(&str) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::transport::TcpTransport::connect_with_config(&tst_tcp::url::TcpUrl, &tst_tcp::config::TcpConfig) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::transport::TcpTransport::peer(&self) -> core::net::socket_addr::SocketAddr
pub fn tst_tcp::transport::TcpTransport::stats(&self) -> tst_tcp::stats::TcpStats
impl tst_core::transport::RecvTransport for tst_tcp::transport::TcpTransport
pub fn tst_tcp::transport::TcpTransport::cancel_handle(&self) -> core::option::Option<alloc::sync::Arc<(dyn tst_core::transport::TransportCancel + core::marker::Send + core::marker::Sync)>>
pub fn tst_tcp::transport::TcpTransport::close(&mut self)
pub fn tst_tcp::transport::TcpTransport::end_reason_handle(&self) -> core::option::Option<tst_core::transport::EndReasonHandle>
pub fn tst_tcp::transport::TcpTransport::is_alive(&self) -> bool
pub fn tst_tcp::transport::TcpTransport::max_payload(&self) -> usize
pub fn tst_tcp::transport::TcpTransport::recv_bytes(&mut self, &mut [u8]) -> core::result::Result<usize, tst_core::transport::TransportError>
pub fn tst_tcp::transport::TcpTransport::socket_stats(&self) -> core::option::Option<tst_core::transport::SocketStats>
impl tst_core::transport::Transport for tst_tcp::transport::TcpTransport
pub fn tst_tcp::transport::TcpTransport::cancel_handle(&self) -> core::option::Option<alloc::sync::Arc<(dyn tst_core::transport::TransportCancel + core::marker::Send + core::marker::Sync)>>
pub fn tst_tcp::transport::TcpTransport::close(&mut self)
pub fn tst_tcp::transport::TcpTransport::is_alive(&self) -> bool
pub fn tst_tcp::transport::TcpTransport::max_payload(&self) -> usize
pub fn tst_tcp::transport::TcpTransport::send_bytes(&mut self, &[u8]) -> core::result::Result<(), tst_core::transport::TransportError>
pub fn tst_tcp::transport::TcpTransport::socket_stats(&self) -> core::option::Option<tst_core::transport::SocketStats>
impl core::marker::Freeze for tst_tcp::transport::TcpTransport
impl core::marker::Send for tst_tcp::transport::TcpTransport
impl core::marker::Sync for tst_tcp::transport::TcpTransport
impl core::marker::Unpin for tst_tcp::transport::TcpTransport
impl core::marker::UnsafeUnpin for tst_tcp::transport::TcpTransport
impl !core::panic::unwind_safe::RefUnwindSafe for tst_tcp::transport::TcpTransport
impl !core::panic::unwind_safe::UnwindSafe for tst_tcp::transport::TcpTransport
pub mod tst_tcp::url
pub struct tst_tcp::url::TcpUrl
pub tst_tcp::url::TcpUrl::config: tst_tcp::config::TcpConfig
pub tst_tcp::url::TcpUrl::host: alloc::string::String
pub tst_tcp::url::TcpUrl::listen: bool
pub tst_tcp::url::TcpUrl::port: u16
pub tst_tcp::url::TcpUrl::tls: bool
impl tst_tcp::url::TcpUrl
pub fn tst_tcp::url::TcpUrl::parse(&str) -> core::result::Result<Self, tst_core::url::common::UrlError>
impl core::clone::Clone for tst_tcp::url::TcpUrl
pub fn tst_tcp::url::TcpUrl::clone(&self) -> tst_tcp::url::TcpUrl
impl core::fmt::Debug for tst_tcp::url::TcpUrl
pub fn tst_tcp::url::TcpUrl::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::url::TcpUrl
impl core::marker::Send for tst_tcp::url::TcpUrl
impl core::marker::Sync for tst_tcp::url::TcpUrl
impl core::marker::Unpin for tst_tcp::url::TcpUrl
impl core::marker::UnsafeUnpin for tst_tcp::url::TcpUrl
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::url::TcpUrl
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::url::TcpUrl
pub struct tst_tcp::TcpCancelHandle
impl tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::cancel(&self)
pub fn tst_tcp::transport::TcpCancelHandle::is_cancelled(&self) -> bool
impl core::clone::Clone for tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::clone(&self) -> tst_tcp::transport::TcpCancelHandle
impl core::fmt::Debug for tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl tst_core::transport::TransportCancel for tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpCancelHandle::cancel(&self)
pub fn tst_tcp::transport::TcpCancelHandle::is_cancelled(&self) -> bool
impl core::marker::Freeze for tst_tcp::transport::TcpCancelHandle
impl core::marker::Send for tst_tcp::transport::TcpCancelHandle
impl core::marker::Sync for tst_tcp::transport::TcpCancelHandle
impl core::marker::Unpin for tst_tcp::transport::TcpCancelHandle
impl core::marker::UnsafeUnpin for tst_tcp::transport::TcpCancelHandle
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::transport::TcpCancelHandle
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::transport::TcpCancelHandle
#[non_exhaustive] pub struct tst_tcp::TcpConfig
pub tst_tcp::TcpConfig::ca: core::option::Option<std::path::PathBuf>
pub tst_tcp::TcpConfig::cert: core::option::Option<std::path::PathBuf>
pub tst_tcp::TcpConfig::connect_timeout: core::option::Option<core::time::Duration>
pub tst_tcp::TcpConfig::keepalive: core::option::Option<core::time::Duration>
pub tst_tcp::TcpConfig::key: core::option::Option<std::path::PathBuf>
pub tst_tcp::TcpConfig::nodelay: core::option::Option<bool>
pub tst_tcp::TcpConfig::pkt_size: core::option::Option<usize>
pub tst_tcp::TcpConfig::rcvbuf: core::option::Option<usize>
pub tst_tcp::TcpConfig::sndbuf: core::option::Option<usize>
impl tst_tcp::config::TcpConfig
pub const tst_tcp::config::TcpConfig::DEFAULT_PKT_SIZE: usize
pub fn tst_tcp::config::TcpConfig::connect_timeout_or_default(&self) -> core::time::Duration
pub fn tst_tcp::config::TcpConfig::pkt_size_or_default(&self) -> usize
impl core::clone::Clone for tst_tcp::config::TcpConfig
pub fn tst_tcp::config::TcpConfig::clone(&self) -> tst_tcp::config::TcpConfig
impl core::default::Default for tst_tcp::config::TcpConfig
pub fn tst_tcp::config::TcpConfig::default() -> tst_tcp::config::TcpConfig
impl core::fmt::Debug for tst_tcp::config::TcpConfig
pub fn tst_tcp::config::TcpConfig::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::config::TcpConfig
impl core::marker::Send for tst_tcp::config::TcpConfig
impl core::marker::Sync for tst_tcp::config::TcpConfig
impl core::marker::Unpin for tst_tcp::config::TcpConfig
impl core::marker::UnsafeUnpin for tst_tcp::config::TcpConfig
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::config::TcpConfig
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::config::TcpConfig
pub struct tst_tcp::TcpListener
impl tst_tcp::listener::TcpListener
pub fn tst_tcp::listener::TcpListener::accept_blocking(&self) -> core::result::Result<tst_tcp::transport::TcpTransport, tst_tcp::error::TcpError>
pub fn tst_tcp::listener::TcpListener::bind(core::net::socket_addr::SocketAddr) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::listener::TcpListener::cancel_handle(&self) -> tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::listener::TcpListener::close(&self)
pub fn tst_tcp::listener::TcpListener::config_mut(&mut self) -> &mut tst_tcp::config::TcpConfig
pub fn tst_tcp::listener::TcpListener::from_url(&str) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::listener::TcpListener::local_addr(&self) -> core::io::error::Result<core::net::socket_addr::SocketAddr>
impl core::marker::Freeze for tst_tcp::listener::TcpListener
impl core::marker::Send for tst_tcp::listener::TcpListener
impl core::marker::Sync for tst_tcp::listener::TcpListener
impl core::marker::Unpin for tst_tcp::listener::TcpListener
impl core::marker::UnsafeUnpin for tst_tcp::listener::TcpListener
impl !core::panic::unwind_safe::RefUnwindSafe for tst_tcp::listener::TcpListener
impl !core::panic::unwind_safe::UnwindSafe for tst_tcp::listener::TcpListener
pub struct tst_tcp::TcpListenerBuilder
impl tst_tcp::builder::TcpListenerBuilder
pub fn tst_tcp::builder::TcpListenerBuilder::build(&self) -> core::result::Result<tst_tcp::listener::TcpListener, tst_tcp::error::TcpError>
pub fn tst_tcp::builder::TcpListenerBuilder::from_url(&str) -> core::result::Result<Self, tst_core::url::common::UrlError>
pub fn tst_tcp::builder::TcpListenerBuilder::nodelay(&mut self, bool) -> &mut Self
pub fn tst_tcp::builder::TcpListenerBuilder::pkt_size(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpListenerBuilder::rcvbuf(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpListenerBuilder::sndbuf(&mut self, usize) -> &mut Self
impl core::clone::Clone for tst_tcp::builder::TcpListenerBuilder
pub fn tst_tcp::builder::TcpListenerBuilder::clone(&self) -> tst_tcp::builder::TcpListenerBuilder
impl core::fmt::Debug for tst_tcp::builder::TcpListenerBuilder
pub fn tst_tcp::builder::TcpListenerBuilder::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::builder::TcpListenerBuilder
impl core::marker::Send for tst_tcp::builder::TcpListenerBuilder
impl core::marker::Sync for tst_tcp::builder::TcpListenerBuilder
impl core::marker::Unpin for tst_tcp::builder::TcpListenerBuilder
impl core::marker::UnsafeUnpin for tst_tcp::builder::TcpListenerBuilder
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::builder::TcpListenerBuilder
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::builder::TcpListenerBuilder
#[non_exhaustive] pub struct tst_tcp::TcpStats
pub tst_tcp::TcpStats::bytes_received: u64
pub tst_tcp::TcpStats::bytes_sent: u64
pub tst_tcp::TcpStats::recv_calls: u64
pub tst_tcp::TcpStats::recv_errors: u64
pub tst_tcp::TcpStats::send_calls: u64
pub tst_tcp::TcpStats::send_errors: u64
impl tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::to_socket_stats(&self) -> tst_core::transport::SocketStats
impl core::clone::Clone for tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::clone(&self) -> tst_tcp::stats::TcpStats
impl core::default::Default for tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::default() -> tst_tcp::stats::TcpStats
impl core::fmt::Debug for tst_tcp::stats::TcpStats
pub fn tst_tcp::stats::TcpStats::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Copy for tst_tcp::stats::TcpStats
impl core::marker::Freeze for tst_tcp::stats::TcpStats
impl core::marker::Send for tst_tcp::stats::TcpStats
impl core::marker::Sync for tst_tcp::stats::TcpStats
impl core::marker::Unpin for tst_tcp::stats::TcpStats
impl core::marker::UnsafeUnpin for tst_tcp::stats::TcpStats
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::stats::TcpStats
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::stats::TcpStats
pub struct tst_tcp::TcpTransport
impl tst_tcp::transport::TcpTransport
pub fn tst_tcp::transport::TcpTransport::cancel_handle(&self) -> tst_tcp::transport::TcpCancelHandle
pub fn tst_tcp::transport::TcpTransport::connect(&str) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::transport::TcpTransport::connect_with_config(&tst_tcp::url::TcpUrl, &tst_tcp::config::TcpConfig) -> core::result::Result<Self, tst_tcp::error::TcpError>
pub fn tst_tcp::transport::TcpTransport::peer(&self) -> core::net::socket_addr::SocketAddr
pub fn tst_tcp::transport::TcpTransport::stats(&self) -> tst_tcp::stats::TcpStats
impl tst_core::transport::RecvTransport for tst_tcp::transport::TcpTransport
pub fn tst_tcp::transport::TcpTransport::cancel_handle(&self) -> core::option::Option<alloc::sync::Arc<(dyn tst_core::transport::TransportCancel + core::marker::Send + core::marker::Sync)>>
pub fn tst_tcp::transport::TcpTransport::close(&mut self)
pub fn tst_tcp::transport::TcpTransport::end_reason_handle(&self) -> core::option::Option<tst_core::transport::EndReasonHandle>
pub fn tst_tcp::transport::TcpTransport::is_alive(&self) -> bool
pub fn tst_tcp::transport::TcpTransport::max_payload(&self) -> usize
pub fn tst_tcp::transport::TcpTransport::recv_bytes(&mut self, &mut [u8]) -> core::result::Result<usize, tst_core::transport::TransportError>
pub fn tst_tcp::transport::TcpTransport::socket_stats(&self) -> core::option::Option<tst_core::transport::SocketStats>
impl tst_core::transport::Transport for tst_tcp::transport::TcpTransport
pub fn tst_tcp::transport::TcpTransport::cancel_handle(&self) -> core::option::Option<alloc::sync::Arc<(dyn tst_core::transport::TransportCancel + core::marker::Send + core::marker::Sync)>>
pub fn tst_tcp::transport::TcpTransport::close(&mut self)
pub fn tst_tcp::transport::TcpTransport::is_alive(&self) -> bool
pub fn tst_tcp::transport::TcpTransport::max_payload(&self) -> usize
pub fn tst_tcp::transport::TcpTransport::send_bytes(&mut self, &[u8]) -> core::result::Result<(), tst_core::transport::TransportError>
pub fn tst_tcp::transport::TcpTransport::socket_stats(&self) -> core::option::Option<tst_core::transport::SocketStats>
impl core::marker::Freeze for tst_tcp::transport::TcpTransport
impl core::marker::Send for tst_tcp::transport::TcpTransport
impl core::marker::Sync for tst_tcp::transport::TcpTransport
impl core::marker::Unpin for tst_tcp::transport::TcpTransport
impl core::marker::UnsafeUnpin for tst_tcp::transport::TcpTransport
impl !core::panic::unwind_safe::RefUnwindSafe for tst_tcp::transport::TcpTransport
impl !core::panic::unwind_safe::UnwindSafe for tst_tcp::transport::TcpTransport
pub struct tst_tcp::TcpTransportBuilder
impl tst_tcp::builder::TcpTransportBuilder
pub fn tst_tcp::builder::TcpTransportBuilder::build(&self) -> core::result::Result<tst_tcp::transport::TcpTransport, tst_tcp::error::TcpError>
pub fn tst_tcp::builder::TcpTransportBuilder::connect_timeout(&mut self, core::time::Duration) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::from_url(&str) -> core::result::Result<Self, tst_core::url::common::UrlError>
pub fn tst_tcp::builder::TcpTransportBuilder::keepalive(&mut self, core::time::Duration) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::nodelay(&mut self, bool) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::pkt_size(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::rcvbuf(&mut self, usize) -> &mut Self
pub fn tst_tcp::builder::TcpTransportBuilder::sndbuf(&mut self, usize) -> &mut Self
impl core::clone::Clone for tst_tcp::builder::TcpTransportBuilder
pub fn tst_tcp::builder::TcpTransportBuilder::clone(&self) -> tst_tcp::builder::TcpTransportBuilder
impl core::fmt::Debug for tst_tcp::builder::TcpTransportBuilder
pub fn tst_tcp::builder::TcpTransportBuilder::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::marker::Freeze for tst_tcp::builder::TcpTransportBuilder
impl core::marker::Send for tst_tcp::builder::TcpTransportBuilder
impl core::marker::Sync for tst_tcp::builder::TcpTransportBuilder
impl core::marker::Unpin for tst_tcp::builder::TcpTransportBuilder
impl core::marker::UnsafeUnpin for tst_tcp::builder::TcpTransportBuilder
impl core::panic::unwind_safe::RefUnwindSafe for tst_tcp::builder::TcpTransportBuilder
impl core::panic::unwind_safe::UnwindSafe for tst_tcp::builder::TcpTransportBuilder
pub type tst_tcp::SocketConfig = tst_tcp::config::TcpConfig
