pub struct HandoffMode { /* private fields */ }Implementations§
Source§impl HandoffMode
impl HandoffMode
Sourcepub fn new(evaluator: Arc<dyn PolicyEvaluator>) -> Self
pub fn new(evaluator: Arc<dyn PolicyEvaluator>) -> Self
Construct the mode with an injected governance policy evaluator.
Trait Implementations§
Source§impl Mode for HandoffMode
impl Mode for HandoffMode
Authorize the sender for this message. Modes can override to customize
authorization (e.g., allowing orchestrator bypass for Commitment messages).
fn on_session_start( &self, session: &Session, _env: &Envelope, ) -> Result<ModeResponse, MacpError>
fn on_message( &self, session: &Session, env: &Envelope, ) -> Result<ModeResponse, MacpError>
Auto Trait Implementations§
impl !RefUnwindSafe for HandoffMode
impl !UnwindSafe for HandoffMode
impl Freeze for HandoffMode
impl Send for HandoffMode
impl Sync for HandoffMode
impl Unpin for HandoffMode
impl UnsafeUnpin for HandoffMode
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