2022-12-15 01:32:55 +05:30
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "utf-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta name = "generator" content = "rustdoc" > < meta name = "description" content = "API documentation for the Rust `Ctx` struct in crate `pages`." > < meta name = "keywords" content = "rust, rustlang, rust-lang, Ctx" > < title > Ctx in pages::ctx - Rust< / title > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceSerif4-Regular.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../FiraSans-Regular.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../FiraSans-Medium.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceCodePro-Regular.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceSerif4-Bold.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceCodePro-Semibold.ttf.woff2" > < link rel = "stylesheet" href = "../../normalize.css" > < link rel = "stylesheet" href = "../../rustdoc.css" id = "mainThemeStyle" > < link rel = "stylesheet" href = "../../ayu.css" disabled > < link rel = "stylesheet" href = "../../dark.css" disabled > < link rel = "stylesheet" href = "../../light.css" id = "themeStyle" > < script id = "default-settings" > < / script > < script src = "../../storage.js" > < / script > < script defer src = "sidebar-items.js" > < / script > < script defer src = "../../main.js" > < / script > < noscript > < link rel = "stylesheet" href = "../../noscript.css" > < / noscript > < link rel = "alternate icon" type = "image/png" href = "../../favicon-16x16.png" > < link rel = "alternate icon" type = "image/png" href = "../../favicon-32x32.png" > < link rel = "icon" type = "image/svg+xml" href = "../../favicon.svg" > < / head > < body class = "rustdoc struct" > <!-- [if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif] --> < nav class = "mobile-topbar" > < button class = "sidebar-menu-toggle" > ☰ < / button > < a class = "sidebar-logo" href = "../../pages/index.html" > < div class = "logo-container" > < img class = "rust-logo" src = "../../rust-logo.svg" alt = "logo" > < / div > < / a > < h2 class = "location" > < / h2 > < / nav > < nav class = "sidebar" > < a class = "sidebar-logo" href = "../../pages/index.html" > < div class = "logo-container" > < img class = "rust-logo" src = "../../rust-logo.svg" alt = "logo" > < / div > < / a > < h2 class = "location" > < a href = "#" > Ctx< / a > < / h2 > < div class = "sidebar-elems" > < section > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#fields" > Fields< / a > < / h3 > < ul > < li > < a href = "#structfield.conductor" > conductor< / a > < / li > < li > < a href = "#structfield.creds" > creds< / a > < / li > < li > < a href = "#structfield.db" > db< / a > < / li > < li > < a href = "#structfield.settings" > settings< / a > < / li > < / ul > < / div > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#implementations" > Methods< / a > < / h3 > < ul > < li > < a href = "#method.add_site" > add_site< / a > < / li > < li > < a href = "#method.authenticate" > authenticate< / a > < / li > < li > < a href = "#method.change_password" > change_password< / a > < / li > < li > < a href = "#method.delete_site" > delete_site< / a > < / li > < li > < a href = "#method.delete_user" > delete_user< / a > < / li > < li > < a href = "#method.email_exists" > email_exists< / a > < / li > < li > < a href = "#method.get_creds" > get_creds< / a > < / li > < li > < a href = "#method.login" > login< / a > < / li > < li > < a href = "#method.new" > new< / a > < / li > < li > < a href = "#method.register" > register< / a > < / li > < li > < a href = "#method.set_email" > set_email< / a > < / li > < li > < a href = "#method.update_site" > update_site< / a > < / li > < li > < a href = "#method.update_username" > update_username< / a > < / li > < li > < a href = "#method.username_exists" > username_exists< / a > < / li > < / ul > < / div > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#trait-implementations" > Trait Implementations< / a > < / h3 > < ul > < li > < a href = "#impl-Clone-for-Ctx" > Clone< / a > < / li > < / ul > < / div > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#synthetic-implementations" > Auto Trait Implementations< / a > < / h3 > < ul > < li > < a href = "#impl-RefUnwindSafe-for-Ctx" > !RefUnwindSafe< / a > < / li > < li > < a href = "#impl-Send-for-Ctx" > Send< / a > < / li > < li > < a href = "#impl-Sync-for-Ctx" > Sync< / a > < / li > < li > < a href = "#impl-Unpin-for-Ctx" > Unpin< / a > < / li > < li > < a href = "#impl-UnwindSafe-for-Ctx" > !UnwindSafe< / a > < / li > < / ul > < / div >
2022-04-27 12:03:35 +05:30
pub settings: < a class = "struct" href = "../settings/struct.Settings.html" title = "struct pages::settings::Settings" > Settings< / a > ,
2022-09-16 13:40:47 +05:30
pub db: < a class = "struct" href = "../db/struct.Database.html" title = "struct pages::db::Database" > Database< / a > ,
2022-12-15 01:32:55 +05:30
pub conductor: < a class = "struct" href = "../conductor/struct.Conductor.html" title = "struct pages::conductor::Conductor" > Conductor< / a > ,
2022-09-16 13:40:47 +05:30
pub creds: ArgonConfig,
2022-12-15 01:32:55 +05:30
}< / code > < / pre > < / div > < h2 id = "fields" class = "fields small-section-header" > Fields< a href = "#fields" class = "anchor" > < / a > < / h2 > < span id = "structfield.settings" class = "structfield small-section-header" > < a href = "#structfield.settings" class = "anchor field" > < / a > < code > settings: < a class = "struct" href = "../settings/struct.Settings.html" title = "struct pages::settings::Settings" > Settings< / a > < / code > < / span > < span id = "structfield.db" class = "structfield small-section-header" > < a href = "#structfield.db" class = "anchor field" > < / a > < code > db: < a class = "struct" href = "../db/struct.Database.html" title = "struct pages::db::Database" > Database< / a > < / code > < / span > < span id = "structfield.conductor" class = "structfield small-section-header" > < a href = "#structfield.conductor" class = "anchor field" > < / a > < code > conductor: < a class = "struct" href = "../conductor/struct.Conductor.html" title = "struct pages::conductor::Conductor" > Conductor< / a > < / code > < / span > < span id = "structfield.creds" class = "structfield small-section-header" > < a href = "#structfield.creds" class = "anchor field" > < / a > < code > creds: ArgonConfig< / code > < / span > < div class = "docblock" > < p > credential-procession policy< / p >
2022-11-09 14:42:22 +05:30
< / div > < h2 id = "implementations" class = "small-section-header" > Implementations< a href = "#implementations" class = "anchor" > < / a > < / h2 > < div id = "implementations-list" > < details class = "rustdoc-toggle implementors-toggle" open > < summary > < section id = "impl-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#43-136" > source< / a > < a href = "#impl-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.email_exists" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#45-51" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.email_exists" class = "fnname" > email_exists< / a > (< br > & self,< br > email: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "api/v1/account/struct.AccountCheckResp.html" title = "struct pages::ctx::api::v1::account::AccountCheckResp" > AccountCheckResp< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > check if email exists on database< / p >
< / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.set_email" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#54-65" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.set_email" class = "fnname" > set_email< / a > (< br > & self,< br > username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ,< br > new_email: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > update email< / p >
< / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.username_exists" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#68-74" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.username_exists" class = "fnname" > username_exists< / a > (< br > & self,< br > username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "api/v1/account/struct.AccountCheckResp.html" title = "struct pages::ctx::api::v1::account::AccountCheckResp" > AccountCheckResp< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > check if email exists in database< / p >
< / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.update_username" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#77-89" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.update_username" class = "fnname" > update_username< / a > (< br > & self,< br > current_username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ,< br > new_username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > update username of a registered user< / p >
< / div > < / details > < section id = "method.authenticate" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#92-104" > source< / a > < h4 class = "code-header" > async fn < a href = "#method.authenticate" class = "fnname" > authenticate< / a > (< br > & self,< br > username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ,< br > password: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.delete_user" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#107-112" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.delete_user" class = "fnname" > delete_user< / a > (< br > & self,< br > username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ,< br > password: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > delete user< / p >
< / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.change_password" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/account.rs.html#115-135" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.change_password" class = "fnname" > change_password< / a > (< br > & self,< br > username: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ,< br > payload: & < a class = "struct" href = "api/v1/account/struct.ChangePasswordReqest.html" title = "struct pages::ctx::api::v1::account::ChangePasswordReqest" > ChangePasswordReqest< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > change password< / p >
< / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" open > < summary > < section id = "impl-Ctx-1" class = "impl has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/auth.rs.html#55-104" > source< / a > < a href = "#impl-Ctx-1" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.login" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/auth.rs.html#58-80" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.login" class = "fnname" > login< / a > (& self, payload: & < a class = "struct" href = "api/v1/auth/struct.Login.html" title = "struct pages::ctx::api::v1::auth::Login" > Login< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > Log in method. Returns < code > Ok(())< / code > when user is authenticated and errors when authentication
2022-09-16 13:40:47 +05:30
fails< / p >
2022-11-09 14:42:22 +05:30
< / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.register" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/auth.rs.html#83-103" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.register" class = "fnname" > register< / a > (& self, payload: & < a class = "struct" href = "api/v1/auth/struct.Register.html" title = "struct pages::ctx::api::v1::auth::Register" > Register< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / summary > < div class = "docblock" > < p > register new user< / p >
2022-12-15 01:32:55 +05:30
< / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" open > < summary > < section id = "impl-Ctx-2" class = "impl has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/pages.rs.html#58-123" > source< / a > < a href = "#impl-Ctx-2" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < / summary > < div class = "impl-items" > < section id = "method.add_site" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/pages.rs.html#59-74" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.add_site" class = "fnname" > add_site< / a > (& self, site: < a class = "struct" href = "api/v1/pages/struct.AddSite.html" title = "struct pages::ctx::api::v1::pages::AddSite" > AddSite< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "../page/struct.Page.html" title = "struct pages::page::Page" > Page< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < section id = "method.update_site" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/pages.rs.html#76-103" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.update_site" class = "fnname" > update_site< / a > (< br > & self,< br > secret: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ,< br > branch: < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "https://docs.rs/uuid/1.2.2/uuid/struct.Uuid.html" title = "struct uuid::Uuid" > Uuid< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < section id = "method.delete_site" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/api/v1/pages.rs.html#105-122" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.delete_site" class = "fnname" > delete_site< / a > (< br > & self,< br > owner: < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > ,< br > site_id: < a class = "struct" href = "https://docs.rs/uuid/1.2.2/uuid/struct.Uuid.html" title = "struct uuid::Uuid" > Uuid< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../errors/enum.ServiceError.html" title = "enum pages::errors::ServiceError" > ServiceError< / a > > < / h4 > < / section > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" open > < summary > < section id = "impl-Ctx-3" class = "impl has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/mod.rs.html#40-75" > source< / a > < a href = "#impl-Ctx-3" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.get_creds" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/mod.rs.html#42-50" > source< / a > < h4 class = "code-header" > pub fn < a href = "#method.get_creds" class = "fnname" > get_creds< / a > () -> ArgonConfig< / h4 > < / section > < / summary > < div class = "docblock" > < p > Get credential-process
< / div > < / details > < section id = "method.new" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/mod.rs.html#52-74" > source< / a > < h4 class = "code-header" > pub async fn < a href = "#method.new" class = "fnname" > new< / a > (settings: < a class = "struct" href = "../settings/struct.Settings.html" title = "struct pages::settings::Settings" > Settings< / a > ) -> < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/sync/struct.Arc.html" title = "struct alloc::sync::Arc" > Arc< / a > < Self> < / h4 > < / section > < / div > < / details > < / div > < h2 id = "trait-implementations" class = "small-section-header" > Trait Implementations< a href = "#trait-implementations" class = "anchor" > < / a > < / h2 > < div id = "trait-implementations-list" > < details class = "rustdoc-toggle implementors-toggle" open > < summary > < section id = "impl-Clone-for-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/mod.rs.html#31" > source< / a > < a href = "#impl-Clone-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html" title = "trait core::clone::Clone" > Clone< / a > for < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.clone" class = "method trait-impl has-srclink" > < a class = "srclink rightside" href = "../../src/pages/ctx/mod.rs.html#31" > source< / a > < a href = "#method.clone" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#tymethod.clone" class = "fnname" > clone< / a > (& self) -> < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h4 > < / section > < / summary > < div class = 'docblock' > Returns a copy of the value. < a href = "https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#tymethod.clone" > Read more< / a > < / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.clone_from" class = "method trait-impl has-srclink" > < span class = "rightside" > < span class = "since" title = "Stable since Rust version 1.0.0" > 1.0.0< / span > · < a class = "srclink" href = "https://doc.rust-lang.org/1.65.0/src/core/clone.rs.html#132-134" > source< / a > < / span > < a href = "#method.clone_from" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#method.clone_from" class = "fnname" > clone_from< / a > (& mut self, source: < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.reference.html" > & < / a > Self)< / h4 > < / section > < / summary > < div class = 'docblock' > Performs copy-assignment from < code > source< / code > . < a href = "https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#method.clone_from" > Read more< / a > < / div > < / details > < / div > < / details > < / div > < h2 id = "synthetic-implementations" class = "small-section-header" > Auto Trait Implementations< a href = "#synthetic-implementations" class = "anchor" > < / a > < / h2 > < div id = "synthetic-implementations-list" > < section id = "impl-RefUnwindSafe-for-Ctx" class = "impl has-srclink" > < a href = "#impl-RefUnwindSafe-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl !< a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title = "trait core::panic::unwind_safe::RefUnwindSafe" > RefUnwindSafe< / a > for < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < section id = "impl-Send-for-Ctx" class = "impl has-srclink" > < a href = "#impl-Send-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/marker/trait.Send.html" title = "trait core::marker::Send" > Send< / a > for < a class = "struct" href = "struct.Ctx.html" title = "struct pages::ctx::Ctx" > Ctx< / a > < / h3 > < / section > < section id = "impl-Sync-for-Ctx" class = "impl has-srclink" > < a href = "#impl-Sync-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/marker/trait.Sync.html" title = "trait core::marker::Sync" > Sync< / a >
2022-11-11 15:23:44 +05:30
< / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" > < summary > < section id = "impl-Instrument-for-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276" > source< / a > < a href = "#impl-Instrument-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl< T> < a class = "trait" href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html" title = "trait tracing::instrument::Instrument" > Instrument< / a > for T< / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.instrument" class = "method trait-impl has-srclink" > < a class = "srclink rightside" href = "https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82" > source< / a > < a href = "#method.instrument" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument" class = "fnname" > instrument< / a > (self, span: < a class = "struct" href = "https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title = "struct tracing::span::Span" > Span< / a > ) -> < a class = "struct" href = "https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title = "struct tracing::instrument::Instrumented" > Instrumented< / a > < Self> < / h4 > < / section > < / summary > < div class = 'docblock' > Instruments this type with the provided < a href = "https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title = "Span" > < code > Span< / code > < / a > , returning an
< code > Instrumented< / code > wrapper. < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument" > Read more< / a > < / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.in_current_span" class = "method trait-impl has-srclink" > < a class = "srclink rightside" href = "https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121" > source< / a > < a href = "#method.in_current_span" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span" class = "fnname" > in_current_span< / a > (self) -> < a class = "struct" href = "https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title = "struct tracing::instrument::Instrumented" > Instrumented< / a > < Self> < / h4 > < / section > < / summary > < div class = 'docblock' > Instruments this type with the < a href = "https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current" > current< / a > < a href = "https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" > < code > Span< / code > < / a > , returning an
< code > Instrumented< / code > wrapper. < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span" > Read more< / a > < / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" > < summary > < section id = "impl-Into%3CU%3E-for-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#543" > source< / a > < a href = "#impl-Into%3CU%3E-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl< T, U> < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/convert/trait.Into.html" title = "trait core::convert::Into" > Into< / a > < U> for T< span class = "where fmt-newline" > where< br > U: < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/convert/trait.From.html" title = "trait core::convert::From" > From< / a > < T> ,< / span > < / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.into" class = "method trait-impl has-srclink" > < span class = "rightside" > < span class = "since" title = "const unstable" > const: < a href = "https://github.com/rust-lang/rust/issues/88674" title = "Tracking issue for const_convert" > unstable< / a > < / span > · < a class = "srclink" href = "https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#551" > source< / a > < / span > < a href = "#method.into" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://doc.rust-lang.org/1.65.0/core/convert/trait.Into.html#tymethod.into" class = "fnname" > into< / a > (self) -> U< / h4 > < / section > < / summary > < div class = "docblock" > < p > Calls < code > U::from(self)< / code > .< / p >
2022-04-09 11:18:36 +05:30
< p > That is, this conversion is whatever the implementation of
2022-11-09 14:42:22 +05:30
< code > < a href = "https://doc.rust-lang.org/1.65.0/core/convert/trait.From.html" title = "From" > From< / a > < T> for U< / code > chooses to do.< / p >
2022-12-15 01:32:55 +05:30
< / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" > < summary > < section id = "impl-Same%3CT%3E-for-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "https://docs.rs/typenum/1.16.0/src/typenum/type_operators.rs.html#34" > source< / a > < a href = "#impl-Same%3CT%3E-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl< T> < a class = "trait" href = "https://docs.rs/typenum/1.16.0/typenum/type_operators/trait.Same.html" title = "trait typenum::type_operators::Same" > Same< / a > < T> for T< / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle" open > < summary > < section id = "associatedtype.Output" class = "associatedtype trait-impl has-srclink" > < a href = "#associatedtype.Output" class = "anchor" > < / a > < h4 class = "code-header" > type < a href = "https://docs.rs/typenum/1.16.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class = "associatedtype" > Output< / a > = T< / h4 > < / section > < / summary > < div class = 'docblock' > Should always be < code > Self< / code > < / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" > < summary > < section id = "impl-ToOwned-for-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "https://doc.rust-lang.org/1.65.0/src/alloc/borrow.rs.html#83" > source< / a > < a href = "#impl-ToOwned-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl< T> < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html" title = "trait alloc::borrow::ToOwned" > ToOwned< / a > for T< span class = "where fmt-newline" > where< br > T: < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html" title = "trait core::clone::Clone" > Clone< / a > ,< / span > < / h3 > < / section > < / summary > < div class = "impl-items" > < details class = "rustdoc-toggle" open > < summary > < section id = "associatedtype.Owned" class = "associatedtype trait-impl has-srclink" > < a href = "#associatedtype.Owned" class = "anchor" > < / a > < h4 class = "code-header" > type < a href = "https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class = "associatedtype" > Owned< / a > = T< / h4 > < / section > < / summary > < div class = 'docblock' > The resulting type after obtaining ownership.< / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.to_owned" class = "method trait-impl has-srclink" > < a class = "srclink rightside" href = "https://doc.rust-lang.org/1.65.0/src/alloc/borrow.rs.html#88" > source< / a > < a href = "#method.to_owned" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class = "fnname" > to_owned< / a > (& self) -> T< / h4 > < / section > < / summary > < div class = 'docblock' > Creates owned data from borrowed data, usually by cloning. < a href = "https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" > Read more< / a > < / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.clone_into" class = "method trait-impl has-srclink" > < a class = "srclink rightside" href = "https://doc.rust-lang.org/1.65.0/src/alloc/borrow.rs.html#92" > source< / a > < a href = "#method.clone_into" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class = "fnname" > clone_into< / a > (& self, target: < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.reference.html" > & mut < / a > T)< / h4 > < / section > < / summary > < div class = 'docblock' > Uses borrowed data to replace owned data, usually by cloning. < a href = "https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#method.clone_into" > Read more< / a > < / div > < / details > < / div > < / details > < details class = "rustdoc-toggle implementors-toggle" > < summary > < section id = "impl-TryFrom%3CU%3E-for-Ctx" class = "impl has-srclink" > < a class = "srclink rightside" href = "https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#601" > source< / a > < a href = "#impl-TryFrom%3CU%3E-for-Ctx" class = "anchor" > < / a > < h3 class = "code-header in-band" > impl< T, U> < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/
2022-11-11 15:23:44 +05:30
< a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title = "WithDispatch" > < code > WithDispatch< / code > < / a > wrapper. < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" > Read more< / a > < / div > < / details > < details class = "rustdoc-toggle method-toggle" open > < summary > < section id = "method.with_current_subscriber" class = "method trait-impl has-srclink" > < a class = "srclink rightside" href = "https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221" > source< / a > < a href = "#method.with_current_subscriber" class = "anchor" > < / a > < h4 class = "code-header" > fn < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class = "fnname" > with_current_subscriber< / a > (self) -> < a class = "struct" href = "https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title = "struct tracing::instrument::WithDispatch" > WithDispatch< / a > < Self> < / h4 > < / section > < / summary > < div class = 'docblock' > Attaches the current < a href = "https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber" > default< / a > < a href = "https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html" > < code > Subscriber< / code > < / a > to this type, returning a
< a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title = "WithDispatch" > < code > WithDispatch< / code > < / a > wrapper. < a href = "https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" > Read more< / a > < / div > < / details > < / div > < / details > < / div > < / section > < / div > < / main > < div id = "rustdoc-vars" data-root-path = "../../" data-current-crate = "pages" data-themes = "ayu,dark,light" data-resource-suffix = "" data-rustdoc-version = "1.65.0 (897e37553 2022-11-02)" > < / div > < / body > < / html >