[−][src]Struct nyx::write::Writer
A writer that extends the write
and write_vectored
implementations to be able to
report their throughput every second.
Methods
impl<W, F> Writer<W, F>
[src]
Trait Implementations
impl<W: Eq, F: Eq> Eq for Writer<W, F>
[src]
impl<W: Clone, F: Clone> Clone for Writer<W, F>
[src]
ⓘImportant traits for Writer<W, F>fn clone(&self) -> Writer<W, F>
[src]
ⓘImportant traits for Writer<W, F>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W: PartialOrd, F: PartialOrd> PartialOrd<Writer<W, F>> for Writer<W, F>
[src]
fn partial_cmp(&self, other: &Writer<W, F>) -> Option<Ordering>
[src]
fn lt(&self, other: &Writer<W, F>) -> bool
[src]
fn le(&self, other: &Writer<W, F>) -> bool
[src]
fn gt(&self, other: &Writer<W, F>) -> bool
[src]
fn ge(&self, other: &Writer<W, F>) -> bool
[src]
impl<W: PartialEq, F: PartialEq> PartialEq<Writer<W, F>> for Writer<W, F>
[src]
impl<W: Ord, F: Ord> Ord for Writer<W, F>
[src]
fn cmp(&self, other: &Writer<W, F>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<W: Copy, F: Copy> Copy for Writer<W, F>
[src]
impl<W: Hash, F: Hash> Hash for Writer<W, F>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<W: Debug, F: Debug> Debug for Writer<W, F>
[src]
impl<W: Write, F: FnMut(Bps)> Write for Writer<W, F>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl<W, F> Send for Writer<W, F> where
F: Send,
W: Send,
F: Send,
W: Send,
impl<W, F> Unpin for Writer<W, F> where
F: Unpin,
W: Unpin,
F: Unpin,
W: Unpin,
impl<W, F> Sync for Writer<W, F> where
F: Sync,
W: Sync,
F: Sync,
W: Sync,
impl<W, F> UnwindSafe for Writer<W, F> where
F: UnwindSafe,
W: UnwindSafe,
F: UnwindSafe,
W: UnwindSafe,
impl<W, F> RefUnwindSafe for Writer<W, F> where
F: RefUnwindSafe,
W: RefUnwindSafe,
F: RefUnwindSafe,
W: RefUnwindSafe,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,