mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-08 02:34:20 +01:00
nit: adjust order of struct completions
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user