[−][src]Struct over_there_wire::InboundWire
Wire for inbound communication
Methods
impl<V, D> InboundWire<V, D> where
V: Verifier,
D: Decrypter,
[src]
V: Verifier,
D: Decrypter,
pub fn new(
transmission_size: usize,
packet_ttl: Duration,
verifier: V,
decrypter: D
) -> Self
[src]
transmission_size: usize,
packet_ttl: Duration,
verifier: V,
decrypter: D
) -> Self
pub fn transmission_size(&self) -> usize
[src]
pub fn with_tcp_stream(
self,
stream: ReadHalf<TcpStream>,
remote_addr: SocketAddr
) -> TcpStreamInboundWire<V, D>
[src]
self,
stream: ReadHalf<TcpStream>,
remote_addr: SocketAddr
) -> TcpStreamInboundWire<V, D>
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]
&mut self,
buf: &[u8]
) -> Result<Option<Vec<u8>>, InboundWireError>
Trait Implementations
impl<V: Clone, D: Clone> Clone for InboundWire<V, D> where
V: Verifier,
D: Decrypter,
[src]
V: Verifier,
D: Decrypter,
fn clone(&self) -> InboundWire<V, D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<V: Debug, D: Debug> Debug for InboundWire<V, D> where
V: Verifier,
D: Decrypter,
[src]
V: Verifier,
D: Decrypter,
Auto Trait Implementations
impl<V, D> RefUnwindSafe for InboundWire<V, D> where
D: RefUnwindSafe,
V: RefUnwindSafe,
D: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, D> Send for InboundWire<V, D> where
D: Send,
V: Send,
D: Send,
V: Send,
impl<V, D> Sync for InboundWire<V, D> where
D: Sync,
V: Sync,
D: Sync,
V: Sync,
impl<V, D> Unpin for InboundWire<V, D> where
D: Unpin,
V: Unpin,
D: Unpin,
V: Unpin,
impl<V, D> UnwindSafe for InboundWire<V, D> where
D: UnwindSafe,
V: UnwindSafe,
D: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,