pub struct LocoSecureStream<T> { /* private fields */ }Implementations§
Source§impl<T> LocoSecureStream<T>
impl<T> LocoSecureStream<T>
pub const MAX_IO_SIZE: u64 = 16_777_216u64
pub fn new(rsa_key: RsaPublicKey, inner: T) -> Self
pub fn inner(&self) -> &T
pub fn inner_mut(&mut self) -> &mut T
pub fn into_inner(self) -> T
Trait Implementations§
Source§impl<T: AsyncRead> AsyncRead for LocoSecureStream<T>
impl<T: AsyncRead> AsyncRead for LocoSecureStream<T>
Source§impl<T: AsyncWrite> AsyncWrite for LocoSecureStream<T>
impl<T: AsyncWrite> AsyncWrite for LocoSecureStream<T>
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf into the object. Read moreSource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Source§impl<T: Debug> Debug for LocoSecureStream<T>
impl<T: Debug> Debug for LocoSecureStream<T>
impl<'__pin, T> Unpin for LocoSecureStream<T>where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for LocoSecureStream<T>where
T: Freeze,
impl<T> RefUnwindSafe for LocoSecureStream<T>where
T: RefUnwindSafe,
impl<T> Send for LocoSecureStream<T>where
T: Send,
impl<T> Sync for LocoSecureStream<T>where
T: Sync,
impl<T> UnwindSafe for LocoSecureStream<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more