pub struct SubdomainResolver {
pub base_domain: String,
}Expand description
Subdomain-based resolver. Matches hosts of the form
<pod>.<base_domain> and yields pod = Some(<pod>). The bare
base domain yields pod = None (root pod). Hosts outside the base
domain tree fall back to path-based semantics.
Fields§
§base_domain: StringAuthoritative base domain (e.g. "example.org"). Port is
ignored at match time; see [strip_port].
Trait Implementations§
Source§impl PodResolver for SubdomainResolver
impl PodResolver for SubdomainResolver
Auto Trait Implementations§
impl Freeze for SubdomainResolver
impl RefUnwindSafe for SubdomainResolver
impl Send for SubdomainResolver
impl Sync for SubdomainResolver
impl Unpin for SubdomainResolver
impl UnsafeUnpin for SubdomainResolver
impl UnwindSafe for SubdomainResolver
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