Struct sandbox_ipc::io::SendableSocket [−][src]
pub struct SendableSocket<S>(pub S);
Wraps normal sockets types (e.g. std::net::TcpStream
) so they may be transmitted to
other processes.
Windows
Windows file/pipe handles or sockets that have been associated with an IOCP cannot be
sent to other processes. Tokio is backed by an IOCP on Windows, so Tokio sockets may
not be sent. Do note however that Tokio sockets allow you to accept
standard blocking
sockets, which will be elligible for transmission to other processes, where they can
be added to a Tokio event loop.
Trait Implementations
impl<S: Debug> Debug for SendableSocket<S>
[src]
impl<S: Debug> Debug for SendableSocket<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<B> Serialize for SendableSocket<B> where
B: AsRawFd,
[src]
impl<B> Serialize for SendableSocket<B> where
B: AsRawFd,
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de, B> Deserialize<'de> for SendableSocket<B> where
B: FromRawFd,
[src]
impl<'de, B> Deserialize<'de> for SendableSocket<B> where
B: FromRawFd,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<S> Send for SendableSocket<S> where
S: Send,
impl<S> Send for SendableSocket<S> where
S: Send,
impl<S> Sync for SendableSocket<S> where
S: Sync,
impl<S> Sync for SendableSocket<S> where
S: Sync,