pub struct OutboundWire<S, E>{ /* private fields */ }Expand description
Wire for outbound communication
Implementations§
Source§impl<S, E> OutboundWire<S, E>
impl<S, E> OutboundWire<S, E>
pub fn new(transmission_size: usize, signer: S, encrypter: E) -> Self
pub fn with_tcp_stream( self, stream: WriteHalf<TcpStream>, ) -> TcpStreamOutboundWire<S, E>
pub fn with_udp_socket(self, socket: SendHalf) -> UdpSocketOutboundWire<S, E>
pub fn process(&mut self, buf: &[u8]) -> Result<Vec<Vec<u8>>, OutboundWireError>
Trait Implementations§
Source§impl<S, E> Clone for OutboundWire<S, E>
impl<S, E> Clone for OutboundWire<S, E>
Source§fn clone(&self) -> OutboundWire<S, E>
fn clone(&self) -> OutboundWire<S, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S, E> Freeze for OutboundWire<S, E>
impl<S, E> RefUnwindSafe for OutboundWire<S, E>where
S: RefUnwindSafe,
E: RefUnwindSafe,
impl<S, E> Send for OutboundWire<S, E>
impl<S, E> Sync for OutboundWire<S, E>
impl<S, E> Unpin for OutboundWire<S, E>
impl<S, E> UnsafeUnpin for OutboundWire<S, E>where
S: UnsafeUnpin,
E: UnsafeUnpin,
impl<S, E> UnwindSafe for OutboundWire<S, E>where
S: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more