pub enum CaOp {
Read,
Write,
}Expand description
Which CA operation failed — C’s read_action or write_action
(rsrv/camessage.c).
C never lets the error KIND choose the status once a request has reached
the database: read_action answers a negative dbChannel_get with
ECA_GETFAIL (camessage.c:647-651) and write_action answers a negative
dbChannel_put with ECA_PUTFAIL (camessage.c:781-789), throwing the
dbStatus away in both. The same underlying failure therefore has two
correct answers, one per direction, and a mapping that sees only the error
cannot pick between them. Naming the direction at the call is what makes a
read unable to reach a put status: no arm reachable under
CaOp::Read yields ECA_PUTFAIL.
Variants§
Read
C read_action — ca_get, ca_array_get_callback, a monitor update.
Write
C write_action / write_notify_action — ca_put, ca_put_callback.
Trait Implementations§
impl Copy for CaOp
impl Eq for CaOp
impl StructuralPartialEq for CaOp
Auto Trait Implementations§
impl Freeze for CaOp
impl RefUnwindSafe for CaOp
impl Send for CaOp
impl Sync for CaOp
impl Unpin for CaOp
impl UnsafeUnpin for CaOp
impl UnwindSafe for CaOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.