Skip to main content

HikVisionIsapiClient

Struct HikVisionIsapiClient 

Source
pub struct HikVisionIsapiClient { /* private fields */ }
Expand description

A HikVision camera reached over ISAPI with HTTP Digest authentication.

Implementations§

Source§

impl HikVisionIsapiClient

Source

pub fn for_camera( cam: &Camera, http: &Client, timeout_ms: u64, ) -> AppResult<Self>

Build a client for cam. ISAPI is plain HTTP on port 80 unless the camera’s address itself carries an explicit host:port. Requires credentials (Digest auth has no anonymous mode).

Trait Implementations§

Source§

impl CameraConfigProvider for HikVisionIsapiClient

Source§

fn get_device_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<DeviceInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Device identity (name/model/firmware/serial).
Source§

fn list_video_configs<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<Vec<VideoConfig>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Every streaming channel’s video-encoding configuration (main + sub + any extras).
Source§

fn get_video_config<'life0, 'async_trait>( &'life0 self, channel: u32, ) -> Pin<Box<dyn Future<Output = AppResult<VideoConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

One streaming channel’s video-encoding configuration (e.g. 101 main, 102 sub).
Source§

fn put_video_config<'life0, 'life1, 'async_trait>( &'life0 self, channel: u32, cfg: &'life1 VideoConfig, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write a channel’s video-encoding configuration (read-modify-write of the device’s XML).
Source§

fn get_time_config<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<TimeConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The device clock configuration (mode/local-time/timezone).
Source§

fn put_time_config<'life0, 'life1, 'async_trait>( &'life0 self, cfg: &'life1 TimeConfig, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write the device clock configuration.
Source§

fn get_ntp_config<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<NtpConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The configured NTP server.
Source§

fn put_ntp_config<'life0, 'life1, 'async_trait>( &'life0 self, cfg: &'life1 NtpConfig, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write the NTP server.
Source§

fn sync_time_now<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<TimeConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Switch the clock to NTP if it is currently in manual mode; returns the resulting clock config.
Source§

fn get_onvif_settings<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<OnvifSettings>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The ONVIF/ISAPI integration toggles.
Source§

fn put_onvif_settings<'life0, 'life1, 'async_trait>( &'life0 self, cfg: &'life1 OnvifSettings, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write the ONVIF/ISAPI integration toggles.
Source§

fn ensure_onvif_user<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, username: &'life1 str, password: &'life2 str, user_type: OnvifUserType, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Ensure a dedicated ONVIF user exists (create-if-absent; a duplicate create is treated as Ok).
Source§

fn get_osd_config<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<OsdConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The on-screen-display (timestamp / channel-name) overlay configuration.
Source§

fn put_osd_config<'life0, 'life1, 'async_trait>( &'life0 self, cfg: &'life1 OsdConfig, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write the on-screen-display overlay configuration.
Source§

fn reboot<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reboot the device (DISRUPTIVE).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more