diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index 24bdca654..16d79032f 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -33,14 +33,14 @@ included, and carry their own copyright notices and license terms: Licensed under the SIL Open Font License, Version 1.1. See SourceCodePro-LICENSE.txt. -* Source Serif Pro (SourceSerifPro-Regular.ttf.woff, - SourceSerifPro-Bold.ttf.woff, SourceSerifPro-It.ttf.woff): +* Source Serif 4 (SourceSerif4-Regular.ttf.woff, SourceSerif4-Bold.ttf.woff, + SourceSerif4-It.ttf.woff): - Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/), with - Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of - Adobe Systems Incorporated in the United States and/or other countries. + Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name + 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United + States and/or other countries. Licensed under the SIL Open Font License, Version 1.1. - See SourceSerifPro-LICENSE.txt. + See SourceSerif4-LICENSE.md. This copyright file is intended to be distributed with rustdoc output. diff --git a/SourceSerif4-Bold.ttf.woff b/SourceSerif4-Bold.ttf.woff new file mode 100644 index 000000000..8ad41888e Binary files /dev/null and b/SourceSerif4-Bold.ttf.woff differ diff --git a/SourceSerif4-It.ttf.woff b/SourceSerif4-It.ttf.woff new file mode 100644 index 000000000..2a34b5c42 Binary files /dev/null and b/SourceSerif4-It.ttf.woff differ diff --git a/SourceSerifPro-LICENSE.md b/SourceSerif4-LICENSE.md similarity index 98% rename from SourceSerifPro-LICENSE.md rename to SourceSerif4-LICENSE.md index 22cb755f2..68ea18924 100644 --- a/SourceSerifPro-LICENSE.md +++ b/SourceSerif4-LICENSE.md @@ -1,4 +1,4 @@ -Copyright 2014-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. +Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. This Font Software is licensed under the SIL Open Font License, Version 1.1. diff --git a/SourceSerif4-Regular.ttf.woff b/SourceSerif4-Regular.ttf.woff new file mode 100644 index 000000000..45a5521ab Binary files /dev/null and b/SourceSerif4-Regular.ttf.woff differ diff --git a/SourceSerifPro-Bold.ttf.woff b/SourceSerifPro-Bold.ttf.woff deleted file mode 100644 index ca254318f..000000000 Binary files a/SourceSerifPro-Bold.ttf.woff and /dev/null differ diff --git a/SourceSerifPro-It.ttf.woff b/SourceSerifPro-It.ttf.woff deleted file mode 100644 index a287bbe6e..000000000 Binary files a/SourceSerifPro-It.ttf.woff and /dev/null differ diff --git a/SourceSerifPro-Regular.ttf.woff b/SourceSerifPro-Regular.ttf.woff deleted file mode 100644 index a3d55cfdf..000000000 Binary files a/SourceSerifPro-Regular.ttf.woff and /dev/null differ diff --git a/actix_cors/enum.CorsError.html b/actix_cors/enum.CorsError.html index 3b3de9d23..55255d835 100644 --- a/actix_cors/enum.CorsError.html +++ b/actix_cors/enum.CorsError.html @@ -1,5 +1,5 @@ actix_cors::CorsError - Rust

Enum actix_cors::CorsError[][src]

#[non_exhaustive]pub enum CorsError {
+                Change settings

Enum actix_cors::CorsError[][src]

#[non_exhaustive]pub enum CorsError {
     WildcardOrigin,
     MissingOrigin,
     MissingRequestMethod,
@@ -23,11 +23,11 @@
 

impl Debug for CorsError[src]

impl Display for CorsError[src]

impl Error for CorsError[src]

impl ResponseError for CorsError[src]

impl Error for CorsError[src]

impl ResponseError for CorsError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

Structs

CookieIdentityPolicy

Use cookies for request identity storage.

Identity

The extractor type to obtain your identity from a request.

diff --git a/actix_identity/struct.CookieIdentityPolicy.html b/actix_identity/struct.CookieIdentityPolicy.html index 6a191378f..7739bad5a 100644 --- a/actix_identity/struct.CookieIdentityPolicy.html +++ b/actix_identity/struct.CookieIdentityPolicy.html @@ -1,23 +1,23 @@ actix_identity::CookieIdentityPolicy - Rust

Struct actix_identity::CookieIdentityPolicy[][src]

pub struct CookieIdentityPolicy(_);

Use cookies for request identity storage.

+ Change settings

Struct actix_identity::CookieIdentityPolicy[][src]

pub struct CookieIdentityPolicy(_);

Use cookies for request identity storage.

See this page on MDN for details on cookie attributes.

Examples

-use actix_web::App;
+use actix_web::App;
 use actix_identity::{CookieIdentityPolicy, IdentityService};
 
 // create cookie identity backend
-let policy = CookieIdentityPolicy::new(&[0; 32])
+let policy = CookieIdentityPolicy::new(&[0; 32])
            .domain("www.rust-lang.org")
            .name("actix_auth")
            .path("/")
            .secure(true);
 
-let app = App::new()
+let app = App::new()
     // wrap policy into identity middleware
-    .wrap(IdentityService::new(policy));
+ .wrap(IdentityService::new(policy));

Implementations

impl CookieIdentityPolicy[src]

pub fn new(key: &[u8]) -> CookieIdentityPolicy[src]

Create new CookieIdentityPolicy instance.

Key argument is the private key for issued cookies. If this value is changed, all issued cookie identities are invalidated.

diff --git a/actix_identity/struct.Identity.html b/actix_identity/struct.Identity.html index b4e10c222..4ca580616 100644 --- a/actix_identity/struct.Identity.html +++ b/actix_identity/struct.Identity.html @@ -1,17 +1,17 @@ actix_identity::Identity - Rust

Struct actix_identity::Identity[][src]

pub struct Identity(_);

The extractor type to obtain your identity from a request.

+ Change settings

Struct actix_identity::Identity[][src]

pub struct Identity(_);

The extractor type to obtain your identity from a request.

 use actix_web::*;
-use actix_identity::Identity;
+use actix_identity::Identity;
 
 #[get("/")]
 async fn index(id: Identity) -> impl Responder {
     // access request identity
     if let Some(id) = id.identity() {
-        format!("Welcome! {}", id)
+        format!("Welcome! {}", id)
     } else {
         "Welcome Anonymous!".to_owned()
     }
@@ -22,7 +22,7 @@
     // remember identity
     id.remember("User1".to_owned());
 
-    HttpResponse::Ok()
+    HttpResponse::Ok()
 }
 
 #[post("/logout")]
@@ -30,7 +30,7 @@
     // remove identity
     id.forget();
 
-    HttpResponse::Ok()
+    HttpResponse::Ok()
 }

Implementations

impl Identity[src]

pub fn identity(&self) -> Option<String>[src]

Return the claimed identity of the user associated request or None if no identity can be found associated with the request.

@@ -41,13 +41,13 @@ found associated with the request.

impl FromRequest for Identity[src]

Extractor implementation for Identity type.

-use actix_identity::Identity;
+use actix_identity::Identity;
 
 #[get("/")]
 async fn index(id: Identity) -> impl Responder {
     // access request identity
     if let Some(id) = id.identity() {
-        format!("Welcome! {}", id)
+        format!("Welcome! {}", id)
     } else {
         "Welcome Anonymous!".to_owned()
     }
diff --git a/actix_identity/struct.IdentityService.html b/actix_identity/struct.IdentityService.html
index 40f8b507c..9a6bead9b 100644
--- a/actix_identity/struct.IdentityService.html
+++ b/actix_identity/struct.IdentityService.html
@@ -1,20 +1,20 @@
 actix_identity::IdentityService - Rust
 
 

Struct actix_identity::IdentityService[][src]

pub struct IdentityService<T> { /* fields omitted */ }

Request identity middleware

+ Change settings

Struct actix_identity::IdentityService[][src]

pub struct IdentityService<T> { /* fields omitted */ }

Request identity middleware

-use actix_web::App;
+use actix_web::App;
 use actix_identity::{CookieIdentityPolicy, IdentityService};
 
 // create cookie identity backend
-let policy = CookieIdentityPolicy::new(&[0; 32])
+let policy = CookieIdentityPolicy::new(&[0; 32])
            .name("auth-cookie")
            .secure(false);
 
-let app = App::new()
+let app = App::new()
     // wrap policy into identity middleware
-    .wrap(IdentityService::new(policy));
+ .wrap(IdentityService::new(policy));

Implementations

impl<T> IdentityService<T>[src]

pub fn new(backend: T) -> Self[src]

Create new identity service with specified backend.

Trait Implementations

impl<S, T, B> Transform<S, ServiceRequest> for IdentityService<T> where
    S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
    S::Future: 'static,
    T: IdentityPolicy,
    B: 'static, 
[src]

type Response = ServiceResponse<B>

Responses produced by the service.

type Error = Error

Errors produced by the service.

diff --git a/actix_identity/trait.IdentityPolicy.html b/actix_identity/trait.IdentityPolicy.html index b713ecbec..6d484a152 100644 --- a/actix_identity/trait.IdentityPolicy.html +++ b/actix_identity/trait.IdentityPolicy.html @@ -1,7 +1,7 @@ actix_identity::IdentityPolicy - Rust

Trait actix_identity::IdentityPolicy[][src]

pub trait IdentityPolicy: Sized + 'static {
+                Change settings

Trait actix_identity::IdentityPolicy[][src]

pub trait IdentityPolicy: Sized + 'static {
     type Future: Future<Output = Result<Option<String>, Error>>;
     type ResponseFuture: Future<Output = Result<(), Error>>;
     fn from_request(&self, req: &mut ServiceRequest) -> Self::Future;
diff --git a/actix_identity/trait.RequestIdentity.html b/actix_identity/trait.RequestIdentity.html
index 933241254..d8ba57d25 100644
--- a/actix_identity/trait.RequestIdentity.html
+++ b/actix_identity/trait.RequestIdentity.html
@@ -1,7 +1,7 @@
 actix_identity::RequestIdentity - Rust
 
 

Trait actix_identity::RequestIdentity[][src]

pub trait RequestIdentity {
+                Change settings

Trait actix_identity::RequestIdentity[][src]

pub trait RequestIdentity {
     fn get_identity(&self) -> Option<String>;
 }

Helper trait that allows to get Identity.

It could be used in middleware but identity policy must be set before any other middleware that diff --git a/actix_protobuf/enum.ProtoBufPayloadError.html b/actix_protobuf/enum.ProtoBufPayloadError.html index a117b2927..77a88606b 100644 --- a/actix_protobuf/enum.ProtoBufPayloadError.html +++ b/actix_protobuf/enum.ProtoBufPayloadError.html @@ -1,7 +1,7 @@ actix_protobuf::ProtoBufPayloadError - Rust

Enum actix_protobuf::ProtoBufPayloadError[][src]

pub enum ProtoBufPayloadError {
+                Change settings

Enum actix_protobuf::ProtoBufPayloadError[][src]

pub enum ProtoBufPayloadError {
     Overflow,
     ContentType,
     Serialize(ProtoBufEncodeError),
@@ -19,7 +19,7 @@
 

impl From<DecodeError> for ProtoBufPayloadError[src]

impl From<PayloadError> for ProtoBufPayloadError[src]

impl ResponseError for ProtoBufPayloadError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

Crate actix_protobuf[][src]

Structs

ProtoBuf
ProtoBufConfig
ProtoBufMessage

Enums

ProtoBufPayloadError

Traits

ProtoBufResponseBuilder
diff --git a/actix_protobuf/struct.ProtoBuf.html b/actix_protobuf/struct.ProtoBuf.html index 17204db85..9a16a419f 100644 --- a/actix_protobuf/struct.ProtoBuf.html +++ b/actix_protobuf/struct.ProtoBuf.html @@ -1,7 +1,7 @@ actix_protobuf::ProtoBuf - Rust

Struct actix_protobuf::ProtoBuf[][src]

pub struct ProtoBuf<T: Message>(pub T);

Trait Implementations

impl<T: Message> Debug for ProtoBuf<T> where
    T: Debug
[src]

Struct actix_protobuf::ProtoBuf[][src]

pub struct ProtoBuf<T: Message>(pub T);

Trait Implementations

impl<T: Message> Debug for ProtoBuf<T> where
    T: Debug
[src]

impl<T: Message> Deref for ProtoBuf<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Message> DerefMut for ProtoBuf<T>[src]

impl<T: Message + Default> Responder for ProtoBuf<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ProtoBuf<T> where
    T: RefUnwindSafe

impl<T> Send for ProtoBuf<T>

impl<T> Sync for ProtoBuf<T>

impl<T> Unpin for ProtoBuf<T> where
    T: Unpin

impl<T> UnwindSafe for ProtoBuf<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]