pub struct Backend {
pub handler: SyncService<Request, Response>,
pub category: BackendCategory,
pub variant: BackendType,
pub migrations: Vec<MigrationScript>,
}
Fields§
§handler: SyncService<Request, Response>
§category: BackendCategory
§variant: BackendType
§migrations: Vec<MigrationScript>
Implementations§
Source§impl Backend
impl Backend
pub fn category(&self) -> BackendCategory
pub fn variant(&self) -> BackendType
Sourcepub async fn migrate(
&self,
pool: Arc<EncryptedPool>,
mount_id: &str,
prefix: &str,
) -> Result<(), MigrationError>
pub async fn migrate( &self, pool: Arc<EncryptedPool>, mount_id: &str, prefix: &str, ) -> Result<(), MigrationError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more