pub struct WireDecoderBinding {
pub type_hash_fn: fn() -> u64,
pub decode_fn: fn(&[u8]) -> Result<Box<dyn SlotValue>, SlotValueError>,
}Expand description
Inventory entry mapping type_hash → WireDecodeFn. Emitted by
[register_type_node!].
Fields§
§type_hash_fn: fn() -> u64Concrete type’s stable type_hash.
decode_fn: fn(&[u8]) -> Result<Box<dyn SlotValue>, SlotValueError>Bincode decoder.
Trait Implementations§
impl Collect for WireDecoderBinding
Auto Trait Implementations§
impl Freeze for WireDecoderBinding
impl RefUnwindSafe for WireDecoderBinding
impl Send for WireDecoderBinding
impl Sync for WireDecoderBinding
impl Unpin for WireDecoderBinding
impl UnsafeUnpin for WireDecoderBinding
impl UnwindSafe for WireDecoderBinding
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