pub struct TransferPlan {
pub generation: PathGeneration,
pub class: ConnectionClass,
pub admission: TierAdmission,
pub hold: Option<Hold>,
pub windows: LaneWindows,
pub chunk_target: Duration,
pub suggested_chunk: Option<u64>,
pub range_window: Option<u64>,
}Expand description
What the client does on the current path. Produced only by plan_transfer.
Fields§
§generation: PathGenerationThe path this plan was made for.
class: ConnectionClassThe effective connection class: the OS’s, promoted to adverse by the link behaviour.
admission: TierAdmissionThe tiers that may run.
hold: Option<Hold>Why the plan admits less than every tier, if it does.
windows: LaneWindowsThe sessions and ranges windows: the compiled bounds, lowered by fresh advice and by the device’s power and thermal state.
chunk_target: DurationHow long one chunk request should take.
suggested_chunk: Option<u64>The chunk size the server suggested, while its advice is fresh.
range_window: Option<u64>The bounded Range window a fetch uses, or None for the open remainder.
Implementations§
Source§impl TransferPlan
impl TransferPlan
Sourcepub fn permits_tier(&self, tier: UploadTier, force_sync: bool) -> bool
pub fn permits_tier(&self, tier: UploadTier, force_sync: bool) -> bool
Whether tier may run, given the user’s force-sync consent.
Sourcepub fn defers_bulk(&self) -> bool
pub fn defers_bulk(&self) -> bool
Whether the plan holds bulk work back.
Sourcepub fn upload_policy(&self, requested: UploadPolicy) -> UploadPolicy
pub fn upload_policy(&self, requested: UploadPolicy) -> UploadPolicy
The upload policy a push runs under, given the one the user requested: a plan that
holds bulk back stages the push, so the index tier still publishes each asset.
Trait Implementations§
Source§impl Clone for TransferPlan
impl Clone for TransferPlan
Source§fn clone(&self) -> TransferPlan
fn clone(&self) -> TransferPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransferPlan
Source§impl Debug for TransferPlan
impl Debug for TransferPlan
impl Eq for TransferPlan
Source§impl PartialEq for TransferPlan
impl PartialEq for TransferPlan
Source§fn eq(&self, other: &TransferPlan) -> bool
fn eq(&self, other: &TransferPlan) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransferPlan
Auto Trait Implementations§
impl Freeze for TransferPlan
impl RefUnwindSafe for TransferPlan
impl Send for TransferPlan
impl Sync for TransferPlan
impl Unpin for TransferPlan
impl UnsafeUnpin for TransferPlan
impl UnwindSafe for TransferPlan
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
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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