SYMBOL INDEX (179 symbols across 15 files) FILE: build.rs function main (line 5) | fn main() -> Result<(), Box> { FILE: src/compat/daemon.rs function daemon (line 25) | pub fn daemon(nochdir: bool, noclose: bool) -> nix::Result<()> { FILE: src/config.rs type StorageT (line 16) | type StorageT = u8; constant REFRESH_BEFORE_EXPIRY_DEFAULT (line 19) | const REFRESH_BEFORE_EXPIRY_DEFAULT: Duration = Duration::from_secs(90); constant REFRESH_AT_LEAST_DEFAULT (line 22) | const REFRESH_AT_LEAST_DEFAULT: Duration = Duration::from_secs(90 * 60); constant REFRESH_RETRY_DEFAULT (line 24) | const REFRESH_RETRY_DEFAULT: Duration = Duration::from_secs(40); constant AUTH_NOTIFY_INTERVAL_DEFAULT (line 27) | const AUTH_NOTIFY_INTERVAL_DEFAULT: u64 = 15 * 60; constant HTTP_LISTEN_DEFAULT (line 29) | const HTTP_LISTEN_DEFAULT: &str = "127.0.0.1:0"; constant HTTPS_LISTEN_DEFAULT (line 31) | const HTTPS_LISTEN_DEFAULT: &str = "127.0.0.1:0"; type Config (line 34) | pub struct Config { method from_path (line 52) | pub fn from_path(conf_path: &Path) -> Result { method from_str (line 60) | pub fn from_str(input: &str) -> Result { function check_not_assigned (line 255) | fn check_not_assigned( function check_not_assigned_str (line 271) | fn check_not_assigned_str( function check_not_assigned_time (line 287) | fn check_not_assigned_time<'a, T>( function check_not_assigned_uri (line 303) | fn check_not_assigned_uri( function check_assigned (line 337) | fn check_assigned( type Account (line 363) | pub struct Account { method from_fields (line 378) | fn from_fields( method secure_eq (line 524) | pub fn secure_eq(&self, other: &Self) -> bool { method dump (line 539) | pub fn dump(&self) -> AccountDump { method secure_restorable (line 555) | pub fn secure_restorable(&self, act_dump: &AccountDump) -> bool { method redirect_uri (line 565) | pub fn redirect_uri( method refresh_at_least (line 582) | pub fn refresh_at_least(&self, config: &Config) -> Duration { method refresh_before_expiry (line 588) | pub fn refresh_before_expiry(&self, config: &Config) -> Duration { method refresh_retry (line 594) | pub fn refresh_retry(&self, config: &Config) -> Duration { type AccountDump (line 602) | pub struct AccountDump { function time_str_to_duration (line 617) | fn time_str_to_duration(t: &str) -> Result { function unescape_str (line 640) | fn unescape_str(us: &str) -> String { function error_at_span (line 667) | fn error_at_span( function test_unescape_string (line 694) | fn test_unescape_string() { function test_time_str_to_duration (line 703) | fn test_time_str_to_duration() { function string_escapes (line 724) | fn string_escapes() { function valid_config (line 735) | fn valid_config() { function at_least_one_account (line 790) | fn at_least_one_account() { function invalid_time (line 798) | fn invalid_time() { function dup_fields (line 806) | fn dup_fields() { function one_of_http_or_https (line 876) | fn one_of_http_or_https() { function http_or_https_redirect_uris_only (line 895) | fn http_or_https_redirect_uris_only() { function correct_listen_for_account (line 928) | fn correct_listen_for_account() { function invalid_uris (line 973) | fn invalid_uris() { function valid_https_config (line 989) | fn valid_https_config() { function mandatory_account_fields (line 1016) | fn mandatory_account_fields() { function local_overrides (line 1044) | fn local_overrides() { function login_hint_mutually_exclusive_query_field (line 1204) | fn login_hint_mutually_exclusive_query_field() { function endpoints_no_fragment (line 1220) | fn endpoints_no_fragment() { FILE: src/config_ast.rs type TopLevel (line 3) | pub enum TopLevel { type AccountField (line 21) | pub enum AccountField { FILE: src/main.rs constant PIZAUTH_CACHE_LEAF (line 42) | const PIZAUTH_CACHE_LEAF: &str = "pizauth"; constant PIZAUTH_CACHE_SOCK_LEAF (line 44) | const PIZAUTH_CACHE_SOCK_LEAF: &str = "pizauth.sock"; constant PIZAUTH_CONF_LEAF (line 46) | const PIZAUTH_CONF_LEAF: &str = "pizauth.conf"; function progname (line 48) | fn progname() -> String { function fatal (line 60) | fn fatal(msg: &str) -> ! { function usage (line 66) | fn usage() -> ! { function cache_path (line 74) | fn cache_path() -> PathBuf { function conf_path (line 110) | fn conf_path(matches: &getopts::Matches) -> PathBuf { function main (line 137) | fn main() { FILE: src/server/eventer.rs constant TOKEN_EVENT_CMD_TIMEOUT (line 15) | const TOKEN_EVENT_CMD_TIMEOUT: Duration = Duration::from_secs(10); type TokenEvent (line 17) | pub enum TokenEvent { method fmt (line 25) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { type Eventer (line 35) | pub struct Eventer { method new (line 42) | pub fn new() -> Result> { method eventer (line 50) | pub fn eventer(self: Arc, pstate: Arc) -> Re... method token_event (line 89) | pub fn token_event(&self, act_name: String, kind: TokenEvent) { FILE: src/server/http_server.rs constant RETRY_POST (line 28) | const RETRY_POST: u8 = 10; constant RETRY_DELAY (line 30) | const RETRY_DELAY: u64 = 6; constant MAX_HTTP_REQUEST_SIZE (line 35) | const MAX_HTTP_REQUEST_SIZE: usize = 16 * 1024; function request (line 38) | fn request( function fail (line 242) | fn fail( function parse_get (line 273) | fn parse_get(stream: &mut T, is_https: bool) -> Result<... function http_200 (line 349) | fn http_200(mut stream: T, body: &str) { function http_404 (line 357) | fn http_404(mut stream: T) { function http_400 (line 361) | fn http_400(mut stream: T) { function redirect_uri_matches (line 366) | fn redirect_uri_matches(expected: &Url, actual: &Url) -> bool { function http_server_setup (line 387) | pub fn http_server_setup(conf: &Config) -> Result PathBuf { function expiry_instant (line 71) | pub fn expiry_instant( function request (line 85) | fn request(pstate: Arc, mut stream: UnixStream) -> R... function instant_fmt (line 312) | fn instant_fmt(i: Instant) -> String { function startup_cmd (line 332) | fn startup_cmd(cmd: String) { function server (line 355) | pub fn server(conf_path: PathBuf, conf: Config, cache_path: &Path) -> Re... FILE: src/server/notifier.rs constant AUTH_NOTIFY_CMD_TIMEOUT (line 20) | const AUTH_NOTIFY_CMD_TIMEOUT: Duration = Duration::from_secs(10); constant ERROR_NOTIFY_CMD_TIMEOUT (line 22) | const ERROR_NOTIFY_CMD_TIMEOUT: Duration = Duration::from_secs(10); type Notifier (line 24) | pub struct Notifier { method new (line 30) | pub fn new() -> Result> { method notifier (line 37) | pub fn notifier( method notify_changes (line 111) | pub fn notify_changes(&self) { method next_wakeup (line 117) | fn next_wakeup(&self, pstate: &AuthenticatorState) -> Option { method notify_error (line 131) | pub fn notify_error( function notify_at (line 159) | fn notify_at(_pstate: &AuthenticatorState, ct_lk: &CTGuard, act_id: Acco... FILE: src/server/refresher.rs constant TRANSIENT_ERROR_RETRIES (line 25) | const TRANSIENT_ERROR_RETRIES: u64 = 6; constant TRANSIENT_ERROR_IF_CMD_TIMEOUT (line 27) | const TRANSIENT_ERROR_IF_CMD_TIMEOUT: Duration = Duration::from_secs(3 *... type RefreshKind (line 31) | enum RefreshKind { type Refresher (line 44) | pub struct Refresher { method new (line 50) | pub fn new() -> Arc { method sched_refresh (line 57) | pub fn sched_refresh(self: &Arc, pstate: Arc... method inner_refresh (line 173) | fn inner_refresh( method refresh_at (line 336) | fn refresh_at( method next_wakeup (line 381) | fn next_wakeup(&self, pstate: &AuthenticatorState) -> Option { method notify_changes (line 397) | pub fn notify_changes(&self) { method refresher (line 404) | pub fn refresher( FILE: src/server/request_token.rs function request_token (line 11) | pub fn request_token( FILE: src/server/state.rs constant NONCE_LEN (line 37) | const NONCE_LEN: usize = 12; constant CHACHA20_KEY (line 39) | const CHACHA20_KEY: &[u8; 32] = b"\x66\xa2\x47\xa8\x5e\x48\xcf\xec\xaa\x... constant DUMP_VERSION (line 42) | const DUMP_VERSION: u64 = 1; type AuthenticatorState (line 45) | pub struct AuthenticatorState { method new (line 62) | pub fn new( method ct_lock (line 91) | pub fn ct_lock(&self) -> CTGuard<'_> { method update_conf (line 98) | pub fn update_conf(&self, new_conf: Config) { method dump (line 107) | pub fn dump(&self) -> Result, Box> { method restore (line 128) | pub fn restore(&self, d: Vec) -> Result<(), Box> { type LockedState (line 154) | struct LockedState { method new (line 168) | fn new(config: Config) -> Self { method update_conf (line 187) | fn update_conf(&mut self, config: Config) { method dump (line 229) | fn dump(&self) -> Result, Box> { method restore (line 244) | fn restore(&mut self, dump: Vec) -> Result<(), Box> { method next_account_id (line 287) | fn next_account_id(&mut self) -> AccountId { type Dump (line 297) | struct Dump { type CTGuard (line 308) | pub struct CTGuard<'a> { function new (line 313) | fn new(guard: MutexGuard<'a, LockedState>) -> CTGuard<'a> { function config (line 317) | pub fn config(&self) -> &Config { function validate_act_name (line 322) | pub fn validate_act_name(&self, act_name: &str) -> Option { function is_act_id_valid (line 331) | pub fn is_act_id_valid(&self, act_id: AccountId) -> bool { function act_ids (line 336) | pub fn act_ids(&self) -> impl Iterator + '_ { function act_id_matching_token_state (line 341) | pub fn act_id_matching_token_state(&self, state: &str) -> Option &Account { function tokenstate (line 371) | pub fn tokenstate(&self, act_id: AccountId) -> &TokenState { function tokenstate_set_ongoing_refresh (line 386) | pub fn tokenstate_set_ongoing_refresh( function tokenstate_replace (line 418) | pub fn tokenstate_replace( type AccountId (line 438) | pub struct AccountId { type TokenState (line 443) | pub enum TokenState { method dump (line 491) | pub fn dump(&self) -> TokenStateDump { method restore (line 526) | pub fn restore(tsd: &TokenStateDump) -> TokenState { type TokenStateDump (line 480) | pub enum TokenStateDump { function test_act_validation (line 568) | fn test_act_validation() { function dump_restore (line 722) | fn dump_restore() { function dump_restore_error (line 858) | fn dump_restore_error() { FILE: src/shell_cmd.rs function shell_cmd (line 8) | pub fn shell_cmd( FILE: src/user_sender.rs function dump (line 11) | pub fn dump(cache_path: &Path) -> Result, Box> { function server_info (line 25) | pub fn server_info(cache_path: &Path) -> Result Resu... function reload (line 61) | pub fn reload(cache_path: &Path) -> Result<(), Box> { function restore (line 79) | pub fn restore(cache_path: &Path) -> Result<(), Box> { function revoke (line 100) | pub fn revoke(cache_path: &Path, account: &str) -> Result<(), Box R... function shutdown (line 143) | pub fn shutdown(cache_path: &Path) -> Result<(), Box> { function status (line 153) | pub fn status(cache_path: &Path) -> Result<(), Box> { FILE: tests/basic.rs constant ACCOUNT (line 17) | const ACCOUNT: &str = "test_account"; constant CLIENT_ID (line 18) | const CLIENT_ID: &str = "test_client_id"; constant CLIENT_SECRET (line 19) | const CLIENT_SECRET: &str = "test_secret"; constant CODE (line 20) | const CODE: &str = "test_code"; constant ACCESS_TOKEN (line 21) | const ACCESS_TOKEN: &str = "test_access_token"; constant REFRESH_TOKEN (line 22) | const REFRESH_TOKEN: &str = "test_refresh_token"; type PizauthServer (line 24) | struct PizauthServer { method start (line 30) | fn start(cwd: &Path, xdg_dir: &Path, configp: &Path, readyp: &Path) ->... method drop (line 50) | fn drop(&mut self) { type OAuthServer (line 59) | struct OAuthServer { method start (line 65) | fn start() -> Self { method auth_uri (line 86) | fn auth_uri(&self) -> String { method token_uri (line 90) | fn token_uri(&self) -> String { method join (line 94) | fn join(&mut self) { function pizauth_config (line 101) | fn pizauth_config(oauths: &OAuthServer) -> String { function pending_auth_url (line 120) | fn pending_auth_url(output: &Output) -> Url { function pizauth_cmd (line 127) | fn pizauth_cmd(xdg_dir: &Path, args: I) -> Command function handle_oauth_request (line 139) | fn handle_oauth_request(stream: TcpStream, expected_redirect_uri: &Mutex... type HttpRequest (line 212) | struct HttpRequest { method read (line 220) | fn read(stream: TcpStream) -> Self { method respond (line 257) | fn respond(mut self, status: u16, headers: &[(&str, &str)], body: &str) { type HttpResponse (line 266) | struct HttpResponse { function http_get (line 271) | fn http_get(url: &Url) -> HttpResponse { function basic_request_token (line 312) | fn basic_request_token() {