pub struct HistoricKey {
pub key: ConnectionKey,
pub created_nanos: u128,
}Expand description
Identity of an archived (closed) connection: the flow key plus the
connection’s creation time, so multiple closed connections that reused the
same 4-tuple don’t clobber each other. (Replaces the former
"<key>:<created_at_nanos>" string suffix.)
Fields§
§key: ConnectionKey§created_nanos: u128Implementations§
Source§impl HistoricKey
impl HistoricKey
Sourcepub fn for_connection(key: ConnectionKey, conn: &Connection) -> Self
pub fn for_connection(key: ConnectionKey, conn: &Connection) -> Self
The identity conn has (or will have) in the historic table.
Trait Implementations§
Source§impl Clone for HistoricKey
impl Clone for HistoricKey
impl Copy for HistoricKey
Source§impl Debug for HistoricKey
impl Debug for HistoricKey
Source§impl Display for HistoricKey
impl Display for HistoricKey
impl Eq for HistoricKey
Source§impl Hash for HistoricKey
impl Hash for HistoricKey
Source§impl PartialEq for HistoricKey
impl PartialEq for HistoricKey
impl StructuralPartialEq for HistoricKey
Auto Trait Implementations§
impl Freeze for HistoricKey
impl RefUnwindSafe for HistoricKey
impl Send for HistoricKey
impl Sync for HistoricKey
impl Unpin for HistoricKey
impl UnsafeUnpin for HistoricKey
impl UnwindSafe for HistoricKey
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