Searched refs:get_readable_bytes (Results 1 – 2 of 2) sorted by relevance
409 pub fn get_readable_bytes(&self) -> io::Result<usize> { in get_readable_bytes() method931 assert_eq!(s1.get_readable_bytes().unwrap(), 0); in unix_seqpacket_get_readable_bytes()932 assert_eq!(s2.get_readable_bytes().unwrap(), 0); in unix_seqpacket_get_readable_bytes()936 assert_eq!(s1.get_readable_bytes().unwrap(), 0); in unix_seqpacket_get_readable_bytes()937 assert_eq!(s2.get_readable_bytes().unwrap(), data1.len()); in unix_seqpacket_get_readable_bytes()941 assert_eq!(s1.get_readable_bytes().unwrap(), 0); in unix_seqpacket_get_readable_bytes()942 assert_eq!(s2.get_readable_bytes().unwrap(), 0); in unix_seqpacket_get_readable_bytes()
111 self.socket.get_readable_bytes().unwrap_or(0) > 0 in is_packet_ready()