FastlyObjectStore

Trait FastlyObjectStore 

Source
pub trait FastlyObjectStore {
    // Required methods
    fn open(
        &mut self,
        mem: &mut GuestMemory<'_>,
        name: GuestPtr<str>,
    ) -> Result<ObjectStoreHandle, Error>;
    fn lookup(
        &mut self,
        mem: &mut GuestMemory<'_>,
        store: ObjectStoreHandle,
        key: GuestPtr<str>,
        body_handle_out: GuestPtr<BodyHandle>,
    ) -> Result<(), Error>;
    fn lookup_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        store: ObjectStoreHandle,
        key: GuestPtr<str>,
        pending_handle_out: GuestPtr<PendingKvLookupHandle>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn pending_lookup_wait<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        pending_objstr_handle: PendingKvLookupHandle,
        body_handle_out: GuestPtr<BodyHandle>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn insert<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        store: ObjectStoreHandle,
        key: GuestPtr<str>,
        body_handle: BodyHandle,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn insert_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        store: ObjectStoreHandle,
        key: GuestPtr<str>,
        body_handle: BodyHandle,
        pending_handle_out: GuestPtr<PendingKvInsertHandle>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn pending_insert_wait<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        pending_objstr_handle: PendingKvInsertHandle,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        store: ObjectStoreHandle,
        key: GuestPtr<str>,
        pending_handle_out: GuestPtr<PendingKvDeleteHandle>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn pending_delete_wait<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        mem: &'life1 mut GuestMemory<'life2>,
        pending_objstr_handle: PendingKvDeleteHandle,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn open( &mut self, mem: &mut GuestMemory<'_>, name: GuestPtr<str>, ) -> Result<ObjectStoreHandle, Error>

Source

fn lookup( &mut self, mem: &mut GuestMemory<'_>, store: ObjectStoreHandle, key: GuestPtr<str>, body_handle_out: GuestPtr<BodyHandle>, ) -> Result<(), Error>

Source

fn lookup_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, store: ObjectStoreHandle, key: GuestPtr<str>, pending_handle_out: GuestPtr<PendingKvLookupHandle>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn pending_lookup_wait<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, pending_objstr_handle: PendingKvLookupHandle, body_handle_out: GuestPtr<BodyHandle>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn insert<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, store: ObjectStoreHandle, key: GuestPtr<str>, body_handle: BodyHandle, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn insert_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, store: ObjectStoreHandle, key: GuestPtr<str>, body_handle: BodyHandle, pending_handle_out: GuestPtr<PendingKvInsertHandle>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn pending_insert_wait<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, pending_objstr_handle: PendingKvInsertHandle, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, store: ObjectStoreHandle, key: GuestPtr<str>, pending_handle_out: GuestPtr<PendingKvDeleteHandle>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn pending_delete_wait<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, mem: &'life1 mut GuestMemory<'life2>, pending_objstr_handle: PendingKvDeleteHandle, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§