mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 01:11:07 +01:00
give access to io object during connect stage
This commit is contained in:
parent
1b17d274a0
commit
5445e341c3
@ -51,6 +51,16 @@ impl<Io, St, Codec: Encoder + Decoder> ConnectResult<Io, St, Codec> {
|
|||||||
&self.sink
|
&self.sink
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn get_ref(&self) -> &Io {
|
||||||
|
self.framed.get_ref()
|
||||||
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn get_mut(&mut self) -> &mut Io {
|
||||||
|
self.framed.get_mut()
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn state<S>(self, state: S) -> ConnectResult<Io, S, Codec> {
|
pub fn state<S>(self, state: S) -> ConnectResult<Io, S, Codec> {
|
||||||
ConnectResult {
|
ConnectResult {
|
||||||
|
Loading…
Reference in New Issue
Block a user