pub fn seal(&mut self) -> Result<(), PlasmaError> {
        let status = plasma::seal(self.pc.as_ref().unwrap(), self.id.inner());
        match status.code {
            plasma::StatusCode::OK => {
                self.is_mutable = false;
                Ok(())
            }
            plasma::StatusCode::TypeError => Err(PlasmaError::AlreadySealed),
            _ => Err(PlasmaError::UnknownError(status.msg)),
        }
    }
/// Seals an object in the object store. The object will be immutable after this call.
Seals an object in the object store. The object will be immutable after this call.
Seals an object in the object store . The object will be immutable after this call .
pub fn seal(&mut self) -> Result<(), PlasmaError> {
        let status = plasma::seal(self.pc.as_ref().unwrap(), self.id.inner());
        match status.code {
            plasma::StatusCode::OK => {
                self.is_mutable = false;
                Ok(())
            }
            plasma::StatusCode::TypeError => Err(PlasmaError::AlreadySealed),
            _ => Err(PlasmaError::UnknownError(status.msg)),
        }
    }
pub fn seal ( & mut self ) -> Result < ( ) , PlasmaError > { let status = plasma :: seal ( self . pc . as_ref ( ) . unwrap ( ) , self . id . inner ( ) ) ; match status . code { plasma :: StatusCode :: OK => { self . is_mutable = false ; Ok ( ( ) ) } plasma :: StatusCode :: TypeError => Err ( PlasmaError :: AlreadySealed ) , _ => Err ( PlasmaError :: UnknownError ( status . msg ) ) , } }
Seals an object in the object store.
Seals an object in the object store .
&mut self
&mut self