pub struct SourcePlan {
pub priority: u32,
pub max_connections: Option<usize>,
}Expand description
What is known about one candidate source before the transfer starts.
Fields§
§priority: u32RFC 5854 direction: 1 is best. Use crate::sched::NO_PRIORITY for
“unranked”, which makes every source weigh the same.
max_connections: Option<usize>A ceiling stated by the source itself (Metalink maxconnections).
None means the source stated none, in which case the client’s own
per-host ceiling applies. A stated value NARROWS that ceiling and never
widens it: a mirror operator asking for at most one connection is making
a request about their machine, while a mirror claiming it can take
sixty-four is not entitled to override the user’s politeness setting.
Implementations§
Trait Implementations§
Source§impl Clone for SourcePlan
impl Clone for SourcePlan
Source§fn clone(&self) -> SourcePlan
fn clone(&self) -> SourcePlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourcePlan
Source§impl Debug for SourcePlan
impl Debug for SourcePlan
Source§impl Default for SourcePlan
impl Default for SourcePlan
impl Eq for SourcePlan
Source§impl PartialEq for SourcePlan
impl PartialEq for SourcePlan
impl StructuralPartialEq for SourcePlan
Auto Trait Implementations§
impl Freeze for SourcePlan
impl RefUnwindSafe for SourcePlan
impl Send for SourcePlan
impl Sync for SourcePlan
impl Unpin for SourcePlan
impl UnsafeUnpin for SourcePlan
impl UnwindSafe for SourcePlan
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