usezerocopy::{AsBytes, FromBytes};/// Controls how a memory region can be accessed.
/// See the implementation details of `ShObj` under *nix and Windows
/// for hints on how this can backfire.
pubtraitShMemOps<T>
where
T: AsBytes + FromBytes + Default,
{/// Gets a reference to the shared memory region data.
/// # Returns
/// Immutable reference.
unsafefnget_t(&self)->&T;/// Gets a mutable reference to the shared memory region data.
/// # Returns
/// Mutable reference.
unsafefnget_t_mut(&mutself)->&mut T;}