fn stop(&mut self) -> avdtp::Result<()> {
        self.endpoint.suspend()?;
        let mut sender = self.suspend_sender.take().ok_or(avdtp::Error::InvalidState)?;
        sender.try_send(()).or(Err(avdtp::Error::InvalidState))
    }
/// Signals to the media decoding task to end.
Signals to the media decoding task to end.
Signals to the media decoding task to end .
fn stop(&mut self) -> avdtp::Result<()> {
        self.endpoint.suspend()?;
        let mut sender = self.suspend_sender.take().ok_or(avdtp::Error::InvalidState)?;
        sender.try_send(()).or(Err(avdtp::Error::InvalidState))
    }
fn stop ( & mut self ) -> avdtp :: Result < ( ) > { self . endpoint . suspend ( ) ? ; let mut sender = self . suspend_sender . take ( ) . ok_or ( avdtp :: Error :: InvalidState ) ? ; sender . try_send ( ( ) ) . or ( Err ( avdtp :: Error :: InvalidState ) ) }
Signals to the media decoding task to end.
Signals to the media decoding task to end .
&mut self
&mut self