gix_packetline/write/
mod.rs

1use crate::Writer;
2
3#[cfg(all(not(feature = "blocking-io"), feature = "async-io"))]
4pub(crate) mod async_io;
5
6#[cfg(feature = "blocking-io")]
7pub(crate) mod blocking_io;
8
9/// Common methods
10impl<T> Writer<T> {
11    /// As [`enable_text_mode()`][Writer::enable_text_mode()], but suitable for chaining.
12    pub fn text_mode(mut self) -> Self {
13        self.enable_text_mode();
14        self
15    }
16    /// As [`enable_binary_mode()`][Writer::enable_binary_mode()], but suitable for chaining.
17    pub fn binary_mode(mut self) -> Self {
18        self.enable_binary_mode();
19        self
20    }
21}