MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / write_all

Function write_all

crates/openshell-supervisor-network/src/proxy.rs:2093–2098  ·  view source on GitHub ↗

Write all bytes to an async writer.

(writer: &mut (impl tokio::io::AsyncWrite + Unpin), data: &[u8])

Source from the content-addressed store, hash-verified

2091
2092/// Write all bytes to an async writer.
2093async fn write_all(writer: &mut (impl tokio::io::AsyncWrite + Unpin), data: &[u8]) -> Result<()> {
2094 use tokio::io::AsyncWriteExt;
2095 writer.write_all(data).await.into_diagnostic()?;
2096 writer.flush().await.into_diagnostic()?;
2097 Ok(())
2098}
2099
2100#[derive(Debug, Clone)]
2101struct L7ConfigSnapshot {

Calls 1

flushMethod · 0.45