aboutsummaryrefslogtreecommitdiffstats
path: root/src/blocking/reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocking/reader.rs')
-rw-r--r--src/blocking/reader.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blocking/reader.rs b/src/blocking/reader.rs
index 86c348d..609c393 100644
--- a/src/blocking/reader.rs
+++ b/src/blocking/reader.rs
@@ -1,4 +1,4 @@
-/// Reads ttyrec frames from a `std::io::Read` instance.
+/// Reads ttyrec frames from a [`std::io::Read`] instance.
pub struct Reader<T: std::io::Read> {
input: T,
parser: crate::Parser,
@@ -6,7 +6,7 @@ pub struct Reader<T: std::io::Read> {
}
impl<T: std::io::Read> Reader<T> {
- /// Creates a new `Reader` from a `std::io::Read` instance.
+ /// Creates a new [`Reader`] from a [`std::io::Read`] instance.
pub fn new(input: T) -> Self {
Self {
input,
@@ -18,9 +18,9 @@ impl<T: std::io::Read> Reader<T> {
/// Returns the next parsed frame from the input stream.
///
/// # Errors
- /// * `crate::Error::EOF`: The input stream has been closed.
- /// * `crate::Error::Read`: There was an error reading from the input
- /// stream.
+ /// * [`Error::EOF`](crate::Error::EOF): The input stream has been closed.
+ /// * [`Error::Read`](crate::Error::Read): There was an error reading from
+ /// the input stream.
pub fn read_frame(&mut self) -> crate::Result<crate::Frame> {
loop {
if let Some(frame) = self.parser.next_frame() {
@@ -39,7 +39,7 @@ impl<T: std::io::Read> Reader<T> {
/// How much the timestamps in this file should be offset by.
///
- /// See `Parser::offset`.
+ /// See [`Parser::offset`](crate::Parser::offset).
pub fn offset(&self) -> Option<std::time::Duration> {
self.parser.offset()
}