pub enum RelayDecision {
Forward,
Convert {
leaves: Vec<Bytes>,
space: Option<Arc<SpaceSpec>>,
advisory: Advisory,
},
Refuse(String),
}Expand description
A policy’s verdict on one relayed payload.
Variants§
Forward
Relay the payload unchanged.
Convert
Relay leaves in its place, recording advisory on the report.
space types the converted leaves when their layout changed; the
emitted hook event then carries it in place of the original leg’s space.
On the env contract (empty leaves) only advisory takes effect.
Refuse(String)
Fail the route with this reason.
Trait Implementations§
Source§impl Clone for RelayDecision
impl Clone for RelayDecision
Source§impl Debug for RelayDecision
impl Debug for RelayDecision
Source§impl PartialEq for RelayDecision
impl PartialEq for RelayDecision
impl StructuralPartialEq for RelayDecision
Auto Trait Implementations§
impl Freeze for RelayDecision
impl RefUnwindSafe for RelayDecision
impl Send for RelayDecision
impl Sync for RelayDecision
impl Unpin for RelayDecision
impl UnsafeUnpin for RelayDecision
impl UnwindSafe for RelayDecision
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request