pub struct StreamInfo {
pub available: bool,
pub status_code: Option<u16>,
pub response_time_ms: u64,
pub content_type: Option<String>,
pub content_length: Option<u64>,
pub error: Option<String>,
}Expand description
Information about a single stream’s availability.
Fields§
§available: boolWhether the stream responded successfully (2xx status).
status_code: Option<u16>HTTP status code returned, if any.
response_time_ms: u64Time from request start to first byte, in milliseconds.
content_type: Option<String>Content-Type header value, if present.
content_length: Option<u64>Content-Length header value, if present.
error: Option<String>Error description, if the check failed.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamInfo
impl Debug for StreamInfo
Source§impl<'de> Deserialize<'de> for StreamInfo
impl<'de> Deserialize<'de> for StreamInfo
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 StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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