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 !Freeze for Actt
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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