[WIP] Security work While on holiday
This commit is contained in:
parent
a81ac4efca
commit
7f0231e3f1
109 changed files with 19694 additions and 5210 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue