pub enum ExposureRequest {
Loopback,
Url(String),
Tailscale(String),
}Expand description
How the service should be reachable. The frontends resolve fuzzier
intent (prompts, --tailscale tailnet lookup) into one of these.
Variants§
Loopback
http://127.0.0.1:<port> only. If the service requires HTTPS and
Caddy is installed, planning auto-promotes to a *.internal URL
(the same non-interactive default the CLI uses).
Url(String)
A concrete URL; classified by hostname into Internal / Public.
Tailscale(String)
A pre-derived *.ts.net URL. Deriving it needs the host’s
tailnet identity, which is frontend territory (sudo, tailscale
CLI), so it arrives here already resolved.
Trait Implementations§
Source§impl Clone for ExposureRequest
impl Clone for ExposureRequest
Source§fn clone(&self) -> ExposureRequest
fn clone(&self) -> ExposureRequest
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 ExposureRequest
impl Debug for ExposureRequest
Source§impl Default for ExposureRequest
impl Default for ExposureRequest
Source§fn default() -> ExposureRequest
fn default() -> ExposureRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExposureRequest
impl<'de> Deserialize<'de> for ExposureRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExposureRequest> for ExposureRequest
impl From<ExposureRequest> for ExposureRequest
Source§fn from(e: ExposureRequest) -> Self
fn from(e: ExposureRequest) -> Self
Converts to this type from the input type.
Source§impl From<ExposureRequest> for ExposureRequest
impl From<ExposureRequest> for ExposureRequest
Source§fn from(e: ExposureRequest) -> Self
fn from(e: ExposureRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExposureRequest
impl RefUnwindSafe for ExposureRequest
impl Send for ExposureRequest
impl Sync for ExposureRequest
impl Unpin for ExposureRequest
impl UnsafeUnpin for ExposureRequest
impl UnwindSafe for ExposureRequest
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