MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / repack

Method repack

flow-rs/src/envelope/envelope.rs:88–93  ·  view source on GitHub ↗

Repack a message, and return a new envelope with the message

(&self, msg: T)

Source from the content-addressed store, hash-verified

86 }
87 /// Repack a message, and return a new envelope with the message
88 pub fn repack<T>(&self, msg: T) -> Envelope<T> {
89 Envelope {
90 msg: Some(msg),
91 info: self.info.clone(),
92 }
93 }
94 /// Repack a message in place
95 pub fn repack_inplace(&mut self, msg: M) {
96 self.msg = Some(msg);

Callers 8

reduce_defFunction · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected