pub struct SocketSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SocketSynchronousProxy
impl SocketSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SocketEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SocketEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn create_socket( &self, options: SocketType, handles: &[NewHid; 2], ___deadline: MonotonicInstant, ) -> Result<SocketCreateSocketResult, Error>
pub fn set_socket_disposition( &self, handle: &Hid, disposition: SocketDisposition, disposition_peer: SocketDisposition, ___deadline: MonotonicInstant, ) -> Result<SocketSetSocketDispositionResult, Error>
pub fn read_socket( &self, handle: &Hid, max_bytes: u64, ___deadline: MonotonicInstant, ) -> Result<SocketReadSocketResult, Error>
pub fn write_socket( &self, handle: &Hid, data: &[u8], ___deadline: MonotonicInstant, ) -> Result<SocketWriteSocketResult, Error>
pub fn read_socket_streaming_start( &self, handle: &Hid, ___deadline: MonotonicInstant, ) -> Result<SocketReadSocketStreamingStartResult, Error>
pub fn read_socket_streaming_stop( &self, handle: &Hid, ___deadline: MonotonicInstant, ) -> Result<SocketReadSocketStreamingStopResult, Error>
Trait Implementations§
Source§impl Debug for SocketSynchronousProxy
impl Debug for SocketSynchronousProxy
Source§impl SynchronousProxy for SocketSynchronousProxy
impl SynchronousProxy for SocketSynchronousProxy
Source§type Proxy = SocketProxy
type Proxy = SocketProxy
The async proxy for the same protocol.
Source§type Protocol = SocketMarker
type Protocol = SocketMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SocketSynchronousProxy
impl RefUnwindSafe for SocketSynchronousProxy
impl Send for SocketSynchronousProxy
impl Sync for SocketSynchronousProxy
impl Unpin for SocketSynchronousProxy
impl UnwindSafe for SocketSynchronousProxy
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