Struct sandbox_ipc::PreRawMessageChannel[][src]

pub struct PreRawMessageChannel(_);

A sendable handle for establishing RawMessageChannels with processes you can already communicate with.

PreRawMessageChannels are created in pairs, and then can be freely sent along any IPC method in this crate capable of transmitting OS resources. When they reach their destination they can be converted into RawMessageChannels.

Methods

impl PreRawMessageChannel
[src]

Creates a RawMessageChannel from a transmitted pre-channel and a remote process handle.

Security

You should only allow more trusted processes to hold unsealed channels to less trusted processes. On some platforms unsealed channels allow the holder to interfere with the other process.

Using an incorrect remote process handle may cause this function to fail or transmission of OS resources (files, sockets, etc.) accross the channel to fail.

Creates a sealed RawMessageChannel from a transmitted pre-channel.

Sealed channels cannot transmit OS resources (files, sockets, etc.) but can still transmit data (they may receive OS resources if the other side is unsealed). It is recommended that you use a sealed channel handle when communicating from the less trusted side of a channel.

Trait Implementations

impl Debug for PreRawMessageChannel
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations