Struct nue_io::SeekAbsoluteRewind [] [src]

pub struct SeekAbsoluteRewind<T> {
    // some fields omitted
}

An absolute seeking wrapper around a Tell + SeekForward + SeekRewind type.

Methods

impl<T> SeekAbsoluteRewind<T>

fn new(inner: T) -> Self

Creates a new SeekAbsoluteRewind.

Trait Implementations

impl<T: Tell + SeekForward + SeekRewind> SeekAbsolute for SeekAbsoluteRewind<T>

fn seek_absolute(&mut self, pos: u64) -> Result<u64>

impl<T: SeekRewind> SeekRewind for SeekAbsoluteRewind<T>

fn seek_rewind(&mut self) -> Result<()>

impl<T: Tell> Tell for SeekAbsoluteRewind<T>

fn tell(&mut self) -> Result<u64>

impl<T: SeekForward> SeekForward for SeekAbsoluteRewind<T>

fn seek_forward(&mut self, offset: u64) -> Result<u64>

impl<T: SeekEnd> SeekEnd for SeekAbsoluteRewind<T>

fn seek_end(&mut self, offset: i64) -> Result<u64>

impl<T: SeekBackward> SeekBackward for SeekAbsoluteRewind<T>

fn seek_backward(&mut self, offset: u64) -> Result<u64>

impl<T: Read> Read for SeekAbsoluteRewind<T>

fn read(&mut self, buf: &mut [u8]) -> Result<usize>

fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>

fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>

fn by_ref(&mut self) -> &mut Self

fn bytes(self) -> Bytes<Self>

fn chars(self) -> Chars<Self>

fn chain<R>(self, next: R) -> Chain<Self, R> where R: Read

fn take(self, limit: u64) -> Take<Self>

fn tee<W>(self, out: W) -> Tee<Self, W> where W: Write

impl<T: Write> Write for SeekAbsoluteRewind<T>

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write

impl<T: BufRead> BufRead for SeekAbsoluteRewind<T>

fn fill_buf(&mut self) -> Result<&[u8]>

fn consume(&mut self, amt: usize)

fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>

fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>

fn split(self, byte: u8) -> Split<Self>

fn lines(self) -> Lines<Self>