Skip to content

Commit

Permalink
limit public api a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Oct 28, 2024
1 parent 964e86c commit 7f9d3ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/connection/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ impl<T: Clone> RingBuffer<T> {
}
}

/// A filter for incoming messages, allowing listing by message type, job id and notifications
#[derive(Clone)]
pub struct MessageFilter {
job_id_filters: Arc<DashMap<JobId, oneshot::Sender<RawNetMessage>>>,
Expand Down
8 changes: 4 additions & 4 deletions src/connection/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod filter;
pub mod raw;
pub mod unauthenticated;
pub(crate) mod raw;
pub(crate) mod unauthenticated;

use crate::auth::{AuthConfirmationHandler, GuardDataStore};
use crate::message::{
Expand All @@ -11,7 +11,7 @@ use crate::serverlist::ServerList;
use crate::service_method::ServiceMethodRequest;
use crate::session::{ConnectionError, Session};
use async_stream::try_stream;
pub use filter::MessageFilter;
pub(crate) use filter::MessageFilter;
use futures_util::{FutureExt, Sink, SinkExt};
use raw::RawConnection;
use std::fmt::{Debug, Formatter};
Expand All @@ -34,7 +34,7 @@ type TransportWriter = Arc<Mutex<dyn Sink<RawNetMessage, Error = NetworkError> +

/// Send raw messages to steam
#[derive(Clone)]
pub struct MessageSender {
pub(crate) struct MessageSender {
write: TransportWriter,
}

Expand Down
1 change: 1 addition & 0 deletions src/connection/unauthenticated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use tokio_stream::wrappers::BroadcastStream;
use tokio_stream::StreamExt;
use tracing::{debug, error};

/// A Connection that hasn't been authentication yet
pub struct UnAuthenticatedConnection(RawConnection);

impl UnAuthenticatedConnection {
Expand Down

0 comments on commit 7f9d3ba

Please sign in to comment.