Struct eva_sdk::controller::actt::Actt
source · pub struct Actt { /* private fields */ }Expand description
Action termination helper for EVA ICS controller services
Implementations§
source§impl Actt
impl Actt
sourcepub fn new(oids: &[&OID]) -> Self
pub fn new(oids: &[&OID]) -> Self
Initialize a new helper object
All OIDS, managed by the controller must be provided
sourcepub fn unregister(&mut self, oid: &OID)
pub fn unregister(&mut self, oid: &OID)
Unregister OID on-the-flow
sourcepub fn remove(&self, oid: &OID, uuid: &Uuid) -> EResult<bool>
pub fn remove(&self, oid: &OID, uuid: &Uuid) -> EResult<bool>
Remove action from the helper
If action was appended, it MUST be always removed either by RPC function (if failed to send the action to handler) or by the handler
The handler checks the returned boolean and marks action canceled in case of false
After removing, the action no longer can be terminated
Panics
Will panic if the internal mutexes are poisoned
sourcepub fn is_active(&self, oid: &OID, uuid: &Uuid) -> EResult<bool>
pub fn is_active(&self, oid: &OID, uuid: &Uuid) -> EResult<bool>
The handler can check is the action active during its execution
Panics
Will panic if the internal mutexes are poisoned
sourcepub fn mark_terminated(&self, uuid: &Uuid) -> EResult<()>
pub fn mark_terminated(&self, uuid: &Uuid) -> EResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for Actt
impl Send for Actt
impl Sync for Actt
impl Unpin for Actt
impl UnwindSafe for Actt
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