pub struct FDomainSynchronousProxy { /* private fields */ }
Implementations§
Source§impl FDomainSynchronousProxy
impl FDomainSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<FDomainEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<FDomainEvent, 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_channel( &self, handles: &[NewHid; 2], ___deadline: MonotonicInstant, ) -> Result<ChannelCreateChannelResult, Error>
pub fn read_channel( &self, handle: &Hid, ___deadline: MonotonicInstant, ) -> Result<ChannelReadChannelResult, Error>
pub fn write_channel( &self, handle: &Hid, data: &[u8], handles: &Handles, ___deadline: MonotonicInstant, ) -> Result<ChannelWriteChannelResult, Error>
pub fn read_channel_streaming_start( &self, handle: &Hid, ___deadline: MonotonicInstant, ) -> Result<ChannelReadChannelStreamingStartResult, Error>
pub fn read_channel_streaming_stop( &self, handle: &Hid, ___deadline: MonotonicInstant, ) -> Result<ChannelReadChannelStreamingStopResult, Error>
pub fn create_event( &self, handle: &NewHid, ___deadline: MonotonicInstant, ) -> Result<EventCreateEventResult, Error>
pub fn create_event_pair( &self, handles: &[NewHid; 2], ___deadline: MonotonicInstant, ) -> Result<EventPairCreateEventPairResult, Error>
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>
pub fn namespace( &self, new_handle: &NewHid, ___deadline: MonotonicInstant, ) -> Result<FDomainNamespaceResult, Error>
pub fn close( &self, handles: &[Hid], ___deadline: MonotonicInstant, ) -> Result<FDomainCloseResult, Error>
pub fn duplicate( &self, handle: &Hid, new_handle: &NewHid, rights: Rights, ___deadline: MonotonicInstant, ) -> Result<FDomainDuplicateResult, Error>
pub fn replace( &self, handle: &Hid, new_handle: &NewHid, rights: Rights, ___deadline: MonotonicInstant, ) -> Result<FDomainReplaceResult, Error>
pub fn signal( &self, handle: &Hid, set: u32, clear: u32, ___deadline: MonotonicInstant, ) -> Result<FDomainSignalResult, Error>
pub fn signal_peer( &self, handle: &Hid, set: u32, clear: u32, ___deadline: MonotonicInstant, ) -> Result<FDomainSignalPeerResult, Error>
pub fn wait_for_signals( &self, handle: &Hid, signals: u32, ___deadline: MonotonicInstant, ) -> Result<FDomainWaitForSignalsResult, Error>
pub fn acknowledge_write_error( &self, handle: &Hid, ___deadline: MonotonicInstant, ) -> Result<FDomainAcknowledgeWriteErrorResult, Error>
Trait Implementations§
Source§impl Debug for FDomainSynchronousProxy
impl Debug for FDomainSynchronousProxy
Source§impl SynchronousProxy for FDomainSynchronousProxy
impl SynchronousProxy for FDomainSynchronousProxy
Source§type Proxy = FDomainProxy
type Proxy = FDomainProxy
The async proxy for the same protocol.
Source§type Protocol = FDomainMarker
type Protocol = FDomainMarker
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 FDomainSynchronousProxy
impl RefUnwindSafe for FDomainSynchronousProxy
impl Send for FDomainSynchronousProxy
impl Sync for FDomainSynchronousProxy
impl Unpin for FDomainSynchronousProxy
impl UnwindSafe for FDomainSynchronousProxy
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