[][src]Struct over_there_wire::OutboundWire

pub struct OutboundWire<S, E> where
    S: Signer,
    E: Encrypter
{ /* fields omitted */ }

Wire for outbound communication

Methods

impl<S, E> OutboundWire<S, E> where
    S: Signer,
    E: Encrypter
[src]

pub fn new(transmission_size: usize, signer: S, encrypter: E) -> Self[src]

pub fn with_tcp_stream(
    self,
    stream: WriteHalf<TcpStream>
) -> TcpStreamOutboundWire<S, E>
[src]

pub fn with_udp_socket(self, socket: SendHalf) -> UdpSocketOutboundWire<S, E>[src]

pub fn process(&mut self, buf: &[u8]) -> Result<Vec<Vec<u8>>, OutboundWireError>[src]

Trait Implementations

impl<S: Clone, E: Clone> Clone for OutboundWire<S, E> where
    S: Signer,
    E: Encrypter
[src]

impl<S: Debug, E: Debug> Debug for OutboundWire<S, E> where
    S: Signer,
    E: Encrypter
[src]

Auto Trait Implementations

impl<S, E> RefUnwindSafe for OutboundWire<S, E> where
    E: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, E> Send for OutboundWire<S, E> where
    E: Send,
    S: Send

impl<S, E> Sync for OutboundWire<S, E> where
    E: Sync,
    S: Sync

impl<S, E> Unpin for OutboundWire<S, E> where
    E: Unpin,
    S: Unpin

impl<S, E> UnwindSafe for OutboundWire<S, E> where
    E: UnwindSafe,
    S: 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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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