pub struct WorkerBackend;Expand description
Backend for the Cloudflare Workers runtime.
Uses FetchConnector for object_store HTTP requests and web_sys::fetch
for raw multipart operations.
Trait Implementations§
Source§impl Clone for WorkerBackend
impl Clone for WorkerBackend
Source§fn clone(&self) -> WorkerBackend
fn clone(&self) -> WorkerBackend
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 ProxyBackend for WorkerBackend
impl ProxyBackend for WorkerBackend
Source§type ResponseBody = Response
type ResponseBody = Response
The streaming body type in forwarded backend responses.
Source§async fn forward(
&self,
request: ForwardRequest,
body: JsBody,
) -> Result<ForwardResponse<Self::ResponseBody>, ProxyError>
async fn forward( &self, request: ForwardRequest, body: JsBody, ) -> Result<ForwardResponse<Self::ResponseBody>, ProxyError>
Execute a presigned
ForwardRequest against the backend and return
the response with a streaming body.Source§fn create_paginated_store(
&self,
config: &BucketConfig,
) -> Result<Box<dyn PaginatedListStore>, ProxyError>
fn create_paginated_store( &self, config: &BucketConfig, ) -> Result<Box<dyn PaginatedListStore>, ProxyError>
Create a
PaginatedListStore for the given bucket configuration. Read moreSource§fn create_signer(
&self,
config: &BucketConfig,
) -> Result<Arc<dyn Signer>, ProxyError>
fn create_signer( &self, config: &BucketConfig, ) -> Result<Arc<dyn Signer>, ProxyError>
Create a
Signer for generating presigned URLs. Read moreSource§async fn send_raw(
&self,
method: Method,
url: String,
headers: HeaderMap,
body: Bytes,
) -> Result<RawResponse, ProxyError>
async fn send_raw( &self, method: Method, url: String, headers: HeaderMap, body: Bytes, ) -> Result<RawResponse, ProxyError>
Send a raw HTTP request (used for multipart operations that
ObjectStore doesn’t expose at the right abstraction level).Auto Trait Implementations§
impl Freeze for WorkerBackend
impl RefUnwindSafe for WorkerBackend
impl Send for WorkerBackend
impl Sync for WorkerBackend
impl Unpin for WorkerBackend
impl UnsafeUnpin for WorkerBackend
impl UnwindSafe for WorkerBackend
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> 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 more