pub fn new(capacity: usize) -> Result<Self, Error> {
        let inner = Inner::new::<T>(capacity)?;
        let ringbuf = unsafe { crate::ringbuf::Sender::attach(inner.mmap.as_mut_ptr(), inner.mmap.len())? };
        Ok(Self(inner, ringbuf))
    }
/// Sets up a new ringbuffer and returns the sender half.
Sets up a new ringbuffer and returns the sender half.
Sets up a new ringbuffer and returns the sender half .
pub fn new(capacity: usize) -> Result<Self, Error> {
        let inner = Inner::new::<T>(capacity)?;
        let ringbuf = unsafe { crate::ringbuf::Sender::attach(inner.mmap.as_mut_ptr(), inner.mmap.len())? };
        Ok(Self(inner, ringbuf))
    }
pub fn new ( capacity : usize ) -> Result < Self , Error > { let inner = Inner :: new :: < T > ( capacity ) ? ; let ringbuf = unsafe { crate :: ringbuf :: Sender :: attach ( inner . mmap . as_mut_ptr ( ) , inner . mmap . len ( ) ) ? } ; Ok ( Self ( inner , ringbuf ) ) }
Sets up a new ringbuffer and returns the sender half.
Sets up a new ringbuffer and returns the sender half .
capacity
usize
capacity
usize