[−][src]Struct genio::util::RepeatBytes
Reader repeating a sequence of bytes infinitely.
Trait Implementations
impl<B: AsRef<[u8]>> Read for RepeatBytes<B>
[src]
type ReadError = Void
Value of this type is returned when read()
fails. Read more
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::ReadError>
[src]
fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::ReadError>>
[src]
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::ReadError>>
fn available_bytes(&self, _at_least: usize) -> bool
[src]
fn chain<R: Read>(self, other: R) -> Chain<Self, R> where
Self: Sized,
[src]
Self: Sized,
fn read_to_end<T: ExtendFromReader>(
&mut self,
container: &mut T
) -> Result<usize, ExtendError<Self::ReadError, T::ExtendError>> where
Self: ReadOverwrite,
[src]
&mut self,
container: &mut T
) -> Result<usize, ExtendError<Self::ReadError, T::ExtendError>> where
Self: ReadOverwrite,
fn by_ref(&mut self) -> &mut Self where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<B> RefUnwindSafe for RepeatBytes<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for RepeatBytes<B> where
B: Send,
B: Send,
impl<B> Sync for RepeatBytes<B> where
B: Sync,
B: Sync,
impl<B> Unpin for RepeatBytes<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for RepeatBytes<B> where
B: UnwindSafe,
B: UnwindSafe,
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<R> ReadExt for R where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
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>,