[WIP] Security work While on holiday

This commit is contained in:
Alex 2026-08-12 22:45:28 +02:00
commit 7f0231e3f1
Signed by: alex
SSH key fingerprint: SHA256:D1+Ub8o0v4K5y1JNivW8IxEOelqLSvPmUzBbDIoZkRQ
109 changed files with 19694 additions and 5210 deletions

View file

@ -22,6 +22,10 @@ impl PipeWriter {
}
impl<S: tokio::io::AsyncWrite + Send + Unpin> PipeWriter<S> {
pub fn into_inner(self) -> S {
self.stream
}
pub async fn finish_async(mut self) -> Result<(), mtp_common::CommunicationError> {
tokio::io::AsyncWriteExt::shutdown(&mut self)
.await
@ -58,6 +62,10 @@ pub struct PipeReader<R = wtransport::RecvStream> {
}
impl<R> PipeReader<R> {
pub fn into_inner(self) -> R {
self.stream
}
pub fn description(&self) -> &str {
&self.description
}