Skip to content

Commit

Permalink
make codec + Encode public (#11)
Browse files Browse the repository at this point in the history
* make codec public

* make trait Encode public
  • Loading branch information
pythcoiner authored Jul 21, 2024
1 parent a595b34 commit f8304bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl<'r> TryFrom<&'r [u8]> for Response<'r> {
}

/// Encode a struct into a buffer.
trait Encode {
pub trait Encode {
fn encode(&self, buf: &mut [u8]) -> Result<usize>;
}

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ mod codec;
mod error;
mod frame;

pub use codec::rtu;
pub use codec::tcp;
pub use codec::*;
pub use error::*;
pub use frame::*;

0 comments on commit f8304bf

Please sign in to comment.