dope-tls 0.18.0

TCP TLS streams for dope runtime, shin-backed
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::state::State;
use crate::state::sessions::Session;

pub(super) struct ConnectionState<S: Session> {
    pub(super) tls: State<S>,
    pub(super) close: bool,
    pub(super) close_notify_sent: bool,
}

impl<S: Session> ConnectionState<S> {
    pub(super) fn new(tls: State<S>) -> Self {
        Self {
            tls,
            close: false,
            close_notify_sent: false,
        }
    }
}