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

Method unpack

flow-rs/src/envelope/envelope.rs:84–86  ·  view source on GitHub ↗

Take the message from the envelope # Panics If the envelope has no message

(&mut self)

Source from the content-addressed store, hash-verified

82 ///
83 /// If the envelope has no message
84 pub fn unpack(&mut self) -> M {
85 self.msg.take().expect("message not found")
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 {

Callers 2

fetchMethod · 0.80
try_fetchMethod · 0.80

Calls 1

takeMethod · 0.80

Tested by

no test coverage detected