Home
runx-runtime

runx_runtime::receipts::store

Structs §

LocalReceiptStore §

pub struct runx_runtime::receipts::store::LocalReceiptStore { /* ... */ }

Implementations §

impl LocalReceiptStore

new

fn new(root: impl Into<PathBuf>) -> Self
#[must_use]

root

fn root(self: &Self) -> &Path
#[must_use]

public_projection

fn public_projection( self: &Self, workspace_base: &Path, project_runx_dir: &Path ) -> ReceiptStorePublicProjection
#[must_use]

read_exact

fn read_exact(self: &Self, receipt_id: &str) -> Result<Receipt, ReceiptStoreError>

read_exact_with_policy

fn read_exact_with_policy( self: &Self, receipt_id: &str, signature_policy: RuntimeReceiptSignaturePolicy<'_> ) -> Result<Receipt, ReceiptStoreError>

write_receipt

fn write_receipt(self: &Self, receipt: &Receipt) -> Result<(), ReceiptStoreError>

write_receipt_with_policy

fn write_receipt_with_policy( self: &Self, receipt: &Receipt, signature_policy: RuntimeReceiptSignaturePolicy<'_> ) -> Result<(), ReceiptStoreError>

list

fn list(self: &Self) -> Result<Vec<Receipt>, ReceiptStoreError>

list_with_policy

fn list_with_policy( self: &Self, signature_policy: RuntimeReceiptSignaturePolicy<'_> ) -> Result<Vec<Receipt>, ReceiptStoreError>

load_index

fn load_index(self: &Self) -> Result<ReceiptStoreIndex, ReceiptStoreError>

load_index_with_policy

fn load_index_with_policy( self: &Self, signature_policy: RuntimeReceiptSignaturePolicy<'_> ) -> Result<ReceiptStoreIndex, ReceiptStoreError>

rebuild_index

fn rebuild_index(self: &Self) -> Result<ReceiptStoreIndex, ReceiptStoreError>

rebuild_index_with_policy

fn rebuild_index_with_policy( self: &Self, signature_policy: RuntimeReceiptSignaturePolicy<'_> ) -> Result<ReceiptStoreIndex, ReceiptStoreError>

Trait Implementations §

impl Borrow for LocalReceiptStore

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for LocalReceiptStore

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for LocalReceiptStore

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for LocalReceiptStore

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for LocalReceiptStore

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for LocalReceiptStore

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for LocalReceiptStore

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for LocalReceiptStore

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for LocalReceiptStore

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for LocalReceiptStore

Output

impl Clone for LocalReceiptStore

clone

fn clone(self: &Self) -> LocalReceiptStore

impl Debug for LocalReceiptStore

impl Send for LocalReceiptStore

impl Sync for LocalReceiptStore

impl Freeze for LocalReceiptStore

impl UnsafeUnpin for LocalReceiptStore

impl Unpin for LocalReceiptStore

impl UnwindSafe for LocalReceiptStore

impl RefUnwindSafe for LocalReceiptStore

ReceiptStoreIndex §

pub struct runx_runtime::receipts::store::ReceiptStoreIndex { /* ... */ }

Trait Implementations §

impl Borrow for ReceiptStoreIndex

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ReceiptStoreIndex

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ReceiptStoreIndex

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ReceiptStoreIndex

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ReceiptStoreIndex

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ReceiptStoreIndex

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ReceiptStoreIndex

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ReceiptStoreIndex

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ReceiptStoreIndex

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ReceiptStoreIndex

Output

impl Equivalent for ReceiptStoreIndex

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for ReceiptStoreIndex

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for ReceiptStoreIndex

clone

fn clone(self: &Self) -> ReceiptStoreIndex

impl Debug for ReceiptStoreIndex

impl PartialEq for ReceiptStoreIndex

eq

fn eq(self: &Self, other: &ReceiptStoreIndex) -> bool

impl Serialize for ReceiptStoreIndex

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for ReceiptStoreIndex

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for ReceiptStoreIndex

impl Sync for ReceiptStoreIndex

impl Freeze for ReceiptStoreIndex

impl UnsafeUnpin for ReceiptStoreIndex

impl Unpin for ReceiptStoreIndex

impl UnwindSafe for ReceiptStoreIndex

impl RefUnwindSafe for ReceiptStoreIndex

impl DeserializeOwned for ReceiptStoreIndex

impl StructuralPartialEq for ReceiptStoreIndex

impl Eq for ReceiptStoreIndex

ReceiptStoreIndexEntry §

pub struct runx_runtime::receipts::store::ReceiptStoreIndexEntry { /* ... */ }

Trait Implementations §

impl Borrow for ReceiptStoreIndexEntry

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ReceiptStoreIndexEntry

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for ReceiptStoreIndexEntry

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for ReceiptStoreIndexEntry

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ReceiptStoreIndexEntry

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ReceiptStoreIndexEntry

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ReceiptStoreIndexEntry

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ReceiptStoreIndexEntry

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for ReceiptStoreIndexEntry

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for ReceiptStoreIndexEntry

Output

impl Equivalent for ReceiptStoreIndexEntry

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for ReceiptStoreIndexEntry

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for ReceiptStoreIndexEntry

clone

fn clone(self: &Self) -> ReceiptStoreIndexEntry

impl Debug for ReceiptStoreIndexEntry

impl PartialEq for ReceiptStoreIndexEntry

eq

fn eq(self: &Self, other: &ReceiptStoreIndexEntry) -> bool

impl Serialize for ReceiptStoreIndexEntry

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for ReceiptStoreIndexEntry

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for ReceiptStoreIndexEntry

impl Sync for ReceiptStoreIndexEntry

impl Freeze for ReceiptStoreIndexEntry

impl UnsafeUnpin for ReceiptStoreIndexEntry

impl Unpin for ReceiptStoreIndexEntry

impl UnwindSafe for ReceiptStoreIndexEntry

impl RefUnwindSafe for ReceiptStoreIndexEntry

impl DeserializeOwned for ReceiptStoreIndexEntry

impl StructuralPartialEq for ReceiptStoreIndexEntry

impl Eq for ReceiptStoreIndexEntry

Enums §

ReceiptStoreError §

pub enum runx_runtime::receipts::store::ReceiptStoreError { /* ... */ }

Implementations §

impl ReceiptStoreError

public_message

fn public_message(self: &Self, store_label: &ReceiptStoreLabel) -> String
#[must_use]

Trait Implementations §

impl Borrow for ReceiptStoreError

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for ReceiptStoreError

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl Into for ReceiptStoreError

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for ReceiptStoreError

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for ReceiptStoreError

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for ReceiptStoreError

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for ReceiptStoreError

type_id

fn type_id(self: &Self) -> TypeId

impl ToString for ReceiptStoreError

to_string

fn to_string(self: &Self) -> String

impl Same for ReceiptStoreError

Output

impl From for SkillRunError

from

fn from(source: ReceiptStoreError) -> Self

impl From for JournalProjectionError

from

fn from(source: ReceiptStoreError) -> Self

impl Debug for ReceiptStoreError

impl Error for ReceiptStoreError

impl Display for ReceiptStoreError

fmt

fn fmt(self: &Self, __formatter: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result

impl Send for ReceiptStoreError

impl Sync for ReceiptStoreError

impl Freeze for ReceiptStoreError

impl UnsafeUnpin for ReceiptStoreError

impl Unpin for ReceiptStoreError

impl UnwindSafe for ReceiptStoreError

impl RefUnwindSafe for ReceiptStoreError