/// Get service MAC address (in case it is not the Control Protocol svc).
Get service MAC address (in case it is not the Control Protocol svc).
Get service MAC address ( in case it is not the Control Protocol svc ) .
pub fn mac(&self) -> Option<&MacAddr> {
        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 mac ( & self ) -> Option < & MacAddr > { 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 MAC address (in case it is not the Control Protocol svc).
Get service MAC address ( in case it is not the Control Protocol svc ) .
&self