Struct libp2p_rs::secio::codec::secure_stream::SecureStream[][src]

pub struct SecureStream<T> { /* fields omitted */ }

Encrypted stream

Implementations

impl<T> SecureStream<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

pub fn new(
    socket: T,
    max_frame_len: usize,
    decode_cipher: Box<dyn StreamCipher + 'static + Send, Global>,
    decode_hmac: Option<Hmac>,
    encode_cipher: Box<dyn StreamCipher + 'static + Send, Global>,
    encode_hmac: Option<Hmac>,
    nonce: Vec<u8, Global>
) -> SecureStream<T>
[src]

New SecureStream

Trait Implementations

impl<T> AsyncRead for SecureStream<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

impl<T> AsyncWrite for SecureStream<T> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static, 
[src]

impl<'pin, T> Unpin for SecureStream<T> where
    __SecureStream<'pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for SecureStream<T>

impl<T> Send for SecureStream<T> where
    T: Send

impl<T> !Sync for SecureStream<T>

impl<T> !UnwindSafe for SecureStream<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ReadEx for T where
    T: AsyncRead + Unpin + Send
[src]

impl<T> ReadExt for T where
    T: AsyncRead + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WriteEx for T where
    T: AsyncWrite + Unpin + Send
[src]

impl<T> WriteExt for T where
    T: AsyncWrite + ?Sized