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§
Source§impl WindowsControlChannelServer
impl WindowsControlChannelServer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.