Struct distant_net::common::WindowsPipeTransport
source · pub struct WindowsPipeTransport { /* private fields */ }Expand description
Represents a Transport that leverages a named Windows pipe (client or server)
Implementations
sourceimpl WindowsPipeTransport
impl WindowsPipeTransport
sourcepub async fn connect_local(name: impl AsRef<OsStr>) -> Result<Self>
pub async fn connect_local(name: impl AsRef<OsStr>) -> Result<Self>
Establishes a connection to the pipe with the specified name, using the
name for a local pipe address in the form of \\.\pipe\my_pipe_name where
my_pipe_name is provided to this function
Trait Implementations
sourceimpl Debug for WindowsPipeTransport
impl Debug for WindowsPipeTransport
sourceimpl Reconnectable for WindowsPipeTransport
impl Reconnectable for WindowsPipeTransport
sourceimpl Transport for WindowsPipeTransport
impl Transport for WindowsPipeTransport
sourcefn try_read(&self, buf: &mut [u8]) -> Result<usize>
fn try_read(&self, buf: &mut [u8]) -> Result<usize>
Tries to read data from the transport into the provided buffer, returning how many bytes
were read. Read more
Auto Trait Implementations
impl RefUnwindSafe for WindowsPipeTransport
impl Send for WindowsPipeTransport
impl Sync for WindowsPipeTransport
impl Unpin for WindowsPipeTransport
impl UnwindSafe for WindowsPipeTransport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more