1use crate::Peer; 2 3impl Peer { 4 #[must_use] 5 pub fn is_available(&self) -> bool { 6 !self.read().state.terminated 7 } 8}