pub struct Credential { /* private fields */ }Expand description
One session’s credential: its audit session id and its token.
Implementations§
Source§impl Credential
impl Credential
Sourcepub fn new(session: &str, token: &[u8]) -> Result<Self, CredentialError>
pub fn new(session: &str, token: &[u8]) -> Result<Self, CredentialError>
The credential of session, which presents token.
Sourcepub fn proxy_url(&self, addr: SocketAddr) -> Zeroizing<String>
pub fn proxy_url(&self, addr: SocketAddr) -> Zeroizing<String>
http://<session>:<token>@<addr>: what the session’s HTTP_PROXY and
HTTPS_PROXY hold. Zeroed when dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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