pub struct L2capParametersExtSynchronousProxy { /* private fields */ }
Implementations§
Source§impl L2capParametersExtSynchronousProxy
impl L2capParametersExtSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<L2capParametersExtEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<L2capParametersExtEvent, 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 request_parameters(
&self,
request: &ChannelParameters,
___deadline: MonotonicInstant,
) -> Result<ChannelParameters, Error>
pub fn request_parameters( &self, request: &ChannelParameters, ___deadline: MonotonicInstant, ) -> Result<ChannelParameters, Error>
Request a L2CAP channel parameter update. request
indicates the
desired parameters, and new
indicates the new parameters
(which may differ from the requested parameters if they are
rejected/modified).
Currently only the following parameters can be changed:
- flush_timeout
Trait Implementations§
Source§impl SynchronousProxy for L2capParametersExtSynchronousProxy
impl SynchronousProxy for L2capParametersExtSynchronousProxy
Source§type Proxy = L2capParametersExtProxy
type Proxy = L2capParametersExtProxy
The async proxy for the same protocol.
Source§type Protocol = L2capParametersExtMarker
type Protocol = L2capParametersExtMarker
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 L2capParametersExtSynchronousProxy
impl RefUnwindSafe for L2capParametersExtSynchronousProxy
impl Send for L2capParametersExtSynchronousProxy
impl Sync for L2capParametersExtSynchronousProxy
impl Unpin for L2capParametersExtSynchronousProxy
impl UnwindSafe for L2capParametersExtSynchronousProxy
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