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

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

Build:
Build:
LAST BUILD BRANCH: tb-infra
DEFAULT BRANCH: master
Ran 13 Feb 2016 10:08PM UTC
Files 17
Run time 1s
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 10:06PM UTC coverage: 72.898%. Remained the same
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<()>.

1127 of 1546 relevant lines covered (72.9%)

0.73 hits per line

Source Files on job 163.3 (PUSH_DOCS=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 163
  • Travis Job 163.3
  • 1f8c0e96 on github
  • Prev Job for PUSH_DOCS=1 on tb-rawfd (#162.3)
  • Next Job for PUSH_DOCS=1 on tb-rawfd (#164.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