Trait shipyard::AllStoragesBorrow
source · [−]pub trait AllStoragesBorrow<'a>: Borrow<'a> {
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>;
}
Expand description
Allows a type to be borrowed by AllStorages::borrow
and AllStorages::run
.
Required Methods
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
This function is where the actual borrowing happens.