pub struct CameraAvSettingsUserLevelManagementClientView<'a> { /* private fields */ }Expand description
Per-exchange view onto the CameraAvSettingsUserLevelManagement cluster’s client operations. Returned by CameraAvSettingsUserLevelManagementClient::camera_av_settings_user_level_management. Each method consumes the view (and therefore the underlying crate::transport::exchange::Exchange) — one exchange is one IM transaction.
Implementations§
Source§impl<'a> CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> CameraAvSettingsUserLevelManagementClientView<'a>
pub async fn mptz_set_position<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(MPTZSetPositionRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn mptz_relative_move<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(MPTZRelativeMoveRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn mptz_move_to_preset<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(MPTZMoveToPresetRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn mptz_save_preset<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(MPTZSavePresetRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn mptz_remove_preset<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(MPTZRemovePresetRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn dptz_set_viewport<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(DPTZSetViewportRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn dptz_relative_move<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(DPTZRelativeMoveRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
Sourcepub async fn mptz_position_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<MPTZStruct<'_>, Error>) -> R,
) -> Result<R, Error>
pub async fn mptz_position_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<MPTZStruct<'_>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn max_presets_read(self, endpoint: u16) -> Result<u8, Error>
Sourcepub async fn mptz_presets_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, MPTZPresetStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn mptz_presets_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, MPTZPresetStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn dptz_streams_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, DPTZStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn dptz_streams_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, DPTZStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn zoom_max_read(self, endpoint: u16) -> Result<u8, Error>
pub async fn tilt_min_read(self, endpoint: u16) -> Result<i16, Error>
pub async fn tilt_max_read(self, endpoint: u16) -> Result<i16, Error>
pub async fn pan_min_read(self, endpoint: u16) -> Result<i16, Error>
pub async fn pan_max_read(self, endpoint: u16) -> Result<i16, Error>
pub async fn movement_state_read( self, endpoint: u16, ) -> Result<PhysicalMovementEnum, Error>
Sourcepub async fn generated_command_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn generated_command_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn accepted_command_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn accepted_command_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn attribute_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn attribute_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn feature_map_read(self, endpoint: u16) -> Result<u32, Error>
pub async fn cluster_revision_read(self, endpoint: u16) -> Result<u16, Error>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> !Send for CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> !Sync for CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> !UnwindSafe for CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> Freeze for CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> Unpin for CameraAvSettingsUserLevelManagementClientView<'a>
impl<'a> UnsafeUnpin for CameraAvSettingsUserLevelManagementClientView<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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