You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the trait `From<&Svc>` is not implemented for `Vec<u8>`
as do attempts to deref() in the map. Similarly to_bytes() is not found on &Svc 🤦
Ideally references would accept trait methods the same way as the owned structs, otherwise are there any macros or other sugar available to access these deeply nested members and pull the byte-sizes for summation?
The text was updated successfully, but these errors were encountered:
Thanks for the pointers. Unfortunately ctx is how the type is passed from headed to typed-enum-body, but I'll see if I can make the default one work. Happen to have any dirty tricks in your code bag to get sizes for those lower-level child structs/enums or getting them to marshal into bytes somehow? Try into should work but being behind a reference breaks that as well.
@sempervictus I know it's been a while, but providing a full code example (even if it's failing) will make it easier for us to try and find a solution, it's hard/wasteful for us to make assumptions on your intention and binary format
When using complex structures such as:
getting
update
to work becomes non-trivial since there's no good way to count up the sizes of thoseSvc
structs given that they arethemselves nested structures including typed enums based on a value in the
Svc
hdr
struct.Attempting to
causes
as do attempts to
deref()
in themap
. Similarlyto_bytes()
is not found on&Svc
🤦Ideally references would accept trait methods the same way as the owned structs, otherwise are there any macros or other sugar available to access these deeply nested members and pull the byte-sizes for summation?
The text was updated successfully, but these errors were encountered: