Docs.rs
prometheus-client-0.18.1
prometheus-client 0.18.1
Docs.rs crate page
Apache-2.0 OR MIT
Links
Homepage
Repository
crates.io
Source
Owners
mxinden
Dependencies
dtoa ^1.0
normal
itoa ^1.0
normal
parking_lot ^0.12
normal
prometheus-client-derive-text-encode ^0.3.0
normal
actix-web ^4
dev
async-std ^1
dev
criterion ^0.3
dev
http-types ^2
dev
pyo3 ^0.16
dev
quickcheck ^1
dev
rand ^0.8.4
dev
tide ^0.16
dev
Versions
50%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Encode
Required Methods
encode
Implementations on Foreign Types
&[T]
&str
()
(K, V)
Cow<'a, str>
String
Vec<T>
f64
u32
u64
Implementors
In prometheus_client::encoding::text
?
Trait
prometheus_client
::
encoding
::
text
::
Encode
source
·
[
−
]
pub trait Encode { fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>; }
Required Methods
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
Implementations on Foreign Types
source
impl
Encode
for
f64
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl
Encode
for
u64
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl
Encode
for
u32
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl<T:
Encode
>
Encode
for &
[T]
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl<T:
Encode
>
Encode
for
Vec
<T>
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl<K:
Encode
, V:
Encode
>
Encode
for
(K, V)
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl
Encode
for &
str
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl
Encode
for
String
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl<'a>
Encode
for
Cow
<'a,
str
>
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
impl
Encode
for
()
source
fn
encode
(&self, _writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
Implementors
source
impl
Encode
for
MetricType
source
impl
Encode
for
Unit