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

equalsraf / telos / 164
73%
master: 73%

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

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%)

2.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 164.1 13 Feb 2016 11:19PM UTC 0
72.88
Travis Job 164.1
2 164.2 13 Feb 2016 11:19PM UTC 0
72.9
Travis Job 164.2
3 164.3 (PUSH_DOCS=1) 13 Feb 2016 11:19PM UTC 0
72.88
Travis Job 164.3
Source Files on build 164
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #164
  • 1947a843 on github
  • Prev Build on tb-rawfd (#163)
  • Next Build on tb-rawfd (#165)
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