Struct WindowsControlChannelServer
pub struct WindowsControlChannelServer {
pipe: NamedPipeServer,
endpoint: OsString,
}Expand description
Daemon-side control channel backed by a Windows named pipe server.
One instance owns one [NamedPipeServer] endpoint. accept
waits for the matching client process to connect; send / recv
then exchange already-framed bytes produced by cssh-rs-protocol.
Fields§
§pipe: NamedPipeServer§endpoint: OsStringImplementations§
Trait Implementations§
Source§impl ControlChannelServer for WindowsControlChannelServer
impl ControlChannelServer for WindowsControlChannelServer
Source§async fn accept(
&mut self,
) -> Result<(), <WindowsControlChannelServer as ControlChannelServer>::Error>
async fn accept( &mut self, ) -> Result<(), <WindowsControlChannelServer as ControlChannelServer>::Error>
Wait for the client process to connect. Read more
Source§async fn send(
&mut self,
frame: &[u8],
) -> Result<(), <WindowsControlChannelServer as ControlChannelServer>::Error>
async fn send( &mut self, frame: &[u8], ) -> Result<(), <WindowsControlChannelServer as ControlChannelServer>::Error>
Send an already-framed control message to the connected client. Read more
Source§async fn recv(
&mut self,
buf: &mut [u8],
) -> Result<usize, <WindowsControlChannelServer as ControlChannelServer>::Error>
async fn recv( &mut self, buf: &mut [u8], ) -> Result<usize, <WindowsControlChannelServer as ControlChannelServer>::Error>
Auto Trait Implementations§
impl Freeze for WindowsControlChannelServer
impl RefUnwindSafe for WindowsControlChannelServer
impl Send for WindowsControlChannelServer
impl Sync for WindowsControlChannelServer
impl Unpin for WindowsControlChannelServer
impl UnsafeUnpin for WindowsControlChannelServer
impl UnwindSafe for WindowsControlChannelServer
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