Struct ConnectionToken
struct ConnectionToken<'a> {
token: &'a str,
conn_id: Option<&'a str>,
}Fields§
§token: &'a str§conn_id: Option<&'a str>Implementations§
§impl<'a> ConnectionToken<'a>
impl<'a> ConnectionToken<'a>
pub fn from_request(req: &'a Request) -> Option<Self>
pub fn token_decoded(&self) -> Result<Vec<u8>, SpnegoError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ConnectionToken<'a>
impl<'a> RefUnwindSafe for ConnectionToken<'a>
impl<'a> Send for ConnectionToken<'a>
impl<'a> Sync for ConnectionToken<'a>
impl<'a> Unpin for ConnectionToken<'a>
impl<'a> UnwindSafe for ConnectionToken<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more