pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn new( pinner: Box<dyn Pinner>, fs: Operator, pather: FolderPather, ) -> Result<Store>
pub async fn load_component(&self, name: &str) -> Result<Option<String>>
pub async fn load_component_bytes(&self, name: &str) -> Result<Option<Vec<u8>>>
pub async fn read_file_bytes(&self, path: &str) -> Result<Vec<u8>>
pub async fn load_migration(&self, name: &str) -> Result<String>
pub async fn list_migrations(&self) -> Result<Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl !RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl !UnwindSafe for Store
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more