/// Just sanity check that both channel endpoints stay the size of a single pointer. #[test] fn channel_endpoints_single_pointer() { const PTR_SIZE: usize = mem::size_of::<*const ()>();
/// Check that the `SendError` stays small. Useful to automatically detect if it is refactored /// to become large. We do not want the stack requirement for calling `Sender::send` to grow. #[test] fn error_sizes() { const PTR_SIZE: usize = mem::size_of::<usize>();
// The type returned from `Sender::send` is also just pointer sized
assert_eq!(
mem::size_of::<Result<(), oneshot::SendError<[u8; 1024]>>>(),
PTR_SIZE
);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.