pub fn open(capacity: usize, memfd: File, empty_signal: File, full_signal: File) -> Result<Self, Error> {
        let inner = Inner::open::<T>(capacity, memfd, empty_signal, full_signal)?;
        let ringbuf = unsafe { crate::ringbuf::Receiver::attach(inner.mmap.as_mut_ptr(), inner.mmap.len())? };
        Ok(Self(inner, ringbuf))
    }
/// Attaches to a ringbuffer set up by the sending side.
Attaches to a ringbuffer set up by the sending side.
Attaches to a ringbuffer set up by the sending side .
pub fn open(capacity: usize, memfd: File, empty_signal: File, full_signal: File) -> Result<Self, Error> {
        let inner = Inner::open::<T>(capacity, memfd, empty_signal, full_signal)?;
        let ringbuf = unsafe { crate::ringbuf::Receiver::attach(inner.mmap.as_mut_ptr(), inner.mmap.len())? };
        Ok(Self(inner, ringbuf))
    }
pub fn open ( capacity : usize , memfd : File , empty_signal : File , full_signal : File ) -> Result < Self , Error > { let inner = Inner :: open :: < T > ( capacity , memfd , empty_signal , full_signal ) ? ; let ringbuf = unsafe { crate :: ringbuf :: Receiver :: attach ( inner . mmap . as_mut_ptr ( ) , inner . mmap . len ( ) ) ? } ; Ok ( Self ( inner , ringbuf ) ) }
Attaches to a ringbuffer set up by the sending side.
Attaches to a ringbuffer set up by the sending side .
capacity
usize
memfd
File
empty_signal
File
full_signal
File
capacity
usize
memfd
File
empty_signal
File
full_signal
File