pub struct Endpoint {
pub host: String<128>,
pub port: u16,
pub tls_name: Option<String<{ crate::netmap::MAX_DERP_HOSTNAME }>>,
pub insecure_for_tests: bool,
}Expand description
A DNS name and TCP port. DNS resolution belongs to the transport adapter.
Fields§
§host: String<128>§port: u16§tls_name: Option<String<{ crate::netmap::MAX_DERP_HOSTNAME }>>Optional TLS/SNI name when it differs from the address resolved for the TCP connection.
insecure_for_tests: boolTest relay marker from the DERP map. Production adapters still verify TLS.
Implementations§
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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