pub struct ConnectionReceiver2SynchronousProxy { /* private fields */ }
Implementations§
Source§impl ConnectionReceiver2SynchronousProxy
impl ConnectionReceiver2SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ConnectionReceiver2Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ConnectionReceiver2Event, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn connected(
&self,
payload: ConnectionReceiver2ConnectedRequest,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn connected( &self, payload: ConnectionReceiver2ConnectedRequest, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Called when a peer connects to this service. The channel connected is delivered
with parameters in channel
.
protocol
will contain a protocol list up to the point connected (for example, if
L2CAP is connected, it will contain the L2CAP protocol and specify the PSM connected)
Trait Implementations§
Source§impl From<Channel> for ConnectionReceiver2SynchronousProxy
impl From<Channel> for ConnectionReceiver2SynchronousProxy
Source§impl From<ConnectionReceiver2SynchronousProxy> for Handle
impl From<ConnectionReceiver2SynchronousProxy> for Handle
Source§fn from(value: ConnectionReceiver2SynchronousProxy) -> Self
fn from(value: ConnectionReceiver2SynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl SynchronousProxy for ConnectionReceiver2SynchronousProxy
impl SynchronousProxy for ConnectionReceiver2SynchronousProxy
Source§type Proxy = ConnectionReceiver2Proxy
type Proxy = ConnectionReceiver2Proxy
The async proxy for the same protocol.
Source§type Protocol = ConnectionReceiver2Marker
type Protocol = ConnectionReceiver2Marker
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 ConnectionReceiver2SynchronousProxy
impl RefUnwindSafe for ConnectionReceiver2SynchronousProxy
impl Send for ConnectionReceiver2SynchronousProxy
impl Sync for ConnectionReceiver2SynchronousProxy
impl Unpin for ConnectionReceiver2SynchronousProxy
impl UnwindSafe for ConnectionReceiver2SynchronousProxy
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