pub struct MessagePlan {
pub plan: TranslationPlan,
pub registry: SchemaRegistry,
}Expand description
Pre-built translation plan for deserializing the Message wire type.
Built once from the peer’s schema (received during handshake) and our local schema. Stored in the conduit’s Rx half and used for every incoming message.
Fields§
§plan: TranslationPlan§registry: SchemaRegistryImplementations§
Source§impl MessagePlan
impl MessagePlan
Sourcepub fn from_handshake(result: &HandshakeResult) -> Result<Self, String>
pub fn from_handshake(result: &HandshakeResult) -> Result<Self, String>
Build a message plan from the handshake result’s schema exchange.
Auto Trait Implementations§
impl Freeze for MessagePlan
impl RefUnwindSafe for MessagePlan
impl Send for MessagePlan
impl Sync for MessagePlan
impl Unpin for MessagePlan
impl UnsafeUnpin for MessagePlan
impl UnwindSafe for MessagePlan
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