pub fn put_direct(&mut self, key: &str, direct_buffer: &DirectMemory) -> Result<(), Status> {
        let (_key, key_cstr) = c_convert(key);
        let rc = unsafe {
            mcas_put_direct_ex(
                self.pool,
                key_cstr,
                direct_buffer.ptr,
                direct_buffer.size,
                direct_buffer.handle,
                0,
            )
        };

        if rc != 0 {
            return Err(rc);
        }
        Ok(())
    }
/// Put a key-value pair into pool using direct memory
///
/// # Examples
///
/// ```ignore
/// let m = session.allocate_direct_memory(1024);
/// pool.put_direct("mykey", m).expect("put failed");
/// ```    
Put a key-value pair into pool using direct memory
Put a key - value pair into pool using direct memory
pub fn put_direct(&mut self, key: &str, direct_buffer: &DirectMemory) -> Result<(), Status> {
        let (_key, key_cstr) = c_convert(key);
        let rc = unsafe {
            mcas_put_direct_ex(
                self.pool,
                key_cstr,
                direct_buffer.ptr,
                direct_buffer.size,
                direct_buffer.handle,
                0,
            )
        };
        if rc != 0 {
            return Err(rc);
        }
        Ok(())
    }
pub fn put_direct ( & mut self , key : & str , direct_buffer : & DirectMemory ) -> Result < ( ) , Status > { let ( _key , key_cstr ) = c_convert ( key ) ; let rc = unsafe { mcas_put_direct_ex ( self . pool , key_cstr , direct_buffer . ptr , direct_buffer . size , direct_buffer . handle , 0 , ) } ; if rc != 0 { return Err ( rc ) ; } Ok ( ( ) ) }
Put a key-value pair into pool using direct memory
Put a key - value pair into pool using direct memory
&mut self
key
&str
direct_buffer
&DirectMemory
examples
```ignore
let m = session.allocate_direct_memory(1024);
pool.put_direct("mykey", m).expect("put failed");
```
` ` ` ignore let m = session . allocate_direct_memory ( 1024 ) ; pool . put_direct ( " mykey " m ) . expect ( " put failed " ) ; ` ` `