pub struct PayloadFacts {
pub space: Arc<SpaceSpec>,
pub byte_len: usize,
pub leaves: Vec<Bytes>,
}Expand description
One relayed payload, for a RelayPolicy to check against the target
leg’s PeerCeiling. Capability gating is not checked here: it happens
where a feature is emitted.
Fields§
§space: Arc<SpaceSpec>The space typing leaves, in leaf order. For the env contract, a
two-element Tuple of the observation space then the action space.
byte_len: usizeSummed leaf bytes, not the framed wire size; the encoded contract’s length for the env contract.
leaves: Vec<Bytes>The payload’s leaves, for a policy that converts them; empty for the env contract, which is checked before any leaf flows.
Implementations§
Trait Implementations§
Source§impl Clone for PayloadFacts
impl Clone for PayloadFacts
Source§impl Debug for PayloadFacts
impl Debug for PayloadFacts
Source§impl PartialEq for PayloadFacts
impl PartialEq for PayloadFacts
impl StructuralPartialEq for PayloadFacts
Auto Trait Implementations§
impl Freeze for PayloadFacts
impl RefUnwindSafe for PayloadFacts
impl Send for PayloadFacts
impl Sync for PayloadFacts
impl Unpin for PayloadFacts
impl UnsafeUnpin for PayloadFacts
impl UnwindSafe for PayloadFacts
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