Fix missing fn
This commit is contained in:
parent
3c470e1670
commit
1129d5b6e6
1 changed files with 4 additions and 0 deletions
|
|
@ -148,6 +148,10 @@ impl PeerStateNoMut {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_live(&self) -> bool {
|
||||
matches!(&self.0, PeerState::Live(_))
|
||||
}
|
||||
|
||||
pub fn get_live_mut(&mut self) -> Option<&mut LivePeerState> {
|
||||
match &mut self.0 {
|
||||
PeerState::Live(l) => Some(l),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue