• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

equalsraf / telos / 164 / 3
73%
master: 73%

Build:
Build:
LAST BUILD BRANCH: tb-infra
DEFAULT BRANCH: master
Ran 13 Feb 2016 11:19PM UTC
Files 17
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Feb 2016 11:17PM UTC coverage: 72.88% (-0.02%) from 72.898%
PUSH_DOCS=1

push

travis-ci

equalsraf
TlsStream: take ownership of underlying stream

This breaks compatibility: from_socket() is renamed connect_socket() and
accept() to accept_socket(), this is aligned with the naming in libtls,
it also makes things more clear.

Its not always intuitive that dropping the holder of a file descriptor
will close the socket, so I used a generic to enable keeping the inner
stream object inside the TlsStream.

connect() and accept() now take ownership of types that implement
AsRawFd/AsRawSocket. This "inner_stream" is stored inside the TlsStream.
The inner() and inner_mut() methods provide access to the object.

The previous methods, now named connect_socket() and accept_socket()
take a RawFd/RawSocket directly.

The biggest downside is that with generics the type of the inner
stream is part of the type - this may be undesirable, so the
connect_socket() and accept_socket() return TlsStream<()>.

1126 of 1545 relevant lines covered (72.88%)

0.73 hits per line

Source Files on job 164.3 (PUSH_DOCS=1)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 164
  • Travis Job 164.3
  • 1947a843 on github
  • Prev Job for PUSH_DOCS=1 on tb-rawfd (#163.3)
  • Next Job for PUSH_DOCS=1 on tb-rawfd (#165.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc