pub struct SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,{ /* private fields */ }
Expand description
Builder for SpawnService
.
Implementations
sourceimpl<G: Clone, S: Clone, E: Clone> SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,
impl<G: Clone, S: Clone, E: Clone> SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,
pub fn region<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn service<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn allowed_request_methods(&mut self, value: Vec<Method>) -> &mut Self
pub fn allowed_content_types(&mut self, value: Vec<String>) -> &mut Self
pub fn signed_header_requirements(
&mut self,
value: SignedHeaderRequirements
) -> &mut Self
pub fn get_signing_key<VALUE: Into<G>>(&mut self, value: VALUE) -> &mut Self
pub fn implementation<VALUE: Into<S>>(&mut self, value: VALUE) -> &mut Self
pub fn error_mapper<VALUE: Into<E>>(&mut self, value: VALUE) -> &mut Self
pub fn signature_options(&mut self, value: SignatureOptions) -> &mut Self
sourcepub fn build(&self) -> Result<SpawnService<G, S, E>, SpawnServiceBuilderError>
pub fn build(&self) -> Result<SpawnService<G, S, E>, SpawnServiceBuilderError>
Trait Implementations
sourceimpl<G: Clone, S: Clone, E: Clone> Clone for SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,
impl<G: Clone, S: Clone, E: Clone> Clone for SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,
sourcefn clone(&self) -> SpawnServiceBuilder<G, S, E>
fn clone(&self) -> SpawnServiceBuilder<G, S, E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<G: Clone, S: Clone, E: Clone> Default for SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,
impl<G: Clone, S: Clone, E: Clone> Default for SpawnServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,
Auto Trait Implementations
impl<G, S, E> RefUnwindSafe for SpawnServiceBuilder<G, S, E>where
E: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
impl<G, S, E> Send for SpawnServiceBuilder<G, S, E>
impl<G, S, E> Sync for SpawnServiceBuilder<G, S, E>where
E: Sync,
G: Sync,
S: Sync,
impl<G, S, E> Unpin for SpawnServiceBuilder<G, S, E>where
E: Unpin,
G: Unpin,
S: Unpin,
impl<G, S, E> UnwindSafe for SpawnServiceBuilder<G, S, E>where
E: UnwindSafe,
G: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more