fn filter_controller_event(&self, event: &PeerControllerEvent) -> bool {
        match *event {
            PeerControllerEvent::PlaybackStatusChanged(_) => {
                self.notification_filter.contains(Notifications::PlaybackStatus)
            }
            PeerControllerEvent::TrackIdChanged(_) => {
                self.notification_filter.contains(Notifications::Track)
            }
            PeerControllerEvent::PlaybackPosChanged(_) => {
                self.notification_filter.contains(Notifications::TrackPos)
            }
            PeerControllerEvent::VolumeChanged(_) => {
                self.notification_filter.contains(Notifications::Volume)
            }
        }
    }
/// Returns true if the event should be dispatched.
Returns true if the event should be dispatched.
Returns true if the event should be dispatched .
fn filter_controller_event(&self, event: &PeerControllerEvent) -> bool {
        match *event {
            PeerControllerEvent::PlaybackStatusChanged(_) => {
                self.notification_filter.contains(Notifications::PlaybackStatus)
            }
            PeerControllerEvent::TrackIdChanged(_) => {
                self.notification_filter.contains(Notifications::Track)
            }
            PeerControllerEvent::PlaybackPosChanged(_) => {
                self.notification_filter.contains(Notifications::TrackPos)
            }
            PeerControllerEvent::VolumeChanged(_) => {
                self.notification_filter.contains(Notifications::Volume)
            }
        }
    }
fn filter_controller_event ( & self , event : & PeerControllerEvent ) -> bool { match * event { PeerControllerEvent :: PlaybackStatusChanged ( _ ) => { self . notification_filter . contains ( Notifications :: PlaybackStatus ) } PeerControllerEvent :: TrackIdChanged ( _ ) => { self . notification_filter . contains ( Notifications :: Track ) } PeerControllerEvent :: PlaybackPosChanged ( _ ) => { self . notification_filter . contains ( Notifications :: TrackPos ) } PeerControllerEvent :: VolumeChanged ( _ ) => { self . notification_filter . contains ( Notifications :: Volume ) } } }
Returns true if the event should be dispatched.
Returns true if the event should be dispatched .
&self
event
&PeerControllerEvent
&self
event
&PeerControllerEvent