MCPcopy Index your code
hub / github.com/Dstack-TEE/dstack / encode_to

Method encode_to

dstack-attest/src/attestation.rs:362–367  ·  view source on GitHub ↗
(&self, dest: &mut T)

Source from the content-addressed store, hash-verified

360 }
361
362 fn encode_to<T: Output + ?Sized>(&self, dest: &mut T) {
363 let bytes = self
364 .to_bytes()
365 .or_panic("VersionedAttestation should always encode successfully");
366 dest.write(&bytes);
367 }
368}
369
370impl Decode for VersionedAttestation {

Callers

nothing calls this directly

Calls 2

to_bytesMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected