mysqlbinlog_network/mysql_binlog/
tell.rs

1use std::io::{Result, Seek, SeekFrom};
2
3pub trait Tell: Seek {
4    fn tell(&mut self) -> Result<u64> {
5        self.seek(SeekFrom::Current(0))
6    }
7}
8
9impl<T> Tell for T where T: Seek {}