pub struct NatsCredentials { /* private fields */ }Expand description
The credentials a connection is built from.
connect resolves them from the registry / environment; this type
exists so a caller (tests, chiefly) can supply them directly without
touching process-global state. Debug never prints a secret.
Implementations§
Trait Implementations§
Source§impl Clone for NatsCredentials
impl Clone for NatsCredentials
Source§impl Debug for NatsCredentials
impl Debug for NatsCredentials
Auto Trait Implementations§
impl Freeze for NatsCredentials
impl RefUnwindSafe for NatsCredentials
impl Send for NatsCredentials
impl Sync for NatsCredentials
impl Unpin for NatsCredentials
impl UnsafeUnpin for NatsCredentials
impl UnwindSafe for NatsCredentials
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