pub fn address(&self) -> Option<&SocketAddr> {
        match self {
            &Service::ControlProtocol                 => None,
            &Service::RTSP(_, ref addr, _)            => Some(addr),
            &Service::LockedRTSP(_, ref addr)         => Some(addr),
            &Service::UnknownRTSP(_, ref addr)        => Some(addr),
            &Service::UnsupportedRTSP(_, ref addr, _) => Some(addr),
            &Service::HTTP(_, ref addr)               => Some(addr),
            &Service::MJPEG(_, ref addr, _)           => Some(addr),
            &Service::LockedMJPEG(_, ref addr)        => Some(addr),
            &Service::TCP(_, ref addr)                => Some(addr)
        }
    }
/// Get service address (in case it is not the Control Protocol svc).
Get service address (in case it is not the Control Protocol svc).
Get service address ( in case it is not the Control Protocol svc ) .
pub fn address(&self) -> Option<&SocketAddr> {
        match self {
            &Service::ControlProtocol                 => None,
            &Service::RTSP(_, ref addr, _)            => Some(addr),
            &Service::LockedRTSP(_, ref addr)         => Some(addr),
            &Service::UnknownRTSP(_, ref addr)        => Some(addr),
            &Service::UnsupportedRTSP(_, ref addr, _) => Some(addr),
            &Service::HTTP(_, ref addr)               => Some(addr),
            &Service::MJPEG(_, ref addr, _)           => Some(addr),
            &Service::LockedMJPEG(_, ref addr)        => Some(addr),
            &Service::TCP(_, ref addr)                => Some(addr)
        }
    }
pub fn address ( & self ) -> Option < & SocketAddr > { match self { & Service :: ControlProtocol => None , & Service :: RTSP ( _ , ref addr , _ ) => Some ( addr ) , & Service :: LockedRTSP ( _ , ref addr ) => Some ( addr ) , & Service :: UnknownRTSP ( _ , ref addr ) => Some ( addr ) , & Service :: UnsupportedRTSP ( _ , ref addr , _ ) => Some ( addr ) , & Service :: HTTP ( _ , ref addr ) => Some ( addr ) , & Service :: MJPEG ( _ , ref addr , _ ) => Some ( addr ) , & Service :: LockedMJPEG ( _ , ref addr ) => Some ( addr ) , & Service :: TCP ( _ , ref addr ) => Some ( addr ) } }
Get service address (in case it is not the Control Protocol svc).
Get service address ( in case it is not the Control Protocol svc ) .
&self
&self