forked from buckyos/CYFS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The sn bench client support simulation of exception
- Loading branch information
Showing
6 changed files
with
240 additions
and
46 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,32 +1,5 @@ | ||
|
||
pub struct SnBenchPingException { | ||
wrong_public_key: bool, | ||
wrong_private_key: bool, | ||
pub enum ExceptionType { | ||
Common, | ||
RemoteOffline, | ||
RemoteNotExists, | ||
} | ||
|
||
impl SnBenchPingException { | ||
pub fn default() -> Self { | ||
SnBenchPingException { | ||
wrong_public_key: false, | ||
wrong_private_key: false, | ||
} | ||
} | ||
} | ||
|
||
pub struct SnBenchCallException { | ||
wrong_public_key: bool, | ||
wrong_private_key: bool, | ||
remote_offline: bool, | ||
remote_not_exist: bool, | ||
} | ||
|
||
impl SnBenchCallException { | ||
pub fn default() -> Self { | ||
SnBenchCallException { | ||
wrong_public_key: false, | ||
wrong_private_key: false, | ||
remote_offline: false, | ||
remote_not_exist: false, | ||
} | ||
} | ||
} |
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
Oops, something went wrong.