pub struct ProbeRequest {
pub hash: [u8; 32],
pub timestamp_us: u64,
}Expand description
Client → node request on cdn/probe/v1 (ADR 005 §cdn/probe/v1).
A probe is unauthenticated and unpaid: it asks a candidate node whether it
holds hash and at what rate it will serve it, so the client can rank
candidates on both availability and price in a single round-trip.
timestamp_us is a requester-generated microsecond timestamp echoed back
in ProbeResponseBody::timestamp_us; it serves both response
correlation and RTT measurement (RTT = receive_time − timestamp_us)
and is
part of the EIP-712 signed set so the slashing window can be computed
on-chain from a single requester clock (ADR 014 §1).
Fields§
§hash: [u8; 32]BLAKE3 hash of the blob being queried (iroh Hash, 32 bytes).
timestamp_us: u64Requester-generated microseconds since Unix epoch, echoed back.
Trait Implementations§
Source§impl Clone for ProbeRequest
impl Clone for ProbeRequest
impl Copy for ProbeRequest
Source§impl Debug for ProbeRequest
impl Debug for ProbeRequest
Source§impl<'de> Deserialize<'de> for ProbeRequest
impl<'de> Deserialize<'de> for ProbeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProbeRequest
Source§impl PartialEq for ProbeRequest
impl PartialEq for ProbeRequest
Source§impl Serialize for ProbeRequest
impl Serialize for ProbeRequest
impl StructuralPartialEq for ProbeRequest
Auto Trait Implementations§
impl Freeze for ProbeRequest
impl RefUnwindSafe for ProbeRequest
impl Send for ProbeRequest
impl Sync for ProbeRequest
impl Unpin for ProbeRequest
impl UnsafeUnpin for ProbeRequest
impl UnwindSafe for ProbeRequest
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