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]

Formats the value using the given formatter. Read more

impl<B> Serialize for SendableSocket<B> where
    B: AsRawFd
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de, B> Deserialize<'de> for SendableSocket<B> where
    B: FromRawFd
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl<S> Send for SendableSocket<S> where
    S: Send

impl<S> Sync for SendableSocket<S> where
    S: Sync