Skip to content

Commit

Permalink
expose traits
Browse files Browse the repository at this point in the history
  • Loading branch information
CAGS295 committed Aug 24, 2024
1 parent 84f30cd commit cda1e96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/connectors/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::fmt::Debug;
pub(crate) use tokio_tungstenite::tungstenite::protocol::Message;

#[async_trait(?Send)]
pub(crate) trait EventHandler<Monitorable> {
pub trait EventHandler<Monitorable> {
type Error: Debug;
type Context;
type Update;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub mod binance;
pub(crate) use binance::Binance;

/// A [Provider] must implement this trait for [net] to know where to pull the data from.
pub(crate) trait Endpoints<Monitorable> {
pub trait Endpoints<Monitorable> {
fn websocket_url(&self) -> String;
fn ws_subscriptions(&self, symbols: impl Iterator<Item = impl AsRef<str>>) -> String;
fn rest_api_url(&self, symbol: impl AsRef<str>) -> String;
Expand Down

0 comments on commit cda1e96

Please sign in to comment.