pub trait FileStream:
AsyncRead
+ AsyncWrite
+ AsyncSeek
+ Unpin
+ Send
+ Sync {
// Required method
fn set_len(
&self,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>;
}
pub trait FileStream:
AsyncRead
+ AsyncWrite
+ AsyncSeek
+ Unpin
+ Send
+ Sync {
// Required method
fn set_len(
&self,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>;
}