pub struct LocalApi<T: LocalApiClient> { /* private fields */ }
Expand description
Client for the local tailscaled socket
Implementations§
Source§impl LocalApi<UnixStreamClient>
impl LocalApi<UnixStreamClient>
Sourcepub fn new_with_socket_path<P: AsRef<Path>>(socket_path: P) -> Self
pub fn new_with_socket_path<P: AsRef<Path>>(socket_path: P) -> Self
Create a new client for the local tailscaled from the path to the socket.
Source§impl LocalApi<TcpWithPasswordClient>
impl LocalApi<TcpWithPasswordClient>
Sourcepub fn new_with_port_and_password<S: Into<String>>(
port: u16,
password: S,
) -> Self
pub fn new_with_port_and_password<S: Into<String>>( port: u16, password: S, ) -> Self
Create a new client for the local tailscaled from the TCP port and password.
Source§impl<T: LocalApiClient> LocalApi<T>
impl<T: LocalApiClient> LocalApi<T>
Sourcepub async fn certificate_pair(
&self,
domain: &str,
) -> Result<(PrivateKey, Vec<Certificate>)>
pub async fn certificate_pair( &self, domain: &str, ) -> Result<(PrivateKey, Vec<Certificate>)>
Get the certificate and key for a domain. The domain should be one of the valid domains for the local node.
Sourcepub async fn whois(&self, address: SocketAddr) -> Result<Whois>
pub async fn whois(&self, address: SocketAddr) -> Result<Whois>
Request whois information for an address in the tailnet.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LocalApi<T>where
T: Freeze,
impl<T> RefUnwindSafe for LocalApi<T>where
T: RefUnwindSafe,
impl<T> Send for LocalApi<T>where
T: Send,
impl<T> Sync for LocalApi<T>where
T: Sync,
impl<T> Unpin for LocalApi<T>where
T: Unpin,
impl<T> UnwindSafe for LocalApi<T>where
T: UnwindSafe,
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