pub struct Upgrade {
pub target: String,
pub authorization: Option<String>,
pub header_names: Vec<String>,
pub outcome: UpgradeOutcome,
}Expand description
What one upgrade attempt carried.
The Authorization header is kept verbatim because ORB-1 asserts that the resolved secret’s
bytes reached the wire, and an assertion against a redacted record could not fail. Nothing
here is logged; the value only ever lives in a test’s memory, and only fixture keys are ever
presented to this peer.
Fields§
§target: StringThe request target as sent — path and query, so ORB-1 can read ?model= from it.
The Authorization header verbatim, or None when the request carried none.
header_names: Vec<String>Every header name the request carried, lowercased. ORB-1 asserts the retired beta header is absent, which is only evidence if the peer would have seen it.
outcome: UpgradeOutcomeHow the peer answered.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Upgrade
impl RefUnwindSafe for Upgrade
impl Send for Upgrade
impl Sync for Upgrade
impl Unpin for Upgrade
impl UnsafeUnpin for Upgrade
impl UnwindSafe for Upgrade
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<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>
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