Skip to main content

test_unit_message

Function test_unit_message 

Source
pub async fn test_unit_message<L, R, E1, E2>(left: L, right: R)
where L: Transport<(), (), E1> + Unpin, R: Transport<(), (), E2> + Unpin, E1: Debug, E2: Debug,
Expand description

Test transport by sending units (()) between two connected instances.

When used with BincodeCodec it can verify sending message of length 0 (in bytes) works.