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

Method take

flow-rs/src/envelope/envelope.rs:99–104  ·  view source on GitHub ↗

Takes the message out of the envelope, leaving a `None` in its place

(&mut self)

Source from the content-addressed store, hash-verified

97 }
98 /// Takes the message out of the envelope, leaving a `None` in its place
99 pub fn take(&mut self) -> Envelope<M> {
100 Envelope {
101 msg: self.msg.take(),
102 info: self.info.clone(),
103 }
104 }
105 /// Return a reference to the message
106 ///
107 /// # Panics

Callers 15

newMethod · 0.80
waitMethod · 0.80
closeMethod · 0.80
fromMethod · 0.80
to_dataFunction · 0.80
unpackMethod · 0.80
waitMethod · 0.80
abortMethod · 0.80
recvMethod · 0.80
batch_recvMethod · 0.80
sendMethod · 0.80
recvMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected