[−][src]Struct nyx::read::Reader
A reader that extends the read
and read_vectored
implementations to
report their throughput every second.
Methods
impl<R, F> Reader<R, F>
[src]
Trait Implementations
impl<R: Eq, F: Eq> Eq for Reader<R, F>
[src]
impl<R: Clone, F: Clone> Clone for Reader<R, F>
[src]
ⓘImportant traits for Reader<R, F>fn clone(&self) -> Reader<R, F>
[src]
ⓘImportant traits for Reader<R, F>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: PartialOrd, F: PartialOrd> PartialOrd<Reader<R, F>> for Reader<R, F>
[src]
fn partial_cmp(&self, other: &Reader<R, F>) -> Option<Ordering>
[src]
fn lt(&self, other: &Reader<R, F>) -> bool
[src]
fn le(&self, other: &Reader<R, F>) -> bool
[src]
fn gt(&self, other: &Reader<R, F>) -> bool
[src]
fn ge(&self, other: &Reader<R, F>) -> bool
[src]
impl<R: PartialEq, F: PartialEq> PartialEq<Reader<R, F>> for Reader<R, F>
[src]
impl<R: Ord, F: Ord> Ord for Reader<R, F>
[src]
fn cmp(&self, other: &Reader<R, 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<R: Copy, F: Copy> Copy for Reader<R, F>
[src]
impl<R: Hash, F: Hash> Hash for Reader<R, 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<R: Debug, F: Debug> Debug for Reader<R, F>
[src]
impl<R: Read, F: FnMut(Bps)> Read for Reader<R, F>
[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
[src]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut]) -> Result<usize>
[src]
unsafe fn initializer(&self) -> Initializer
[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
1.0.0[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
fn bytes(self) -> Bytes<Self>
1.0.0[src]
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
1.0.0[src]
R: Read,
fn take(self, limit: u64) -> Take<Self>
1.0.0[src]
Auto Trait Implementations
impl<R, F> Send for Reader<R, F> where
F: Send,
R: Send,
F: Send,
R: Send,
impl<R, F> Unpin for Reader<R, F> where
F: Unpin,
R: Unpin,
F: Unpin,
R: Unpin,
impl<R, F> Sync for Reader<R, F> where
F: Sync,
R: Sync,
F: Sync,
R: Sync,
impl<R, F> UnwindSafe for Reader<R, F> where
F: UnwindSafe,
R: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
impl<R, F> RefUnwindSafe for Reader<R, F> where
F: RefUnwindSafe,
R: RefUnwindSafe,
F: RefUnwindSafe,
R: 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,