Struct WindowsControlChannelClient
pub struct WindowsControlChannelClient {
pipe: Option<NamedPipeClient>,
}Expand description
Client-side control channel backed by a Windows named pipe client.
Fields§
§pipe: Option<NamedPipeClient>Implementations§
Source§impl WindowsControlChannelClient
impl WindowsControlChannelClient
Sourcepub fn new() -> WindowsControlChannelClient
pub fn new() -> WindowsControlChannelClient
Trait Implementations§
Source§impl ControlChannelClient for WindowsControlChannelClient
impl ControlChannelClient for WindowsControlChannelClient
Source§async fn connect(
&mut self,
endpoint: &OsStr,
) -> Result<(), <WindowsControlChannelClient as ControlChannelClient>::Error>
async fn connect( &mut self, endpoint: &OsStr, ) -> Result<(), <WindowsControlChannelClient as ControlChannelClient>::Error>
Connect to the daemon’s control-channel endpoint identified by
endpoint. Read moreSource§async fn send(
&mut self,
bytes: &[u8],
) -> Result<(), <WindowsControlChannelClient as ControlChannelClient>::Error>
async fn send( &mut self, bytes: &[u8], ) -> Result<(), <WindowsControlChannelClient as ControlChannelClient>::Error>
Send raw bytes to the daemon. Read more
Source§async fn recv(
&mut self,
buf: &mut [u8],
) -> Result<usize, <WindowsControlChannelClient as ControlChannelClient>::Error>
async fn recv( &mut self, buf: &mut [u8], ) -> Result<usize, <WindowsControlChannelClient as ControlChannelClient>::Error>
Source§impl Default for WindowsControlChannelClient
impl Default for WindowsControlChannelClient
Source§fn default() -> WindowsControlChannelClient
fn default() -> WindowsControlChannelClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowsControlChannelClient
impl RefUnwindSafe for WindowsControlChannelClient
impl Send for WindowsControlChannelClient
impl Sync for WindowsControlChannelClient
impl Unpin for WindowsControlChannelClient
impl UnsafeUnpin for WindowsControlChannelClient
impl UnwindSafe for WindowsControlChannelClient
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.