Skip to content

Conversation

tesaguri
Copy link
Contributor

@tesaguri tesaguri commented Jan 2, 2021

TimeoutConnectorStream provides set_read_timeout, set_write_timeout and get_mut methods, but they are hardly useful in practice because TimeoutConnector yields a Pin<Box<TimeoutConnectorStream<_>>> which does not implement DerefMut since TimeoutConnectorStream is !Unpin.

set_read_timeout_pinned, set_write_timeout_pinned, get_pin_mut are counterparts to the above methods which can be used through a Pin<&mut TimeoutConnectorStream>.

@tesaguri tesaguri force-pushed the stream-pinned-methods branch from 46c836f to 33947b1 Compare January 2, 2021 04:16
@hjr3 hjr3 merged commit f2ba820 into hjr3:master Jan 2, 2021
@tesaguri tesaguri deleted the stream-pinned-methods branch January 2, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants