pub struct ImplicitTenant;Expand description
The resolver a deployment with no control database uses: every
host is the one venture, always active.
This is not the Cloudflare path, it is the no registry path — which
is also the browser runtime, and native in every development run and
every test (TENANT-ROUTING.md §6). Scoping it to Cloudflare would mean
cargo test cannot resolve a tenant and every module suite 500s.
A module is therefore written once, against the stricter shape, and the path most ventures actually run in production is not the one without the isolation.
Trait Implementations§
Source§impl Clone for ImplicitTenant
impl Clone for ImplicitTenant
Source§fn clone(&self) -> ImplicitTenant
fn clone(&self) -> ImplicitTenant
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 moreimpl Copy for ImplicitTenant
Source§impl Debug for ImplicitTenant
impl Debug for ImplicitTenant
Source§impl Default for ImplicitTenant
impl Default for ImplicitTenant
Source§fn default() -> ImplicitTenant
fn default() -> ImplicitTenant
Returns the “default value” for a type. Read more
Source§impl ResolveTenant for ImplicitTenant
impl ResolveTenant for ImplicitTenant
Source§fn resolve(&self, _host: &str) -> Resolution
fn resolve(&self, _host: &str) -> Resolution
The registry’s answer for
host. Implementations must not block
on a per-request round trip to the control database; see §13’s
open question on cache lifetime.Auto Trait Implementations§
impl Freeze for ImplicitTenant
impl RefUnwindSafe for ImplicitTenant
impl Send for ImplicitTenant
impl Sync for ImplicitTenant
impl Unpin for ImplicitTenant
impl UnsafeUnpin for ImplicitTenant
impl UnwindSafe for ImplicitTenant
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