pub struct RoutingPayload { /* private fields */ }Expand description
The bounded payload actually handed to a Router, plus its disclosure.
The text is private and transient: Self::text hands it to the
transport, Self::disclosure is what may be persisted. The type makes it
awkward to accidentally durable-write the content, which is the point.
Implementations§
Source§impl RoutingPayload
impl RoutingPayload
Sourcepub fn text(&self) -> &str
pub fn text(&self) -> &str
The exact bytes to transmit. Sent once — see
router_user_message.
Sourcepub fn disclosure(&self) -> &RoutingDisclosure
pub fn disclosure(&self) -> &RoutingDisclosure
The durable, content-free disclosure.
Sourcepub fn into_disclosure(self) -> RoutingDisclosure
pub fn into_disclosure(self) -> RoutingDisclosure
Consume the payload, keeping only what may be persisted.
Sourcepub fn with_cross_provider(self, cross_provider: bool) -> Self
pub fn with_cross_provider(self, cross_provider: bool) -> Self
Stamp whether this payload crossed a provider boundary. Known by the caller (which holds the preflight), not by this module.
Trait Implementations§
Source§impl Clone for RoutingPayload
impl Clone for RoutingPayload
Source§fn clone(&self) -> RoutingPayload
fn clone(&self) -> RoutingPayload
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 RoutingPayload
impl Debug for RoutingPayload
impl Eq for RoutingPayload
Source§impl PartialEq for RoutingPayload
impl PartialEq for RoutingPayload
impl StructuralPartialEq for RoutingPayload
Auto Trait Implementations§
impl Freeze for RoutingPayload
impl RefUnwindSafe for RoutingPayload
impl Send for RoutingPayload
impl Sync for RoutingPayload
impl Unpin for RoutingPayload
impl UnsafeUnpin for RoutingPayload
impl UnwindSafe for RoutingPayload
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