Struct etcd_rs::Auth [−][src]
pub struct Auth<F> { /* fields omitted */ }Expand description
Auth client.
Implementations
pub async fn authenticate(
&mut self,
req: AuthenticateRequest
) -> Result<AuthenticateResponse>
pub async fn authenticate(
&mut self,
req: AuthenticateRequest
) -> Result<AuthenticateResponse>
Performs an authenticating operation. It generates an authentication token based on a given user name and password.
Errors
Will returns Err if the status of response is not ok
Trait Implementations
Auto Trait Implementations
impl<F> !RefUnwindSafe for Auth<F>
impl<F> !UnwindSafe for Auth<F>
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
