// Starts the media decoding task for a stream |seid|.
Starts the media decoding task for a stream |seid|.
Starts the media decoding task for a stream |seid| .
fn start_endpoint(&mut self, seid: &avdtp::StreamEndpointId) -> Result<(), avdtp::ErrorCode> {
        let inspect = &mut self.inspect;
        let cobalt_sender = self.cobalt_sender.clone();
        self.local.get_mut(&seid).and_then(|stream| {
            let inspect = inspect.create_streaming_inspect_data(&seid);
            stream.start(inspect, cobalt_sender).or(Err(avdtp::ErrorCode::BadState))
        })
    }
fn start_endpoint ( & mut self , seid : & avdtp :: StreamEndpointId ) -> Result < ( ) , avdtp :: ErrorCode > { let inspect = & mut self . inspect ; let cobalt_sender = self . cobalt_sender . clone ( ) ; self . local . get_mut ( & seid ) . and_then ( | stream | { let inspect = inspect . create_streaming_inspect_data ( & seid ) ; stream . start ( inspect , cobalt_sender ) . or ( Err ( avdtp :: ErrorCode :: BadState ) ) } ) }
Starts the media decoding task for a stream |seid|.
Starts the media decoding task for a stream |seid| .
&mut self
seid
&avdtp::StreamEndpointId