Enum MaybeTlsStream
enum MaybeTlsStream<S: Read + Write>
A stream that might be protected with TLS.
Variants
-
Plain(S) Unencrypted socket stream.
Implementations
impl<S> Freeze for MaybeTlsStream<S>
impl<S> RefUnwindSafe for MaybeTlsStream<S>
impl<S> Send for MaybeTlsStream<S>
impl<S> Sync for MaybeTlsStream<S>
impl<S> Unpin for MaybeTlsStream<S>
impl<S> UnsafeUnpin for MaybeTlsStream<S>
impl<S> UnwindSafe for MaybeTlsStream<S>
impl<S: Read + Write + Debug> Debug for MaybeTlsStream<S>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<S: Read + Write + NoDelay> NoDelay for MaybeTlsStream<S>
fn set_nodelay(self: &mut Self, nodelay: bool) -> IoResult<()>
impl<S: Read + Write> Read for MaybeTlsStream<S>
fn read(self: &mut Self, buf: &mut [u8]) -> IoResult<usize>
impl<S: Read + Write> Write for MaybeTlsStream<S>
fn write(self: &mut Self, buf: &[u8]) -> IoResult<usize>fn flush(self: &mut Self) -> IoResult<()>
impl<T> Any for MaybeTlsStream<S>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for MaybeTlsStream<S>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for MaybeTlsStream<S>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for MaybeTlsStream<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Same for MaybeTlsStream<S>
impl<T, U> Into for MaybeTlsStream<S>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for MaybeTlsStream<S>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for MaybeTlsStream<S>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip for MaybeTlsStream<S>
fn vzip(self: Self) -> V