pub fn new(global_context: &SignalContext) -> Option<Self> {
        let mut ctxt: StoreContextPtr = null_mut();
        if unsafe { signal_protocol_store_context_create(&mut ctxt, global_context.native()) } == 0
        {
            return Some(StoreContext { native: ctxt });
        } else {
            debug!("Error in signal_context_create");
        }

        None
    }
// Creates a new store context, or return None if that failed.
Creates a new store context, or return None if that failed.
Creates a new store context or return None if that failed .
pub fn new(global_context: &SignalContext) -> Option<Self> {
        let mut ctxt: StoreContextPtr = null_mut();
        if unsafe { signal_protocol_store_context_create(&mut ctxt, global_context.native()) } == 0
        {
            return Some(StoreContext { native: ctxt });
        } else {
            debug!("Error in signal_context_create");
        }
        None
    }
pub fn new ( global_context : & SignalContext ) -> Option < Self > { let mut ctxt : StoreContextPtr = null_mut ( ) ; if unsafe { signal_protocol_store_context_create ( & mut ctxt , global_context . native ( ) ) } == 0 { return Some ( StoreContext { native : ctxt } ) ; } else { debug ! ( " " ) ; } None }
Creates a new store context, or return None if that failed.
Creates a new store context or return None if that failed .
global_context
&SignalContext
global_context
&SignalContext