Struct sandbox_ipc::NamedMessageChannel [−][src]
pub struct NamedMessageChannel<T, R> where
T: Serialize,
R: for<'de> Deserialize<'de>, { /* fields omitted */ }
A channel which can be established by sending an automatically generated unique name to another process.
Security
It depends by platforms, but generally at the very least any other process running under
the same user will be able to open this channel instead of the desired process. This method
is also not suitable for cooperative processes running with diminished permissions. It is best
to send channels to child processes at creation, and to negotiate any further channels over
those initial ones. The two sides of a PreMessageChannel
can be sent freely over a network
of parent-child channels if need be.
Methods
impl<T, R> NamedMessageChannel<T, R> where
T: Serialize,
R: for<'de> Deserialize<'de>,
[src]
impl<T, R> NamedMessageChannel<T, R> where
T: Serialize,
R: for<'de> Deserialize<'de>,
pub fn new(tokio_loop: &TokioHandle, max_message_size: usize) -> Result<Self>
[src]
pub fn new(tokio_loop: &TokioHandle, max_message_size: usize) -> Result<Self>
pub fn name(&self) -> &OsStr
[src]
pub fn name(&self) -> &OsStr
pub fn accept(self, timeout: Option<Duration>) -> Result<MessageChannel<T, R>>
[src]
pub fn accept(self, timeout: Option<Duration>) -> Result<MessageChannel<T, R>>
pub fn connect<N>(
name: N,
timeout: Option<Duration>,
tokio_loop: &TokioHandle,
max_message_size: usize
) -> Result<MessageChannel<T, R>> where
N: AsRef<OsStr>,
[src]
pub fn connect<N>(
name: N,
timeout: Option<Duration>,
tokio_loop: &TokioHandle,
max_message_size: usize
) -> Result<MessageChannel<T, R>> where
N: AsRef<OsStr>,
Auto Trait Implementations
impl<T, R> Send for NamedMessageChannel<T, R> where
R: Send,
T: Send,
impl<T, R> Send for NamedMessageChannel<T, R> where
R: Send,
T: Send,
impl<T, R> Sync for NamedMessageChannel<T, R> where
R: Sync,
T: Sync,
impl<T, R> Sync for NamedMessageChannel<T, R> where
R: Sync,
T: Sync,