pub struct EffectDescriptor {
pub id: Symbol,
pub shape: Symbol,
pub capability: CapabilityName,
pub bounds: EffectBounds,
pub requires_arm: bool,
pub expires_after: Duration,
pub receipt: Symbol,
pub idempotence: IdempotencePolicy,
pub reversal: ReversalPolicy,
pub local_stop: Symbol,
}Expand description
Complete registered authority description for one named effect.
Fields§
§id: SymbolStable descriptor identity.
shape: SymbolShape reference used to validate the request payload.
capability: CapabilityNameCapability required from the caller.
bounds: EffectBoundsRequest and session bounds.
requires_arm: boolWhether an explicit arm token is mandatory.
expires_after: DurationMaximum age of an armed request.
receipt: SymbolReceipt kind emitted after execution.
idempotence: IdempotencePolicyRetry semantics.
reversal: ReversalPolicyReversal semantics.
local_stop: SymbolLocally executable stop effect.
Implementations§
Source§impl EffectDescriptor
impl EffectDescriptor
Sourcepub fn validate(&self) -> DeviceResult<()>
pub fn validate(&self) -> DeviceResult<()>
Validates that every mandatory authority field is meaningful.
Checks caller authority, arming, expiry, idempotence, and payload bounds.
Trait Implementations§
Source§impl Clone for EffectDescriptor
impl Clone for EffectDescriptor
Source§fn clone(&self) -> EffectDescriptor
fn clone(&self) -> EffectDescriptor
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 EffectDescriptor
impl Debug for EffectDescriptor
impl Eq for EffectDescriptor
Source§impl PartialEq for EffectDescriptor
impl PartialEq for EffectDescriptor
impl StructuralPartialEq for EffectDescriptor
Auto Trait Implementations§
impl Freeze for EffectDescriptor
impl RefUnwindSafe for EffectDescriptor
impl Send for EffectDescriptor
impl Sync for EffectDescriptor
impl Unpin for EffectDescriptor
impl UnsafeUnpin for EffectDescriptor
impl UnwindSafe for EffectDescriptor
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