pub fn calculate(
tp: &TrafficPattern,
strategy: &DefaultDifficultyStrategy
) -> Result<Vec<Level>, ServiceError>diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index c5cce0ee..5a0bbf7d 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -1,5 +1,5 @@ (function() {var implementors = { "db_sqlx_maria":[["impl From<InnerNotification> for Notification"]], "db_sqlx_postgres":[["impl From<InnerNotification> for Notification"]], -"mcaptcha":[["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<String> for BuildDetailsBuilderError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<String> for HealthBuilderError"],["impl From<Notification> for NotificationResp"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<CredsError> for ServiceError"],["impl From<DBError> for ServiceError"],["impl From<ValidationErrors> for ServiceError"],["impl From<ParseError> for ServiceError"],["impl From<CaptchaError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<RecvError> for ServiceError"],["impl From<MailboxError> for ServiceError"],["impl From<ServiceError> for PageError"],["impl From<DBError> for PageError"],["impl From<Notification> for Notification"]] +"mcaptcha":[["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<String> for BuildDetailsBuilderError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<String> for HealthBuilderError"],["impl From<Notification> for NotificationResp"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<CredsError> for ServiceError"],["impl From<DBError> for ServiceError"],["impl From<ValidationErrors> for ServiceError"],["impl From<ParseError> for ServiceError"],["impl From<CaptchaError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<RecvError> for ServiceError"],["impl From<MailboxError> for ServiceError"],["impl From<ServiceError> for PageError"],["impl From<DBError> for PageError"],["impl From<Notification> for Notification"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html b/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html index 753a2fed..fe8fe350 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html @@ -1 +1 @@ -
pub fn calculate(
tp: &TrafficPattern,
strategy: &DefaultDifficultyStrategy
) -> Result<Vec<Level>, ServiceError>peak_sustainable_traffic: u32the peak traffic that the user’s website can handle
broke_my_site_traffic: Option<u32>traffic that bought the user’s website down; optional
description: StringCaptcha description
-source. Read moreReturns the argument unchanged.
+source. Read moreCalls U::from(self).
name: Stringheading: Stringmessage: Stringreceived: i64id: i32source. Read moreself and other values to be equal, and is used
+}name: Stringheading: Stringmessage: Stringreceived: i64id: i32source. Read moreSpan, returning an
diff --git a/mcaptcha/data/struct.Data.html b/mcaptcha/data/struct.Data.html
index 9b1b7a10..2b96ddcd 100644
--- a/mcaptcha/data/struct.Data.html
+++ b/mcaptcha/data/struct.Data.html
@@ -1,12 +1,12 @@
pub struct Data {
- pub db: Box<dyn MCDatabase>,
+ pub db: Box<dyn MCDatabase>,
pub creds: Config,
pub captcha: SystemGroup,
pub mailer: Option<AsyncSmtpTransport<Tokio1Executor>>,
pub settings: Settings,
pub stats: Box<dyn Stats>,
}App data
-db: Box<dyn MCDatabase>database ops defined by db crates
+db: Box<dyn MCDatabase>database ops defined by db crates
creds: Configcredential management configuration
captcha: SystemGroupmCaptcha system: Redis cache, etc.
mailer: Option<AsyncSmtpTransport<Tokio1Executor>>email client
diff --git a/mcaptcha/db/maria/fn.get_data.html b/mcaptcha/db/maria/fn.get_data.html index 0006ff8e..53ef6a63 100644 --- a/mcaptcha/db/maria/fn.get_data.html +++ b/mcaptcha/db/maria/fn.get_data.html @@ -1 +1 @@ -InternalServerErrorServiceError(ServiceError)use the Display impl or to_string()
Span, returning an
diff --git a/mcaptcha/errors/enum.ServiceError.html b/mcaptcha/errors/enum.ServiceError.html
index 180bc2c6..85013183 100644
--- a/mcaptcha/errors/enum.ServiceError.html
+++ b/mcaptcha/errors/enum.ServiceError.html
@@ -34,7 +34,7 @@ profile
TrafficPatternNotFoundTraffic pattern not found
use the Display impl or to_string()
self and other values to be equal, and is used
+Span, returning an
diff --git a/mcaptcha/errors/struct.DBErrorWrapper.html b/mcaptcha/errors/struct.DBErrorWrapper.html
index a861f1f2..bc589d5b 100644
--- a/mcaptcha/errors/struct.DBErrorWrapper.html
+++ b/mcaptcha/errors/struct.DBErrorWrapper.html
@@ -1,4 +1,4 @@
-pub struct DBErrorWrapper(DBError);0: DBErroruse the Display impl or to_string()
+pub struct DBErrorWrapper(DBError);0: DBErroruse the Display impl or to_string()
!=. The default implementation is almost always
diff --git a/mcaptcha/pages/panel/notifications/struct.Notification.html b/mcaptcha/pages/panel/notifications/struct.Notification.html
index 9612a676..48d5b6b6 100644
--- a/mcaptcha/pages/panel/notifications/struct.Notification.html
+++ b/mcaptcha/pages/panel/notifications/struct.Notification.html
@@ -4,7 +4,7 @@
pub message: String,
pub received: OffsetDateTime,
pub id: i32,
-}name: Stringheading: Stringmessage: Stringreceived: OffsetDateTimeid: i32Returns the argument unchanged.
+}name: Stringheading: Stringmessage: Stringreceived: OffsetDateTimeid: i32Calls U::from(self).
duration: u32name: Stringkey: Stringlevels: Vec<Level>source. Read moreRenderResult Read morebuf. Read moreReturns the argument unchanged.
+}duration: u32name: Stringkey: Stringlevels: Vec<Level>source. Read moreRenderResult Read morebuf. Read moreCalls U::from(self).
sitekeys: Vec<Captcha>RenderResult Read morebuf. Read moreReturns the argument unchanged.
+ sitekeys: Vec<Captcha>, +}sitekeys: Vec<Captcha>RenderResult Read morebuf. Read moreCalls U::from(self).
duration: u32name: Stringkey: Stringlevels: Vec<Level>stats: CaptchaStatsRenderResult Read morebuf. Read moreReturns the argument unchanged.
+}duration: u32name: Stringkey: Stringlevels: Vec<Level>stats: CaptchaStatsRenderResult Read morebuf. Read moreCalls U::from(self).
sitekeys: Vec<Captcha>RenderResult Read morebuf. Read moreReturns the argument unchanged.
+ sitekeys: Vec<Captcha>, +}sitekeys: Vec<Captcha>RenderResult Read morebuf. Read moreCalls U::from(self).
pub struct Dummy;record PoWConfig fetches
-record PoWConfig solves
-record PoWConfig confirms
-fetch stats
+sufficient, and should not be overridden without very good reason. Read morerecord PoWConfig fetches
+record PoWConfig solves
+record PoWConfig confirms
+fetch stats
Span, returning an
diff --git a/mcaptcha/stats/struct.Real.html b/mcaptcha/stats/struct.Real.html
index 70db46c2..415c1f97 100644
--- a/mcaptcha/stats/struct.Real.html
+++ b/mcaptcha/stats/struct.Real.html
@@ -1,9 +1,9 @@
pub struct Real;record PoWConfig fetches
-record PoWConfig solves
-record PoWConfig confirms
-fetch stats
+sufficient, and should not be overridden without very good reason. Read morerecord PoWConfig fetches
+record PoWConfig solves
+record PoWConfig confirms
+fetch stats
Span, returning an
diff --git a/mcaptcha/stats/trait.Stats.html b/mcaptcha/stats/trait.Stats.html
index 12409186..d972bffb 100644
--- a/mcaptcha/stats/trait.Stats.html
+++ b/mcaptcha/stats/trait.Stats.html
@@ -1,10 +1,10 @@
pub trait Stats: Send + Sync + CloneStats {
- fn record_fetch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
d: &'life1 Data,
key: &'life2 str
) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
- fn record_solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
d: &'life1 Data,
key: &'life2 str
) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
- fn record_confirm<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
d: &'life1 Data,
key: &'life2 str
) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
- fn fetch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
d: &'life1 Data,
user: &'life2 str,
key: &'life3 str
) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait;
-}record PoWConfig fetches
-record PoWConfig solves
-record PoWConfig confirms
-fetch stats
+ fn record_fetch<'life0, 'life1, 'life2, 'async_trait>(record PoWConfig fetches
+record PoWConfig solves
+record PoWConfig confirms
+fetch stats
pub struct Data {
- pub db: Box<dyn MCDatabase>,
+ pub db: Box<dyn MCDatabase>,
pub creds: Config,
pub captcha: SystemGroup,
pub mailer: Option<AsyncSmtpTransport<Tokio1Executor>>,
pub settings: Settings,
pub stats: Box<dyn Stats>,
}App data
-db: Box<dyn MCDatabase>database ops defined by db crates
+db: Box<dyn MCDatabase>database ops defined by db crates
creds: Configcredential management configuration
captcha: SystemGroupmCaptcha system: Redis cache, etc.
mailer: Option<AsyncSmtpTransport<Tokio1Executor>>email client