-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(interface): removed structs with timeouts in favour of anoth…
…er param
- Loading branch information
Showing
6 changed files
with
55 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,15 @@ | ||
use super::japrotocol::EstProto; | ||
use serde_json::Value; | ||
use std::time::Duration; | ||
|
||
pub struct HandleMessage { | ||
pub session_id: u64, | ||
pub handle_id: u64, | ||
pub body: Value, | ||
} | ||
|
||
pub struct HandleMessageWithTimeout { | ||
pub session_id: u64, | ||
pub handle_id: u64, | ||
pub body: Value, | ||
pub timeout: Duration, | ||
} | ||
|
||
pub struct HandleMessageWithEst { | ||
pub session_id: u64, | ||
pub handle_id: u64, | ||
pub body: Value, | ||
pub estproto: EstProto, | ||
} | ||
|
||
pub struct HandleMessageWithEstAndTimeout { | ||
pub session_id: u64, | ||
pub handle_id: u64, | ||
pub body: Value, | ||
pub timeout: Duration, | ||
pub estproto: EstProto, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters