Struct libp2p_rs::plaintext::PlainTextOutput[][src]

pub struct PlainTextOutput<T> where
    T: SplitEx
{ pub stream: SecureStream<<T as SplitEx>::Reader, <T as SplitEx>::Writer>, pub local_priv_key: Keypair, pub local_peer_id: PeerId, pub remote_pub_key: PublicKey, pub remote_peer_id: PeerId, // some fields omitted }

Output of the plaintext protocol. It implements the SecureStream trait

Fields

stream: SecureStream<<T as SplitEx>::Reader, <T as SplitEx>::Writer>

The encrypted stream, actually not any encrypt action.

local_priv_key: Keypair

The private key of the local

local_peer_id: PeerId

For convenience, the local peer ID, generated from local pub key

remote_pub_key: PublicKey

The public key of the remote.

remote_peer_id: PeerId

For convenience, put a PeerId here, which is actually calculated from remote_key

Trait Implementations

impl<T> ConnectionInfo for PlainTextOutput<T> where
    T: SplitEx
[src]

impl<S> ReadEx for PlainTextOutput<S> where
    S: SplittableReadWrite
[src]

impl<T> SecureInfo for PlainTextOutput<T> where
    T: SplitEx
[src]

impl<S> SplitEx for PlainTextOutput<S> where
    S: SplittableReadWrite
[src]

type Reader = SecureStreamReader<<S as SplitEx>::Reader>

read half

type Writer = SecureStreamWriter<<S as SplitEx>::Writer>

write half

impl<S> WriteEx for PlainTextOutput<S> where
    S: SplittableReadWrite
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PlainTextOutput<T> where
    <T as SplitEx>::Reader: RefUnwindSafe,
    <T as SplitEx>::Writer: RefUnwindSafe

impl<T> Send for PlainTextOutput<T>

impl<T> Sync for PlainTextOutput<T> where
    <T as SplitEx>::Reader: Sync,
    <T as SplitEx>::Writer: Sync

impl<T> Unpin for PlainTextOutput<T>

impl<T> UnwindSafe for PlainTextOutput<T> where
    <T as SplitEx>::Reader: UnwindSafe,
    <T as SplitEx>::Writer: UnwindSafe

Blanket Implementations

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

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SplittableReadWrite for T where
    T: 'static + SplitEx + ReadEx + WriteEx + Unpin
[src]

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>,