Searched refs:channel_bytes (Results 1 – 2 of 2) sorted by relevance
771 let mut channel_bytes = [0 as u8; 4]; in listening_task() localVariable773 Self::wait_and_read_stream(connection_timeout, &stream, &mut channel_bytes).await; in listening_task()774 let channel = i32::from_ne_bytes(channel_bytes); in listening_task()1077 let mut channel_bytes = [0 as u8; 4]; in connecting_task() localVariable1079 Self::wait_and_read_stream(connection_timeout, &stream, &mut channel_bytes).await; in connecting_task()1080 if i32::from_ne_bytes(channel_bytes) <= 0 { in connecting_task()
89 let (channel_bytes, rest) = rest.split_at(std::mem::size_of::<i32>()); in try_from()104 channel: i32::from_ne_bytes(channel_bytes.try_into().unwrap()), in try_from()