[−][src]Struct dipstick::Stream
Buffered metrics text Input.
Implementations
impl<W: Write + Send + Sync + 'static> Stream<W>[src]
impl Stream<File>[src]
pub fn to_file<P: AsRef<Path>>(file: P) -> Result<Stream<File>>[src]
Use write_to_file()
Write metric values to a file.
pub fn write_to_file<P: AsRef<Path>>(file: P) -> Result<Stream<File>>[src]
Write metric values to a file.
pub fn to_new_file<P: AsRef<Path>>(
file: P,
clobber: bool
) -> Result<Stream<File>>[src]
file: P,
clobber: bool
) -> Result<Stream<File>>
Use write_to_new_file()
Write metrics to a new file.
Creates a new file to dump data into. If clobber is set to true, it allows overwriting
existing file, if false, the attempt will result in an error.
pub fn write_to_new_file<P: AsRef<Path>>(
file: P,
clobber: bool
) -> Result<Stream<File>>[src]
file: P,
clobber: bool
) -> Result<Stream<File>>
Write metrics to a new file.
Creates a new file to dump data into. If clobber is set to true, it allows overwriting
existing file, if false, the attempt will result in an error.
impl Stream<Stderr>[src]
pub fn to_stderr() -> Stream<Stderr>[src]
Use write_to_stderr()
Write metric values to stderr.
pub fn write_to_stderr() -> Stream<Stderr>[src]
Write metric values to stderr.
impl Stream<Stdout>[src]
pub fn to_stdout() -> Stream<Stdout>[src]
Use write_to_stdout()
Write metric values to stdout.
pub fn write_to_stdout() -> Stream<Stdout>[src]
Write metric values to stdout.
Trait Implementations
impl<W: Write + Send + Sync + 'static> Buffered for Stream<W>[src]
fn buffered(&self, buffering: Buffering) -> Self[src]
fn get_buffering(&self) -> Buffering[src]
fn is_buffered(&self) -> bool[src]
impl<W: Write + Send + Sync + 'static> CachedInput for Stream<W>[src]
impl<W: Write + Send + Sync + 'static> Clone for Stream<W>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<W: Write + Send + Sync + 'static> Formatting for Stream<W>[src]
fn formatting(&self, format: impl LineFormat + 'static) -> Self[src]
impl<W: Write + Send + Sync + 'static> Input for Stream<W>[src]
type SCOPE = TextScope<W>
The type of Scope returned byt this input.
fn metrics(&self) -> Self::SCOPE[src]
fn input(&self) -> Self::SCOPE[src]
fn new_scope(&self) -> Self::SCOPE[src]
impl<W: Write + Send + Sync + 'static> QueuedInput for Stream<W>[src]
fn queued(self, max_size: usize) -> InputQueue[src]
Auto Trait Implementations
impl<W> !RefUnwindSafe for Stream<W>
impl<W> Send for Stream<W>
impl<W> Sync for Stream<W>
impl<W> Unpin for Stream<W>
impl<W> !UnwindSafe for Stream<W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,