pub enum CloudflareConfig {
Quick,
Named {
hostname: String,
},
}Expand description
Cloudflare Tunnel exposure selected for this gateway.
Variants§
Quick
Account-free tunnel with an address assigned at process startup.
Named
User-owned tunnel with a stable published hostname.
Implementations§
Source§impl CloudflareConfig
impl CloudflareConfig
Sourcepub fn named(hostname: &str) -> Result<Self>
pub fn named(hostname: &str) -> Result<Self>
Validates and normalizes a stable public hostname.
Sourcepub fn endpoint(&self) -> Option<String>
pub fn endpoint(&self) -> Option<String>
Returns the stable endpoint when one exists before startup.
Sourcepub fn hostname(&self) -> Option<&str>
pub fn hostname(&self) -> Option<&str>
Returns the stable hostname when this is a named tunnel.
Sourcepub fn validate_token(token: &str) -> Result<()>
pub fn validate_token(token: &str) -> Result<()>
Validates one tunnel-scoped connector token without retaining it.
Trait Implementations§
Source§impl Clone for CloudflareConfig
impl Clone for CloudflareConfig
Source§fn clone(&self) -> CloudflareConfig
fn clone(&self) -> CloudflareConfig
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 CloudflareConfig
impl Debug for CloudflareConfig
Source§impl<'de> Deserialize<'de> for CloudflareConfig
impl<'de> Deserialize<'de> for CloudflareConfig
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
impl Eq for CloudflareConfig
Source§impl PartialEq for CloudflareConfig
impl PartialEq for CloudflareConfig
Source§impl Serialize for CloudflareConfig
impl Serialize for CloudflareConfig
impl StructuralPartialEq for CloudflareConfig
Auto Trait Implementations§
impl Freeze for CloudflareConfig
impl RefUnwindSafe for CloudflareConfig
impl Send for CloudflareConfig
impl Sync for CloudflareConfig
impl Unpin for CloudflareConfig
impl UnsafeUnpin for CloudflareConfig
impl UnwindSafe for CloudflareConfig
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