pub trait SeekableExt: 'static {
// Required methods
fn can_seek(&self) -> bool;
fn can_truncate(&self) -> bool;
fn seek<P: IsA<Cancellable>>(
&self,
offset: i64,
type_: SeekType,
cancellable: Option<&P>,
) -> Result<(), Error>;
fn tell(&self) -> i64;
fn truncate<P: IsA<Cancellable>>(
&self,
offset: i64,
cancellable: Option<&P>,
) -> Result<(), Error>;
}
Required Methods§
fn can_seek(&self) -> bool
fn can_truncate(&self) -> bool
fn seek<P: IsA<Cancellable>>( &self, offset: i64, type_: SeekType, cancellable: Option<&P>, ) -> Result<(), Error>
fn tell(&self) -> i64
fn truncate<P: IsA<Cancellable>>( &self, offset: i64, cancellable: Option<&P>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.