pub struct Candidate {
pub same_host: bool,
pub same_priority: bool,
pub is_https: bool,
pub no_batch: bool,
}Expand description
まとめ取得の候補を選ぶための、1 項目ぶんの情報。
待ち行列の要素そのものではなく判定に要る分だけを持つ。 文字列を持たないので試験が書きやすい。
Fields§
§same_host: boolホストが選定対象と同じか。
same_priority: bool優先度が選定対象と同じか。
is_https: boolHTTPS か(HTTP はまとめ取得の対象外)。
no_batch: bool一度まとめ取得で失敗して「次は個別に取る」印が付いているか。
Trait Implementations§
impl Copy for Candidate
impl Eq for Candidate
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.