pub struct ChannelProxy { /* private fields */ }
Implementations§
Source§impl ChannelProxy
impl ChannelProxy
Sourcepub fn take_event_stream(&self) -> ChannelEventStream
pub fn take_event_stream(&self) -> ChannelEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn send_(
&self,
packets: &[Packet],
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn send_( &self, packets: &[Packet], ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Send multiple packets of data over the channel. Only one Send
may be pending at a time.
Sourcepub fn receive(
&self,
) -> QueryResponseFut<Vec<Packet>, DefaultFuchsiaResourceDialect>
pub fn receive( &self, ) -> QueryResponseFut<Vec<Packet>, DefaultFuchsiaResourceDialect>
Hanging get that waits for inbound packets. Only one Receive
may be pending at a time.
Sourcepub fn watch_channel_parameters(
&self,
) -> QueryResponseFut<ChannelParameters, DefaultFuchsiaResourceDialect>
pub fn watch_channel_parameters( &self, ) -> QueryResponseFut<ChannelParameters, DefaultFuchsiaResourceDialect>
For RFCOMM channels, this will not return and calls will hang indefinitely.
For BR/EDR L2CAP connection-oriented channels this will currently not
return and calls will hang indefinitely. The initial channel parameters
are provided in [fuchsia.bluetooth.bredr/Channel
].
For LE L2CAP connection-oriented channels, the first call will
immediately return the parameters of the remote side of the channel.
Subsequent calls will hang until the ChannelParameters
change, at
which point it will return the new parameters, including those that have
not changed.
Trait Implementations§
Source§impl ChannelProxyInterface for ChannelProxy
impl ChannelProxyInterface for ChannelProxy
type Send_ResponseFut = QueryResponseFut<()>
type ReceiveResponseFut = QueryResponseFut<Vec<Packet>>
type WatchChannelParametersResponseFut = QueryResponseFut<ChannelParameters>
fn send_(&self, packets: &[Packet]) -> Self::Send_ResponseFut
fn receive(&self) -> Self::ReceiveResponseFut
fn watch_channel_parameters(&self) -> Self::WatchChannelParametersResponseFut
Source§impl Clone for ChannelProxy
impl Clone for ChannelProxy
Source§fn clone(&self) -> ChannelProxy
fn clone(&self) -> ChannelProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChannelProxy
impl Debug for ChannelProxy
Source§impl Proxy for ChannelProxy
impl Proxy for ChannelProxy
Source§type Protocol = ChannelMarker
type Protocol = ChannelMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for ChannelProxy
impl !RefUnwindSafe for ChannelProxy
impl Send for ChannelProxy
impl Sync for ChannelProxy
impl Unpin for ChannelProxy
impl !UnwindSafe for ChannelProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)