pub struct ActionParams {
pub device_key: u32,
pub group_key: u32,
pub group_mask: u32,
pub scheduled_time: Option<u64>,
}Expand description
Parameters used to construct an action command.
Fields§
§device_key: u32Vendor-specific device key used to authorise the action.
group_key: u32Group key identifying which devices should react to the action.
group_mask: u32Group mask applied to the device key by receivers.
scheduled_time: Option<u64>Optional scheduled time expressed in device clock ticks.
Some selects a scheduled action command: the time is appended to the
payload and bit 7 of the GVCP flags byte is set. A device that does not
implement scheduled actions rejects it, so leave this None unless the
camera advertises GevSupportedOptionScheduledAction.
Trait Implementations§
Source§impl Clone for ActionParams
impl Clone for ActionParams
Source§fn clone(&self) -> ActionParams
fn clone(&self) -> ActionParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActionParams
impl Debug for ActionParams
Source§impl PartialEq for ActionParams
impl PartialEq for ActionParams
Source§fn eq(&self, other: &ActionParams) -> bool
fn eq(&self, other: &ActionParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ActionParams
impl StructuralPartialEq for ActionParams
Auto Trait Implementations§
impl Freeze for ActionParams
impl RefUnwindSafe for ActionParams
impl Send for ActionParams
impl Sync for ActionParams
impl Unpin for ActionParams
impl UnsafeUnpin for ActionParams
impl UnwindSafe for ActionParams
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