[][src]Struct ratsio::nats_client::UserJWT

pub struct UserJWT { /* fields omitted */ }

An option that indicates client JWT authentication should be used. Takes a callback that will be used to sign the nonce the server supplies. For security reasons, ensure that you keep the seed in memory only as long as is necessary. Because of the tokio wrappings used by this client, the callback must be wrapped in an Arc of the signer callback function type.

Implementations

impl UserJWT[src]

pub fn new(jwt: String, signer: SignerCallback) -> UserJWT[src]

Creates a new UserJWT option from an encoded JWT and a callback to be invoked to sign the server-provided nonce

Trait Implementations

impl Clone for UserJWT[src]

impl Debug for UserJWT[src]

impl PartialEq<UserJWT> for UserJWT[src]

Auto Trait Implementations

impl !RefUnwindSafe for UserJWT

impl Send for UserJWT

impl Sync for UserJWT

impl Unpin for UserJWT

impl !UnwindSafe for UserJWT

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.