pub struct NegotiateOutcome {
pub action: Action,
pub rounds: Vec<Round>,
}
Available on crate feature
fetch
only.Expand description
The negotiation-specific outcome of fetch()
.
Fields§
§action: Action
The outcome of the negotiation stage of the fetch operation.
If it is…
negotiate::Action::MustNegotiate
there will always be apack
.negotiate::Action::SkipToRefUpdate
there is nopack
but references can be updated right away.
Note that this is never negotiate::Action::NoChange` as this would mean there is no negotiation information at all so this structure wouldn’t be present.
rounds: Vec<Round>
Additional information for each round of negotiation.
Trait Implementations§
Source§impl Clone for NegotiateOutcome
impl Clone for NegotiateOutcome
Source§fn clone(&self) -> NegotiateOutcome
fn clone(&self) -> NegotiateOutcome
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NegotiateOutcome
impl RefUnwindSafe for NegotiateOutcome
impl Send for NegotiateOutcome
impl Sync for NegotiateOutcome
impl Unpin for NegotiateOutcome
impl UnwindSafe for NegotiateOutcome
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