[−][src]Struct ratsio::nats_client::UserJWT
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,