Trait audio_streams::shm_streams::SharedMemory
source · 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§
sourcefn anon(size: u64) -> Result<Self, Self::Error>where
Self: Sized,
fn anon(size: u64) -> Result<Self, Self::Error>where
Self: Sized,
Creates a new shared memory file descriptor without specifying a name.