pub struct RpcPlan {
pub shape: &'static Shape,
pub channel_locations: &'static [ChannelLocation],
}Expand description
Precomputed plan for an RPC type (args, response, or error).
Contains the shape and locations of all channels within the type structure.
Deserialization plans are cached transparently by facet via TypePlanCore::from_shape.
Fields§
§shape: &'static ShapeThe shape this plan was built for. Used for type-safe construction.
channel_locations: &'static [ChannelLocation]Locations of all Rx/Tx channels in this type, in declaration order.
Implementations§
Auto Trait Implementations§
impl Freeze for RpcPlan
impl RefUnwindSafe for RpcPlan
impl Send for RpcPlan
impl Sync for RpcPlan
impl Unpin for RpcPlan
impl UnsafeUnpin for RpcPlan
impl UnwindSafe for RpcPlan
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