pub trait SharedMemory {
    type Error: Error;

    // Required methods
    fn anon(size: u64) -> Result<Self, Self::Error>
       where Self: Sized;
    fn size(&self) -> u64;
    fn as_raw_fd(&self) -> RawFd;
}
Expand description

SharedMemory specifies features of shared memory areas passed on to ShmStreamSource.

Required Associated Types§

Required Methods§

source

fn anon(size: u64) -> Result<Self, Self::Error>
where Self: Sized,

Creates a new shared memory file descriptor without specifying a name.

source

fn size(&self) -> u64

Gets the size in bytes of the shared memory.

The size returned here does not reflect changes by other interfaces or users of the shared memory file descriptor..

source

fn as_raw_fd(&self) -> RawFd

Returns the underlying raw fd.

Implementors§