aboutsummaryrefslogtreecommitdiff
path: root/src/output_protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/output_protocol.rs')
-rw-r--r--src/output_protocol.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/output_protocol.rs b/src/output_protocol.rs
index 87e2400..6a25d2c 100644
--- a/src/output_protocol.rs
+++ b/src/output_protocol.rs
@@ -1,5 +1,6 @@
use std::sync::Arc;
+#[cfg(unix)]
pub mod ipc;
pub mod stderr;
pub mod stdout;
@@ -7,6 +8,7 @@ pub mod tcp;
pub mod udp;
pub mod udp_broadcast;
+#[cfg(unix)]
pub use ipc::*;
pub use stderr::*;
pub use stdout::*;
@@ -26,13 +28,12 @@ pub use udp_broadcast::*;
pub trait OutputProtocol {
/// Initializes the output channel.
///
- /// This method consumes `self`, indicating it should be called once during setup
- /// to prepare the output resource (e.g., opening a file, establishing a connection).
+ /// Prepares the output resource (e.g., opening a file, establishing a connection).
///
/// # Returns
///
/// A future that resolves when initialization is complete.
- fn init(self) -> impl Future<Output = ()> + Send + Sync;
+ fn init(&self) -> impl Future<Output = ()> + Send + Sync;
/// Sends a message string through the output channel.
///