Struct distant_net::AuthClient
source · [−]pub struct AuthClient { /* private fields */ }
Implementations
sourceimpl AuthClient
impl AuthClient
sourcepub async fn handshake(&mut self) -> Result<()>
pub async fn handshake(&mut self) -> Result<()>
Sends a request to the server to establish an encrypted connection
sourcepub fn is_ready(&self) -> bool
pub fn is_ready(&self) -> bool
Returns true if client has successfully performed a handshake and is ready to communicate with the server
sourcepub fn will_jit_handshake(&self) -> bool
pub fn will_jit_handshake(&self) -> bool
Returns true if this client will perform a handshake just-in-time (JIT) prior to making a request in the scenario where the client has not already performed a handshake
sourcepub fn set_jit_handshake(&mut self, flag: bool)
pub fn set_jit_handshake(&mut self, flag: bool)
Sets the jit flag on this client with true
indicating that this client will perform a
handshake just-in-time (JIT) prior to making a request in the scenario where the client has
not already performed a handshake
sourcepub async fn challenge(
&mut self,
questions: Vec<AuthQuestion>,
options: HashMap<String, String>
) -> Result<Vec<String>>
pub async fn challenge(
&mut self,
questions: Vec<AuthQuestion>,
options: HashMap<String, String>
) -> Result<Vec<String>>
Provides a challenge to the server and returns the answers to the questions asked by the client
sourcepub async fn verify(&mut self, kind: AuthVerifyKind, text: String) -> Result<bool>
pub async fn verify(&mut self, kind: AuthVerifyKind, text: String) -> Result<bool>
Provides a verification request to the server and returns whether or not the server approved
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl !UnwindSafe for AuthClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more