Function tor_circmgr::path::select_guard

source ยท
fn select_guard<'a, R: Rng, RT: Runtime>(
    rng: &mut R,
    netdir: &'a NetDir,
    guards: Option<&GuardMgr<RT>>,
    config: &PathConfig,
    chosen_exit: Option<&Relay<'_>>,
    compatible_with: Option<&OwnedChanTarget>,
    path_kind: &'static str
) -> Result<(MaybeOwnedRelay<'a>, Option<GuardMonitor>, Option<GuardUsable>)>
Expand description

Try to select a guard corresponding to the requirements of this builder.