Trait IpcSafe

Source
pub unsafe trait IpcSafe { }
Expand description

An object is Sendable if it is guaranteed to be flat and contains no pointers. This trait can be placed on objects that have invalid representations such as bools (which can only be 0 or 1) but it is up to the implementer to ensure that the correct object arrives on the other side.

Implementations on Foreign Types§

Source§

impl IpcSafe for bool

Source§

impl IpcSafe for char

Source§

impl IpcSafe for f32

Source§

impl IpcSafe for f64

Source§

impl IpcSafe for i8

Source§

impl IpcSafe for i16

Source§

impl IpcSafe for i32

Source§

impl IpcSafe for i64

Source§

impl IpcSafe for i128

Source§

impl IpcSafe for isize

Source§

impl IpcSafe for u8

Source§

impl IpcSafe for u16

Source§

impl IpcSafe for u32

Source§

impl IpcSafe for u64

Source§

impl IpcSafe for u128

Source§

impl IpcSafe for usize

Source§

impl<T> IpcSafe for Option<T>
where T: IpcSafe,

Source§

impl<T, E> IpcSafe for Result<T, E>
where T: IpcSafe, E: IpcSafe,

Source§

impl<T, const N: usize> IpcSafe for [T; N]
where T: IpcSafe,

Implementors§

Source§

impl<T, const N: usize> IpcSafe for Vec<T, N>

Source§

impl<const N: usize> IpcSafe for String<N>