pub enum ServerBackend {
Local(LocalBackend),
Postgres(PostgresBackend),
}Variants§
Local(LocalBackend)
Postgres(PostgresBackend)
Trait Implementations§
Source§impl Clone for ServerBackend
impl Clone for ServerBackend
Source§fn clone(&self) -> ServerBackend
fn clone(&self) -> ServerBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerBackend
impl Debug for ServerBackend
Source§impl OciBackend for ServerBackend
impl OciBackend for ServerBackend
Source§async fn create_resumable_object_upload(
&self,
object_key: &ObjectKey,
) -> Result<Option<String>, OciAdapterError>
async fn create_resumable_object_upload( &self, object_key: &ObjectKey, ) -> Result<Option<String>, OciAdapterError>
Creates a resumable S3 upload, returning an upload ID if S3 is available. Read more
Source§async fn upload_resumable_object_part(
&self,
object_key: &ObjectKey,
upload_id: &str,
part_idx: usize,
bytes: Bytes,
) -> Result<String, OciAdapterError>
async fn upload_resumable_object_part( &self, object_key: &ObjectKey, upload_id: &str, part_idx: usize, bytes: Bytes, ) -> Result<String, OciAdapterError>
Uploads one part of a resumable S3 multipart upload. Read more
Source§async fn complete_resumable_object_upload(
&self,
object_key: &ObjectKey,
upload_id: &str,
part_ids: Vec<String>,
) -> Result<(), OciAdapterError>
async fn complete_resumable_object_upload( &self, object_key: &ObjectKey, upload_id: &str, part_ids: Vec<String>, ) -> Result<(), OciAdapterError>
Completes a resumable S3 multipart upload. Read more
Source§async fn abort_resumable_object_upload(
&self,
object_key: &ObjectKey,
upload_id: &str,
) -> Result<(), OciAdapterError>
async fn abort_resumable_object_upload( &self, object_key: &ObjectKey, upload_id: &str, ) -> Result<(), OciAdapterError>
Aborts a resumable S3 multipart upload. Read more
Source§fn put_sha256_addressed_object_bytes_if_absent(
&self,
object_key: &ObjectKey,
digest_hex: &str,
bytes: Vec<u8>,
) -> Result<PutOutcome, OciAdapterError>
fn put_sha256_addressed_object_bytes_if_absent( &self, object_key: &ObjectKey, digest_hex: &str, bytes: Vec<u8>, ) -> Result<PutOutcome, OciAdapterError>
Stores bytes for a content-addressed object if no object exists at the key. Read more
Source§fn copy_object_if_absent(
&self,
source: &ObjectKey,
destination: &ObjectKey,
) -> Result<PutOutcome, OciAdapterError>
fn copy_object_if_absent( &self, source: &ObjectKey, destination: &ObjectKey, ) -> Result<PutOutcome, OciAdapterError>
Copies an object from source to destination if no object exists at the destination. Read more
Source§async fn delete_object_if_present(
&self,
object_key: &ObjectKey,
) -> Result<DeleteOutcome, OciAdapterError>
async fn delete_object_if_present( &self, object_key: &ObjectKey, ) -> Result<DeleteOutcome, OciAdapterError>
Deletes an object if it exists. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ServerBackend
impl !UnwindSafe for ServerBackend
impl Freeze for ServerBackend
impl Send for ServerBackend
impl Sync for ServerBackend
impl Unpin for ServerBackend
impl UnsafeUnpin for ServerBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request. Read more
Source§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Append a header into the request. Read more
Source§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request, if the header is not already present. Read more
Source§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response. Read more
Source§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Append a header into the response. Read more
Source§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response, if the header is not already present. Read more