Skip to content

Commit

Permalink
drivers: Add file client
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Sep 7, 2024
1 parent bd9565a commit d792a32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use crate::protocol::Protocol;

#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub enum Type {
FileClient,
FileServer,
TcpClient,
TcpServer,
Expand Down Expand Up @@ -185,6 +186,10 @@ pub struct ExtInfo {

pub fn endpoints() -> Vec<ExtInfo> {
vec![
ExtInfo {
driver_ext: Box::new(file::client::FileClientExt),
typ: Type::FileClient,
},
ExtInfo {
driver_ext: Box::new(file::server::FileServerExt),
typ: Type::FileServer,
Expand Down

0 comments on commit d792a32

Please sign in to comment.