pub enum RtspSecurityPolicy {
PreferTls,
AllowInsecure,
RequireTls,
}Expand description
RTSP transport security policy.
Controls whether rtsps:// (TLS) is preferred, required, or
explicitly opted-out for RTSP sources.
The default is PreferTls.
§Examples
use nv_core::security::RtspSecurityPolicy;
// Default: prefer TLS — bare rtsp:// URLs are promoted to rtsps://
let policy = RtspSecurityPolicy::default();
assert_eq!(policy, RtspSecurityPolicy::PreferTls);
// Explicit opt-out for cameras that don't support TLS
let policy = RtspSecurityPolicy::AllowInsecure;Variants§
PreferTls
Default: promote bare rtsp:// to rtsps:// when scheme is absent
or rtsp. Logs a warning if the final URL is still insecure
(e.g., camera doesn’t support TLS and caller forces AllowInsecure).
AllowInsecure
Allow insecure rtsp:// without promotion. A health warning is
emitted when an insecure source is used. Use this for cameras that
do not support TLS behind trusted networks.
RequireTls
Reject any RTSP source that is not rtsps://. Returns a config
error at feed creation time if the URL scheme is rtsp://.
Trait Implementations§
Source§impl Clone for RtspSecurityPolicy
impl Clone for RtspSecurityPolicy
Source§fn clone(&self) -> RtspSecurityPolicy
fn clone(&self) -> RtspSecurityPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtspSecurityPolicy
impl Debug for RtspSecurityPolicy
Source§impl Default for RtspSecurityPolicy
impl Default for RtspSecurityPolicy
Source§fn default() -> RtspSecurityPolicy
fn default() -> RtspSecurityPolicy
Returns the “default value” for a type. Read more
Source§impl Display for RtspSecurityPolicy
impl Display for RtspSecurityPolicy
Source§impl Hash for RtspSecurityPolicy
impl Hash for RtspSecurityPolicy
Source§impl PartialEq for RtspSecurityPolicy
impl PartialEq for RtspSecurityPolicy
impl Copy for RtspSecurityPolicy
impl Eq for RtspSecurityPolicy
impl StructuralPartialEq for RtspSecurityPolicy
Auto Trait Implementations§
impl Freeze for RtspSecurityPolicy
impl RefUnwindSafe for RtspSecurityPolicy
impl Send for RtspSecurityPolicy
impl Sync for RtspSecurityPolicy
impl Unpin for RtspSecurityPolicy
impl UnsafeUnpin for RtspSecurityPolicy
impl UnwindSafe for RtspSecurityPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more