pub struct ColdDownloadResult {
pub url: String,
pub endpoint: String,
pub success: bool,
pub bytes_downloaded: u64,
pub elapsed_ms: u64,
pub status_code: Option<u16>,
pub error: Option<String>,
}Expand description
Cold end-to-end download probe. Pulls the full byte stream from
/bytes/{ref} (for Bee vantages) or /bzz/{ref}/ (for gateways)
and times the entire transfer. Distinct from the stewardship
probe, which only walks the chunk graph — cold-download exercises
the HTTP body transport too. Added in 0.5.
Fields§
§url: String§endpoint: StringPath probed on this URL — /bytes/{ref} for vantages,
/bzz/{ref}/ for gateways.
success: booltrue if HTTP status was 2xx and the body fully streamed.
false for 4xx/5xx or transport errors during body read.
bytes_downloaded: u64Total bytes streamed before the response ended (or errored).
elapsed_ms: u64§status_code: Option<u16>§error: Option<String>Trait Implementations§
Source§impl Debug for ColdDownloadResult
impl Debug for ColdDownloadResult
Source§impl<'de> Deserialize<'de> for ColdDownloadResult
impl<'de> Deserialize<'de> for ColdDownloadResult
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
Auto Trait Implementations§
impl Freeze for ColdDownloadResult
impl RefUnwindSafe for ColdDownloadResult
impl Send for ColdDownloadResult
impl Sync for ColdDownloadResult
impl Unpin for ColdDownloadResult
impl UnsafeUnpin for ColdDownloadResult
impl UnwindSafe for ColdDownloadResult
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