pub struct DiscoveryOptions {
pub pinned: Option<PinnedNode>,
pub rediscover: bool,
pub max_sources: usize,
pub registry_timeout: Duration,
pub proxy_warming: ProxyWarmingParams,
}Expand description
How a pull finds a blob’s holders.
Fields§
§pinned: Option<PinnedNode>The one node to fetch from. None discovers the holders.
rediscover: boolRead the registry and probe, even when the peer store holds a fresh candidate set.
max_sources: usizeHow many holders one fetch stripes across at once.
registry_timeout: DurationThe bound on one registry read. The peer-store fallback still runs when the read times out.
proxy_warming: ProxyWarmingParamsThe proxy-warming rule.
Trait Implementations§
Source§impl Clone for DiscoveryOptions
impl Clone for DiscoveryOptions
Source§impl Debug for DiscoveryOptions
impl Debug for DiscoveryOptions
Source§impl Default for DiscoveryOptions
impl Default for DiscoveryOptions
Source§impl PartialEq for DiscoveryOptions
impl PartialEq for DiscoveryOptions
impl StructuralPartialEq for DiscoveryOptions
Auto Trait Implementations§
impl Freeze for DiscoveryOptions
impl RefUnwindSafe for DiscoveryOptions
impl Send for DiscoveryOptions
impl Sync for DiscoveryOptions
impl Unpin for DiscoveryOptions
impl UnsafeUnpin for DiscoveryOptions
impl UnwindSafe for DiscoveryOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more