pub fn create(
        &self,
        oid: ObjectId,
        data_size: usize,
        meta: &[u8],
    ) -> Result<ObjectBuffer, PlasmaError> {
        let mut ob = plasma::new_obj_buffer();
        let status = plasma::create(
            self.client_ptr.as_ref().unwrap(),
            ob.pin_mut(),
            oid.inner(),
            data_size as i64,
            meta,
        );
        match status.code {
            plasma::StatusCode::OK => Ok(ObjectBuffer::new(oid, &self.client_ptr, ob, true)),
            plasma::StatusCode::AlreadyExists => Err(PlasmaError::AlreadyExists),
            _ => Err(PlasmaError::UnknownError(status.msg)),
        }
    }
/// Creates an object in the Plasma Store. Any metadata for this object must be
/// passed in when the object is created.
/// * `oid` The ID to use for the newly crated object.
/// * `data_size` The size in bytes of the space to be allocated for this object's data
///     (this does not included space used for metadata).
/// * `meta` The object's metadata; if there is no metadata, this should be an empty slice.
///
/// The returned object must be either sealed or aborted when done with.
Creates an object in the Plasma Store. Any metadata for this object must be
passed in when the object is created.
`oid` The ID to use for the newly crated object.
`data_size` The size in bytes of the space to be allocated for this object's data
(this does not included space used for metadata).
`meta` The object's metadata; if there is no metadata, this should be an empty slice.

The returned object must be either sealed or aborted when done with.
Creates an object in the Plasma Store . Any metadata for this object must be passed in when the object is created . ` oid ` The ID to use for the newly crated object . ` data_size ` The size in bytes of the space to be allocated for this object ' s data ( this does not included space used for metadata ) . ` meta ` The object ' s metadata ; if there is no metadata this should be an empty slice . The returned object must be either sealed or aborted when done with .
pub fn create(
        &self,
        oid: ObjectId,
        data_size: usize,
        meta: &[u8],
    ) -> Result<ObjectBuffer, PlasmaError> {
        let mut ob = plasma::new_obj_buffer();
        let status = plasma::create(
            self.client_ptr.as_ref().unwrap(),
            ob.pin_mut(),
            oid.inner(),
            data_size as i64,
            meta,
        );
        match status.code {
            plasma::StatusCode::OK => Ok(ObjectBuffer::new(oid, &self.client_ptr, ob, true)),
            plasma::StatusCode::AlreadyExists => Err(PlasmaError::AlreadyExists),
            _ => Err(PlasmaError::UnknownError(status.msg)),
        }
    }
pub fn create ( & self , oid : ObjectId , data_size : usize , meta : & [ u8 ] , ) -> Result < ObjectBuffer , PlasmaError > { let mut ob = plasma :: new_obj_buffer ( ) ; let status = plasma :: create ( self . client_ptr . as_ref ( ) . unwrap ( ) , ob . pin_mut ( ) , oid . inner ( ) , data_size as i64 , meta , ) ; match status . code { plasma :: StatusCode :: OK => Ok ( ObjectBuffer :: new ( oid , & self . client_ptr , ob , true ) ) , plasma :: StatusCode :: AlreadyExists => Err ( PlasmaError :: AlreadyExists ) , _ => Err ( PlasmaError :: UnknownError ( status . msg ) ) , } }
Creates an object in the Plasma Store.
Creates an object in the Plasma Store .
&self
oid
ObjectId
data_size
usize
meta
&[u8]
&self
oid
ObjectId
data_size
usize
meta
&[u8]