pub struct PluginPayloadBox(/* private fields */);Expand description
Cloneable, comparable box over PluginPayload so PlanNode can keep
its derived Clone / PartialEq / Debug.
Implementations§
Source§impl PluginPayloadBox
impl PluginPayloadBox
Sourcepub fn new(payload: impl PluginPayload + 'static) -> Self
pub fn new(payload: impl PluginPayload + 'static) -> Self
Box a payload.
Sourcepub fn downcast_ref<T: PluginPayload>(&self) -> Option<&T>
pub fn downcast_ref<T: PluginPayload>(&self) -> Option<&T>
Downcast to a concrete payload type.
Sourcepub fn memo_content(&self) -> Vec<u8> ⓘ
pub fn memo_content(&self) -> Vec<u8> ⓘ
Deterministic payload-content bytes for the CustomOp memo key
(forwards to the inner PluginPayload::memo_content).
Trait Implementations§
Source§impl Clone for PluginPayloadBox
impl Clone for PluginPayloadBox
Source§fn clone(&self) -> PluginPayloadBox
fn clone(&self) -> PluginPayloadBox
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginPayloadBox
impl Debug for PluginPayloadBox
Source§impl PartialEq for PluginPayloadBox
impl PartialEq for PluginPayloadBox
Source§impl PluginPayload for PluginPayloadBox
impl PluginPayload for PluginPayloadBox
Source§fn dyn_eq(&self, other: &dyn PluginPayload) -> bool
fn dyn_eq(&self, other: &dyn PluginPayload) -> bool
Structural equality for plan reuse/dedup comparisons. The default is
“never equal”, which is safe for opaque payloads (they only lose
plan-dedup optimizations, never correctness).
Source§fn memo_content(&self) -> Vec<u8> ⓘ
fn memo_content(&self) -> Vec<u8> ⓘ
Deterministic content bytes of the payload, used as the payload
component of the query-local CustomOp memo key (see
ExecutorPlugin for the memoization contract). Two payloads with
equal memo_content bytes must produce identical childless-op
results within one query. The default — the payload’s Debug
rendering — is deterministic for derived Debug impls; a plugin
whose Debug is not content-stable should override this with a
structured binary serialization.Auto Trait Implementations§
impl Freeze for PluginPayloadBox
impl !RefUnwindSafe for PluginPayloadBox
impl Send for PluginPayloadBox
impl Sync for PluginPayloadBox
impl Unpin for PluginPayloadBox
impl UnsafeUnpin for PluginPayloadBox
impl !UnwindSafe for PluginPayloadBox
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].