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

equalsraf / telos / 163
73%
master: 73%

Build:
Build:
LAST BUILD BRANCH: tb-infra
DEFAULT BRANCH: master
Ran 13 Feb 2016 10:08PM UTC
Jobs 3
Files 17
Run time 26s
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

pending completion
163

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<()>.

1128 of 1547 relevant lines covered (72.92%)

2.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 163.1 13 Feb 2016 10:08PM UTC 0
72.9
Travis Job 163.1
2 163.2 13 Feb 2016 10:08PM UTC 0
72.92
Travis Job 163.2
3 163.3 (PUSH_DOCS=1) 13 Feb 2016 10:08PM UTC 0
72.9
Travis Job 163.3
Source Files on build 163
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #163
  • 1f8c0e96 on github
  • Prev Build on tb-rawfd (#162)
  • Next Build on tb-rawfd (#164)
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