pub fn recv_udp<T, S>(
s: Recv<(T, [u8; 128]), S>,
socket: UdpSocket,
udp: bool
) -> Result<(T, S, [u8; 128], usize, UdpSocket), Box<dyn Error>>
Available on crate features
transport
or transport_udp
only.Expand description
Receive a value of type T
. Can fail. Returns either a
pair of the received value and the continuation of the
session S
or an error.
This function is available only if MultiCrusty is built with
the "transport"
feature or the "transport_udp"
feature.