pub enum CachingMode {
NoCache,
WriteThrough,
WriteAround,
}Expand description
<Cachable>: whether a register’s value may be answered from a cache.
GenICam Standard v2.1.1 §2.8.3: “WriteThrough means that a value written to
the camera is written to the cache as well. WriteAround means that only read
values are written to the cache” — for a value the camera may change on
writing, such as a gain it rounds. With NoCache, every read goes to the
device.
Variants§
NoCache
Never answered from a cache.
WriteThrough
A write caches the written value.
WriteAround
A write leaves nothing cached; the next read asks the device.
Implementations§
Source§impl CachingMode
impl CachingMode
Sourcepub fn combine(self, other: CachingMode) -> CachingMode
pub fn combine(self, other: CachingMode) -> CachingMode
The more restrictive of two modes: NoCache over WriteAround over
WriteThrough. A value read through several registers may be cached
only as far as each of them allows; the GenApi reference
implementation’s Combine computes the same.
Trait Implementations§
Source§impl Clone for CachingMode
impl Clone for CachingMode
impl Copy for CachingMode
Source§impl Debug for CachingMode
impl Debug for CachingMode
Source§impl<'de> Deserialize<'de> for CachingMode
impl<'de> Deserialize<'de> for CachingMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CachingMode
Source§impl Hash for CachingMode
impl Hash for CachingMode
Source§impl PartialEq for CachingMode
impl PartialEq for CachingMode
Source§impl Serialize for CachingMode
impl Serialize for CachingMode
impl StructuralPartialEq for CachingMode
Auto Trait Implementations§
impl Freeze for CachingMode
impl RefUnwindSafe for CachingMode
impl Send for CachingMode
impl Sync for CachingMode
impl Unpin for CachingMode
impl UnsafeUnpin for CachingMode
impl UnwindSafe for CachingMode
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