pub trait SeekableExt:
IsA<Seekable>
+ Sealed
+ 'static {
// Provided methods
fn can_seek(&self) -> bool { ... }
fn can_truncate(&self) -> bool { ... }
fn seek(
&self,
offset: i64,
type_: SeekType,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error> { ... }
fn tell(&self) -> i64 { ... }
fn truncate(
&self,
offset: i64,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error> { ... }
}
Provided Methods§
fn can_seek(&self) -> bool
fn can_truncate(&self) -> bool
fn seek( &self, offset: i64, type_: SeekType, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>
fn tell(&self) -> i64
fn truncate( &self, offset: i64, cancellable: Option<&impl IsA<Cancellable>>, ) -> 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.