Struct mas_handlers::BoundActivityTracker
source · pub struct BoundActivityTracker { /* private fields */ }
Expand description
An activity tracker with an IP address bound to it.
Implementations§
source§impl Bound
impl Bound
sourcepub fn new(tracker: ActivityTracker, ip: Option<IpAddr>) -> Self
pub fn new(tracker: ActivityTracker, ip: Option<IpAddr>) -> Self
Create a new bound activity tracker.
sourcepub async fn record_oauth2_session(&self, clock: &dyn Clock, session: &Session)
pub async fn record_oauth2_session(&self, clock: &dyn Clock, session: &Session)
Record activity in an OAuth 2.0 session.
sourcepub async fn record_compat_session(
&self,
clock: &dyn Clock,
session: &CompatSession,
)
pub async fn record_compat_session( &self, clock: &dyn Clock, session: &CompatSession, )
Record activity in a compatibility session.
sourcepub async fn record_browser_session(
&self,
clock: &dyn Clock,
session: &BrowserSession,
)
pub async fn record_browser_session( &self, clock: &dyn Clock, session: &BrowserSession, )
Record activity in a browser session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bound
impl !RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl !UnwindSafe for Bound
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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