pub struct PitEntry {
pub name: Arc<Name>,
pub selector: Option<Selector>,
pub in_records: Vec<InRecord>,
pub out_records: Vec<OutRecord>,
pub nonces_seen: SmallVec<[u32; 4]>,
pub is_satisfied: bool,
pub created_at: u64,
pub expires_at: u64,
}Expand description
A single PIT entry — one per pending (Name, Option
Fields§
§name: Arc<Name>§selector: Option<Selector>§in_records: Vec<InRecord>§out_records: Vec<OutRecord>§nonces_seen: SmallVec<[u32; 4]>Nonces seen so far — inline for the common case of ≤4 nonces.
is_satisfied: bool§created_at: u64§expires_at: u64Implementations§
Source§impl PitEntry
impl PitEntry
pub fn new( name: Arc<Name>, selector: Option<Selector>, now: u64, lifetime_ms: u64, ) -> Self
pub fn add_in_record( &mut self, face_id: u32, nonce: u32, expires_at: u64, lp_pit_token: Option<Bytes>, )
pub fn add_out_record(&mut self, face_id: u32, nonce: u32, sent_at: u64)
Sourcepub fn in_record_faces(&self) -> impl Iterator<Item = u32> + '_
pub fn in_record_faces(&self) -> impl Iterator<Item = u32> + '_
Returns the face IDs of all in-records (for Data fan-back).
Auto Trait Implementations§
impl Freeze for PitEntry
impl RefUnwindSafe for PitEntry
impl Send for PitEntry
impl Sync for PitEntry
impl Unpin for PitEntry
impl UnwindSafe for PitEntry
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