-
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.
- Loading branch information
1 parent
721c322
commit bd183ee
Showing
13 changed files
with
71 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
pub mod message; | ||
|
||
pub use message::MessageAttribute; | ||
|
||
pub use super::AttributeBuilder; | ||
pub use super::MessageClient; | ||
pub use super::MessageDispatcher; |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,9 @@ | ||
mod error; | ||
mod message; | ||
mod pza_topic; | ||
mod reactor_settings; | ||
|
||
pub type AttributeError = error::AttributeError; | ||
pub type ReactorSettings = reactor_settings::ReactorSettings; | ||
|
||
pub use message::BooleanMessage; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod boolean; | ||
|
||
pub use boolean::BooleanMessage; |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use crate::AttributePayloadManager; | ||
|
||
#[derive(Copy, Clone, PartialEq)] | ||
pub struct BooleanMessage { | ||
value: bool, | ||
} | ||
|
||
impl Into<BooleanMessage> for bool { | ||
fn into(self) -> BooleanMessage { | ||
return BooleanMessage { value: true }; | ||
} | ||
} | ||
|
||
impl From<Vec<u8>> for BooleanMessage { | ||
fn from(value: Vec<u8>) -> Self { | ||
return BooleanMessage { value: true }; | ||
} | ||
} | ||
impl Into<Vec<u8>> for BooleanMessage { | ||
fn into(self) -> Vec<u8> { | ||
return vec![1]; | ||
} | ||
} | ||
impl AttributePayloadManager for BooleanMessage {} |
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