Skip to content

Commit fbc9fb8

Browse files
authored
rename (#343)
1 parent 0bb7282 commit fbc9fb8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compio-runtime/src/runtime/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use send_wrapper::SendWrapper;
2929

3030
#[cfg(feature = "time")]
3131
use crate::runtime::time::{TimerFuture, TimerRuntime};
32-
use crate::{BufResult, runtime::op::OpFlagsFuture};
32+
use crate::{BufResult, runtime::op::OpFuture};
3333

3434
scoped_tls::scoped_thread_local!(static CURRENT_RUNTIME: Runtime);
3535

@@ -280,7 +280,7 @@ impl Runtime {
280280
op: T,
281281
) -> impl Future<Output = (BufResult<usize, T>, u32)> {
282282
match self.submit_raw(op) {
283-
PushEntry::Pending(user_data) => Either::Left(OpFlagsFuture::new(user_data)),
283+
PushEntry::Pending(user_data) => Either::Left(OpFuture::new(user_data)),
284284
PushEntry::Ready(res) => {
285285
// submit_flags won't be ready immediately, if ready, it must be error without
286286
// flags

compio-runtime/src/runtime/op.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ use compio_driver::{Key, OpCode, PushEntry};
1010
use crate::runtime::Runtime;
1111

1212
#[derive(Debug)]
13-
pub struct OpFlagsFuture<T: OpCode> {
13+
pub struct OpFuture<T: OpCode> {
1414
key: Option<Key<T>>,
1515
}
1616

17-
impl<T: OpCode> OpFlagsFuture<T> {
17+
impl<T: OpCode> OpFuture<T> {
1818
pub fn new(key: Key<T>) -> Self {
1919
Self { key: Some(key) }
2020
}
2121
}
2222

23-
impl<T: OpCode> Future for OpFlagsFuture<T> {
23+
impl<T: OpCode> Future for OpFuture<T> {
2424
type Output = (BufResult<usize, T>, u32);
2525

2626
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
@@ -35,7 +35,7 @@ impl<T: OpCode> Future for OpFlagsFuture<T> {
3535
}
3636
}
3737

38-
impl<T: OpCode> Drop for OpFlagsFuture<T> {
38+
impl<T: OpCode> Drop for OpFuture<T> {
3939
fn drop(&mut self) {
4040
if let Some(key) = self.key.take() {
4141
// If there's no runtime, it's OK to forget it.

0 commit comments

Comments
 (0)