pub struct HistoryEntry {
pub target: Uri,
pub index: HistoryIndex,
pub change: Option<TargetChange>,
/* private fields */
}Expand description
One History-Info entry.
Fields§
§target: UriThe URI targeted at this hop.
index: HistoryIndexThe hierarchical position of this hop.
change: Option<TargetChange>The preceding target and the semantics of the change.
Implementations§
Source§impl HistoryEntry
impl HistoryEntry
Sourcepub fn new(
target: Uri,
index: HistoryIndex,
change: Option<TargetChange>,
) -> Self
pub fn new( target: Uri, index: HistoryIndex, change: Option<TargetChange>, ) -> Self
Construct an entry without extensions.
Sourcepub fn reasons(&self) -> Result<Vec<ReasonValue>, HeaderError>
pub fn reasons(&self) -> Result<Vec<ReasonValue>, HeaderError>
Reasons embedded in this entry’s targeted-to URI.
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
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 moreAuto Trait Implementations§
impl !Freeze for HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnsafeUnpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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