pub struct ConnectionOptions {
pub client_id: [u8; 16],
pub features: Vec<String>,
pub version: String,
pub arch: String,
pub origin_local_ip: Vec<u8>,
pub replace_existing: bool,
pub compression_quality: u8,
pub num_previous_attempts: u8,
}Expand description
Connection options sent on register. Mirror of ConnectionOptions
(with ClientInfo collapsed in) — only the fields the quick-
tunnel flow actually needs.
Fields§
§client_id: [u8; 16]§features: Vec<String>§version: String§arch: String§origin_local_ip: Vec<u8>§replace_existing: bool§compression_quality: u8§num_previous_attempts: u8Implementations§
Source§impl ConnectionOptions
impl ConnectionOptions
Sourcepub fn default_for_quick_tunnel(version: &str) -> Self
pub fn default_for_quick_tunnel(version: &str) -> Self
Sensible default options to send on a brand-new quick tunnel. Features mirror what a recent cloudflared advertises that the edge accepts even for anonymous quick tunnels.
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
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 moreAuto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnsafeUnpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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