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 77d8f7af..b0050ab3 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 509f8558..aa4c56db 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: u32
the 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: String
Captcha description
-source
. Read moreReturns the argument unchanged.
+source
. Read moreCalls U::from(self)
.
name: String
§heading: String
§message: String
§received: i64
§id: i32
source
. Read moreself
and other
values to be equal, and is used
+}name: String
§heading: String
§message: String
§received: i64
§id: i32
source
. Read moreself
and other
values to be equal, and is used
by ==
.Span
, returning an
diff --git a/mcaptcha/data/struct.Data.html b/mcaptcha/data/struct.Data.html
index f6fc3bc9..04362a2f 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: Config
credential management configuration
captcha: SystemGroup
mCaptcha 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 cb358486..b0965d5c 100644 --- a/mcaptcha/db/maria/fn.get_data.html +++ b/mcaptcha/db/maria/fn.get_data.html @@ -1 +1 @@ -pub enum PageError {
InternalServerError,
ServiceError(ServiceError),
-}
self
and other
values to be equal, and is used
+}Span
, returning an
diff --git a/mcaptcha/errors/enum.ServiceError.html b/mcaptcha/errors/enum.ServiceError.html
index e21a1a85..25e66856 100644
--- a/mcaptcha/errors/enum.ServiceError.html
+++ b/mcaptcha/errors/enum.ServiceError.html
@@ -32,7 +32,7 @@ profile
token not found
captcha not found
Traffic pattern not found
-self
and other
values to be equal, and is used
+self
and other
values to be equal, and is used
by ==
.Span
, returning an
diff --git a/mcaptcha/errors/struct.DBErrorWrapper.html b/mcaptcha/errors/struct.DBErrorWrapper.html
index 5d3072df..6bf45a1f 100644
--- a/mcaptcha/errors/struct.DBErrorWrapper.html
+++ b/mcaptcha/errors/struct.DBErrorWrapper.html
@@ -1,4 +1,4 @@
-pub struct DBErrorWrapper(DBError);
0: DBError
self
and other
values to be equal, and is used
+pub struct DBErrorWrapper(DBError);
0: DBError
Span
, returning an
diff --git a/mcaptcha/pages/panel/notifications/struct.Notification.html b/mcaptcha/pages/panel/notifications/struct.Notification.html
index 9fc67474..04ef564c 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: String
§heading: String
§message: String
§received: OffsetDateTime
§id: i32
Returns the argument unchanged.
+}name: String
§heading: String
§message: String
§received: OffsetDateTime
§id: i32
Calls U::from(self)
.
duration: u32
§name: String
§key: String
§levels: Vec<Level>
source
. Read moreRenderResult
Read moreReturns the argument unchanged.
+}duration: u32
§name: String
§key: String
§levels: Vec<Level>
source
. Read moreRenderResult
Read moreCalls U::from(self)
.
pub struct IndexPage {
- sitekeys: Vec<Captcha>,
-}
sitekeys: Vec<Captcha>
RenderResult
Read moresitekeys: Vec<Captcha>
RenderResult
Read moreCalls U::from(self)
.
duration: u32
§name: String
§key: String
§levels: Vec<Level>
§stats: CaptchaStats
RenderResult
Read moreReturns the argument unchanged.
+}duration: u32
§name: String
§key: String
§levels: Vec<Level>
§stats: CaptchaStats
RenderResult
Read moreCalls U::from(self)
.
pub struct IndexPage {
- sitekeys: Vec<Captcha>,
-}
sitekeys: Vec<Captcha>
RenderResult
Read moresitekeys: Vec<Captcha>
RenderResult
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.record 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 8a2b9176..b7fdd526 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.record 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 839548bd..5eae4a6b 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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: '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: Config
credential management configuration
captcha: SystemGroup
mCaptcha system: Redis cache, etc.
mailer: Option<AsyncSmtpTransport<Tokio1Executor>>
email client