[][src]Struct over_there_wire::InboundWire

pub struct InboundWire<V, D> where
    V: Verifier,
    D: Decrypter
{ /* fields omitted */ }

Wire for inbound communication

Methods

impl<V, D> InboundWire<V, D> where
    V: Verifier,
    D: Decrypter
[src]

pub fn new(
    transmission_size: usize,
    packet_ttl: Duration,
    verifier: V,
    decrypter: D
) -> Self
[src]

pub fn transmission_size(&self) -> usize[src]

pub fn with_tcp_stream(
    self,
    stream: ReadHalf<TcpStream>,
    remote_addr: SocketAddr
) -> TcpStreamInboundWire<V, D>
[src]

pub fn with_udp_socket(self, socket: RecvHalf) -> UdpSocketInboundWire<V, D>[src]

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

Trait Implementations

impl<V: Clone, D: Clone> Clone for InboundWire<V, D> where
    V: Verifier,
    D: Decrypter
[src]

impl<V: Debug, D: Debug> Debug for InboundWire<V, D> where
    V: Verifier,
    D: Decrypter
[src]

Auto Trait Implementations

impl<V, D> RefUnwindSafe for InboundWire<V, D> where
    D: RefUnwindSafe,
    V: RefUnwindSafe

impl<V, D> Send for InboundWire<V, D> where
    D: Send,
    V: Send

impl<V, D> Sync for InboundWire<V, D> where
    D: Sync,
    V: Sync

impl<V, D> Unpin for InboundWire<V, D> where
    D: Unpin,
    V: Unpin

impl<V, D> UnwindSafe for InboundWire<V, D> where
    D: UnwindSafe,
    V: 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>,