Skip to content

Commit 3265259

Browse files
committed
Remove conversion methods from public interface for now
1 parent e7c5311 commit 3265259

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ pub(crate) enum MidHandshake<IO> {
2828
End,
2929
}
3030

31-
// TODO unexpose, maybe without Client?
31+
// TODO unhide, maybe without ClientSession?
3232

3333
impl<IO> TlsStream<IO> {
3434
#[inline]
35-
pub fn get_ref(&self) -> (&IO, &ClientSession) {
35+
fn get_ref(&self) -> (&IO, &ClientSession) {
3636
(&self.io, &self.session)
3737
}
3838

3939
#[inline]
40-
pub fn get_mut(&mut self) -> (&mut IO, &mut ClientSession) {
40+
fn get_mut(&mut self) -> (&mut IO, &mut ClientSession) {
4141
(&mut self.io, &mut self.session)
4242
}
4343

4444
#[inline]
45-
pub fn into_inner(self) -> (IO, ClientSession) {
45+
fn into_inner(self) -> (IO, ClientSession) {
4646
(self.io, self.session)
4747
}
4848
}

src/server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ pub(crate) enum MidHandshake<IO> {
2424
End,
2525
}
2626

27-
// TODO unexpose, maybe without ServerSession?
27+
// TODO unhide, maybe without ServerSession?
2828
impl<IO> TlsStream<IO> {
2929
#[inline]
30-
pub fn get_ref(&self) -> (&IO, &ServerSession) {
30+
fn get_ref(&self) -> (&IO, &ServerSession) {
3131
(&self.io, &self.session)
3232
}
3333

3434
#[inline]
35-
pub fn get_mut(&mut self) -> (&mut IO, &mut ServerSession) {
35+
fn get_mut(&mut self) -> (&mut IO, &mut ServerSession) {
3636
(&mut self.io, &mut self.session)
3737
}
3838

3939
#[inline]
40-
pub fn into_inner(self) -> (IO, ServerSession) {
40+
fn into_inner(self) -> (IO, ServerSession) {
4141
(self.io, self.session)
4242
}
4343
}

0 commit comments

Comments
 (0)