pub struct Tailscale { /* private fields */ }
Expand description
Entrypoint for interacting with the Tailscale API.
Implementations§
Source§impl Tailscale
impl Tailscale
Sourcepub fn new<K, D>(key: K, domain: D) -> Self
pub fn new<K, D>(key: K, domain: D) -> Self
Create a new Tailscale client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key your requests will work.
Sourcepub fn new_from_env() -> Self
pub fn new_from_env() -> Self
Create a new Tailscale client struct from environment variables. It
takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key and domain and your requests will work.
Auto Trait Implementations§
impl Freeze for Tailscale
impl !RefUnwindSafe for Tailscale
impl Send for Tailscale
impl Sync for Tailscale
impl Unpin for Tailscale
impl !UnwindSafe for Tailscale
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