#[repr(i32)]pub enum ResponseType {
Samples = 0,
StreamedXorChunks = 1,
}Variants§
Samples = 0
Server will return a single ReadResponse message with matched series that includes list of raw samples. It’s recommended to use streamed response types instead.
Response headers: Content-Type: “application/x-protobuf” Content-Encoding: “snappy”
StreamedXorChunks = 1
Server will stream a delimited ChunkedReadResponse message that contains XOR encoded chunks for a single series. Each message is following varint size and fixed size bigendian uint32 for CRC32 Castagnoli checksum.
Response headers: Content-Type: “application/x-streamed-protobuf; proto=prometheus.ChunkedReadResponse” Content-Encoding: “”
Implementations§
Trait Implementations§
Source§impl Clone for ResponseType
impl Clone for ResponseType
Source§fn clone(&self) -> ResponseType
fn clone(&self) -> ResponseType
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 ResponseType
impl Debug for ResponseType
Source§impl Default for ResponseType
impl Default for ResponseType
Source§fn default() -> ResponseType
fn default() -> ResponseType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseType
impl<'de> Deserialize<'de> for ResponseType
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
Source§impl From<ResponseType> for i32
impl From<ResponseType> for i32
Source§fn from(value: ResponseType) -> i32
fn from(value: ResponseType) -> i32
Converts to this type from the input type.
Source§impl Hash for ResponseType
impl Hash for ResponseType
Source§impl Ord for ResponseType
impl Ord for ResponseType
Source§fn cmp(&self, other: &ResponseType) -> Ordering
fn cmp(&self, other: &ResponseType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResponseType
impl PartialEq for ResponseType
Source§impl PartialOrd for ResponseType
impl PartialOrd for ResponseType
Source§impl Serialize for ResponseType
impl Serialize for ResponseType
impl Copy for ResponseType
impl Eq for ResponseType
impl StructuralPartialEq for ResponseType
Auto Trait Implementations§
impl Freeze for ResponseType
impl RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl UnwindSafe for ResponseType
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