pub struct MemberContract {
pub shape: CodecMemberShape,
pub encode_road: &'static str,
pub decode_road: &'static str,
}Expand description
One wire shape’s bill: the roads the rendered surface calls on a member’s own type.
A road named through a trait is written qualified, with T standing for the member’s own type; a road named on that type itself is written bare.
§Authority
The bill is stated and never worked around. A member the rendering could not write end to end would be a member whose bytes nobody could re-read, so the rendering does not degrade: it calls the roads named here, and where one is absent the failure lands at the caller’s site as an ordinary unresolved method.
Fields§
§shape: CodecMemberShapeThe wire shape this row is about.
encode_road: &'static strThe road the encode surface calls to read the member out.
decode_road: &'static strThe road the decode surface calls to build the member back.
Trait Implementations§
Source§impl Clone for MemberContract
impl Clone for MemberContract
Source§fn clone(&self) -> MemberContract
fn clone(&self) -> MemberContract
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 moreimpl Copy for MemberContract
Source§impl Debug for MemberContract
impl Debug for MemberContract
impl Eq for MemberContract
Source§impl Hash for MemberContract
impl Hash for MemberContract
Source§impl PartialEq for MemberContract
impl PartialEq for MemberContract
impl StructuralPartialEq for MemberContract
Auto Trait Implementations§
impl Freeze for MemberContract
impl RefUnwindSafe for MemberContract
impl Send for MemberContract
impl Sync for MemberContract
impl Unpin for MemberContract
impl UnsafeUnpin for MemberContract
impl UnwindSafe for MemberContract
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