nit: adjust order of struct completions

This commit is contained in:
pedrocarlo
2025-08-13 16:26:46 -03:00
parent fadf78fe67
commit 2d6fad5ea3

View File

@@ -146,11 +146,6 @@ pub enum CompletionType {
Truncate(TruncateCompletion),
}
pub struct ReadCompletion {
pub buf: Arc<Buffer>,
pub complete: Box<ReadComplete>,
}
impl Completion {
pub fn new(completion_type: CompletionType) -> Self {
Self {
@@ -244,12 +239,9 @@ impl Completion {
}
}
pub struct WriteCompletion {
pub complete: Box<WriteComplete>,
}
pub struct SyncCompletion {
pub complete: Box<SyncComplete>,
pub struct ReadCompletion {
pub buf: Arc<Buffer>,
pub complete: Box<ReadComplete>,
}
impl ReadCompletion {
@@ -266,6 +258,10 @@ impl ReadCompletion {
}
}
pub struct WriteCompletion {
pub complete: Box<WriteComplete>,
}
impl WriteCompletion {
pub fn new(complete: Box<WriteComplete>) -> Self {
Self { complete }
@@ -276,6 +272,10 @@ impl WriteCompletion {
}
}
pub struct SyncCompletion {
pub complete: Box<SyncComplete>,
}
impl SyncCompletion {
pub fn new(complete: Box<SyncComplete>) -> Self {
Self { complete }