1#![warn(clippy::all)]
4#![allow(unused_parens, unused_mut, unused_imports, nonstandard_style)]
5
6use bitflags::bitflags;
7use fidl::client::QueryResponseFut;
8use fidl::encoding::{MessageBufFor, ProxyChannelBox, ResourceDialect};
9use fidl::endpoints::{ControlHandle as _, Responder as _};
10pub use fidl_fuchsia_wlan_softmac_common::*;
11use futures::future::{self, MaybeDone, TryFutureExt};
12use zx_status;
13
14#[derive(Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
15pub struct WlanSoftmacBridgeStartRequest {
16 pub ifc_bridge: fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
17 pub ethernet_tx: u64,
18 pub wlan_rx: u64,
19}
20
21impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
22 for WlanSoftmacBridgeStartRequest
23{
24}
25
26#[derive(Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
27pub struct WlanSoftmacBridgeStartResponse {
28 pub sme_channel: fidl::Channel,
29}
30
31impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
32 for WlanSoftmacBridgeStartResponse
33{
34}
35
36#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
37pub struct EthernetRxMarker;
38
39impl fidl::endpoints::ProtocolMarker for EthernetRxMarker {
40 type Proxy = EthernetRxProxy;
41 type RequestStream = EthernetRxRequestStream;
42 #[cfg(target_os = "fuchsia")]
43 type SynchronousProxy = EthernetRxSynchronousProxy;
44
45 const DEBUG_NAME: &'static str = "(anonymous) EthernetRx";
46}
47pub type EthernetRxTransferResult = Result<(), i32>;
48
49pub trait EthernetRxProxyInterface: Send + Sync {
50 type TransferResponseFut: std::future::Future<Output = Result<EthernetRxTransferResult, fidl::Error>>
51 + Send;
52 fn r#transfer(&self, payload: &EthernetRxTransferRequest) -> Self::TransferResponseFut;
53}
54#[derive(Debug)]
55#[cfg(target_os = "fuchsia")]
56pub struct EthernetRxSynchronousProxy {
57 client: fidl::client::sync::Client,
58}
59
60#[cfg(target_os = "fuchsia")]
61impl fidl::endpoints::SynchronousProxy for EthernetRxSynchronousProxy {
62 type Proxy = EthernetRxProxy;
63 type Protocol = EthernetRxMarker;
64
65 fn from_channel(inner: fidl::Channel) -> Self {
66 Self::new(inner)
67 }
68
69 fn into_channel(self) -> fidl::Channel {
70 self.client.into_channel()
71 }
72
73 fn as_channel(&self) -> &fidl::Channel {
74 self.client.as_channel()
75 }
76}
77
78#[cfg(target_os = "fuchsia")]
79impl EthernetRxSynchronousProxy {
80 pub fn new(channel: fidl::Channel) -> Self {
81 let protocol_name = <EthernetRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
82 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
83 }
84
85 pub fn into_channel(self) -> fidl::Channel {
86 self.client.into_channel()
87 }
88
89 pub fn wait_for_event(
92 &self,
93 deadline: zx::MonotonicInstant,
94 ) -> Result<EthernetRxEvent, fidl::Error> {
95 EthernetRxEvent::decode(self.client.wait_for_event(deadline)?)
96 }
97
98 pub fn r#transfer(
99 &self,
100 mut payload: &EthernetRxTransferRequest,
101 ___deadline: zx::MonotonicInstant,
102 ) -> Result<EthernetRxTransferResult, fidl::Error> {
103 let _response = self.client.send_query::<
104 EthernetRxTransferRequest,
105 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
106 >(
107 payload,
108 0x199ff3498ef8a22a,
109 fidl::encoding::DynamicFlags::empty(),
110 ___deadline,
111 )?;
112 Ok(_response.map(|x| x))
113 }
114}
115
116#[cfg(target_os = "fuchsia")]
117impl From<EthernetRxSynchronousProxy> for zx::Handle {
118 fn from(value: EthernetRxSynchronousProxy) -> Self {
119 value.into_channel().into()
120 }
121}
122
123#[cfg(target_os = "fuchsia")]
124impl From<fidl::Channel> for EthernetRxSynchronousProxy {
125 fn from(value: fidl::Channel) -> Self {
126 Self::new(value)
127 }
128}
129
130#[derive(Debug, Clone)]
131pub struct EthernetRxProxy {
132 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
133}
134
135impl fidl::endpoints::Proxy for EthernetRxProxy {
136 type Protocol = EthernetRxMarker;
137
138 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
139 Self::new(inner)
140 }
141
142 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
143 self.client.into_channel().map_err(|client| Self { client })
144 }
145
146 fn as_channel(&self) -> &::fidl::AsyncChannel {
147 self.client.as_channel()
148 }
149}
150
151impl EthernetRxProxy {
152 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
154 let protocol_name = <EthernetRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
155 Self { client: fidl::client::Client::new(channel, protocol_name) }
156 }
157
158 pub fn take_event_stream(&self) -> EthernetRxEventStream {
164 EthernetRxEventStream { event_receiver: self.client.take_event_receiver() }
165 }
166
167 pub fn r#transfer(
168 &self,
169 mut payload: &EthernetRxTransferRequest,
170 ) -> fidl::client::QueryResponseFut<
171 EthernetRxTransferResult,
172 fidl::encoding::DefaultFuchsiaResourceDialect,
173 > {
174 EthernetRxProxyInterface::r#transfer(self, payload)
175 }
176}
177
178impl EthernetRxProxyInterface for EthernetRxProxy {
179 type TransferResponseFut = fidl::client::QueryResponseFut<
180 EthernetRxTransferResult,
181 fidl::encoding::DefaultFuchsiaResourceDialect,
182 >;
183 fn r#transfer(&self, mut payload: &EthernetRxTransferRequest) -> Self::TransferResponseFut {
184 fn _decode(
185 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
186 ) -> Result<EthernetRxTransferResult, fidl::Error> {
187 let _response = fidl::client::decode_transaction_body::<
188 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
189 fidl::encoding::DefaultFuchsiaResourceDialect,
190 0x199ff3498ef8a22a,
191 >(_buf?)?;
192 Ok(_response.map(|x| x))
193 }
194 self.client.send_query_and_decode::<EthernetRxTransferRequest, EthernetRxTransferResult>(
195 payload,
196 0x199ff3498ef8a22a,
197 fidl::encoding::DynamicFlags::empty(),
198 _decode,
199 )
200 }
201}
202
203pub struct EthernetRxEventStream {
204 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
205}
206
207impl std::marker::Unpin for EthernetRxEventStream {}
208
209impl futures::stream::FusedStream for EthernetRxEventStream {
210 fn is_terminated(&self) -> bool {
211 self.event_receiver.is_terminated()
212 }
213}
214
215impl futures::Stream for EthernetRxEventStream {
216 type Item = Result<EthernetRxEvent, fidl::Error>;
217
218 fn poll_next(
219 mut self: std::pin::Pin<&mut Self>,
220 cx: &mut std::task::Context<'_>,
221 ) -> std::task::Poll<Option<Self::Item>> {
222 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
223 &mut self.event_receiver,
224 cx
225 )?) {
226 Some(buf) => std::task::Poll::Ready(Some(EthernetRxEvent::decode(buf))),
227 None => std::task::Poll::Ready(None),
228 }
229 }
230}
231
232#[derive(Debug)]
233pub enum EthernetRxEvent {}
234
235impl EthernetRxEvent {
236 fn decode(
238 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
239 ) -> Result<EthernetRxEvent, fidl::Error> {
240 let (bytes, _handles) = buf.split_mut();
241 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
242 debug_assert_eq!(tx_header.tx_id, 0);
243 match tx_header.ordinal {
244 _ => Err(fidl::Error::UnknownOrdinal {
245 ordinal: tx_header.ordinal,
246 protocol_name: <EthernetRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
247 }),
248 }
249 }
250}
251
252pub struct EthernetRxRequestStream {
254 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
255 is_terminated: bool,
256}
257
258impl std::marker::Unpin for EthernetRxRequestStream {}
259
260impl futures::stream::FusedStream for EthernetRxRequestStream {
261 fn is_terminated(&self) -> bool {
262 self.is_terminated
263 }
264}
265
266impl fidl::endpoints::RequestStream for EthernetRxRequestStream {
267 type Protocol = EthernetRxMarker;
268 type ControlHandle = EthernetRxControlHandle;
269
270 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
271 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
272 }
273
274 fn control_handle(&self) -> Self::ControlHandle {
275 EthernetRxControlHandle { inner: self.inner.clone() }
276 }
277
278 fn into_inner(
279 self,
280 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
281 {
282 (self.inner, self.is_terminated)
283 }
284
285 fn from_inner(
286 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
287 is_terminated: bool,
288 ) -> Self {
289 Self { inner, is_terminated }
290 }
291}
292
293impl futures::Stream for EthernetRxRequestStream {
294 type Item = Result<EthernetRxRequest, fidl::Error>;
295
296 fn poll_next(
297 mut self: std::pin::Pin<&mut Self>,
298 cx: &mut std::task::Context<'_>,
299 ) -> std::task::Poll<Option<Self::Item>> {
300 let this = &mut *self;
301 if this.inner.check_shutdown(cx) {
302 this.is_terminated = true;
303 return std::task::Poll::Ready(None);
304 }
305 if this.is_terminated {
306 panic!("polled EthernetRxRequestStream after completion");
307 }
308 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
309 |bytes, handles| {
310 match this.inner.channel().read_etc(cx, bytes, handles) {
311 std::task::Poll::Ready(Ok(())) => {}
312 std::task::Poll::Pending => return std::task::Poll::Pending,
313 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
314 this.is_terminated = true;
315 return std::task::Poll::Ready(None);
316 }
317 std::task::Poll::Ready(Err(e)) => {
318 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
319 e.into(),
320 ))))
321 }
322 }
323
324 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
326
327 std::task::Poll::Ready(Some(match header.ordinal {
328 0x199ff3498ef8a22a => {
329 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
330 let mut req = fidl::new_empty!(
331 EthernetRxTransferRequest,
332 fidl::encoding::DefaultFuchsiaResourceDialect
333 );
334 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<EthernetRxTransferRequest>(&header, _body_bytes, handles, &mut req)?;
335 let control_handle = EthernetRxControlHandle { inner: this.inner.clone() };
336 Ok(EthernetRxRequest::Transfer {
337 payload: req,
338 responder: EthernetRxTransferResponder {
339 control_handle: std::mem::ManuallyDrop::new(control_handle),
340 tx_id: header.tx_id,
341 },
342 })
343 }
344 _ => Err(fidl::Error::UnknownOrdinal {
345 ordinal: header.ordinal,
346 protocol_name:
347 <EthernetRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
348 }),
349 }))
350 },
351 )
352 }
353}
354
355#[derive(Debug)]
364pub enum EthernetRxRequest {
365 Transfer { payload: EthernetRxTransferRequest, responder: EthernetRxTransferResponder },
366}
367
368impl EthernetRxRequest {
369 #[allow(irrefutable_let_patterns)]
370 pub fn into_transfer(self) -> Option<(EthernetRxTransferRequest, EthernetRxTransferResponder)> {
371 if let EthernetRxRequest::Transfer { payload, responder } = self {
372 Some((payload, responder))
373 } else {
374 None
375 }
376 }
377
378 pub fn method_name(&self) -> &'static str {
380 match *self {
381 EthernetRxRequest::Transfer { .. } => "transfer",
382 }
383 }
384}
385
386#[derive(Debug, Clone)]
387pub struct EthernetRxControlHandle {
388 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
389}
390
391impl fidl::endpoints::ControlHandle for EthernetRxControlHandle {
392 fn shutdown(&self) {
393 self.inner.shutdown()
394 }
395 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
396 self.inner.shutdown_with_epitaph(status)
397 }
398
399 fn is_closed(&self) -> bool {
400 self.inner.channel().is_closed()
401 }
402 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
403 self.inner.channel().on_closed()
404 }
405
406 #[cfg(target_os = "fuchsia")]
407 fn signal_peer(
408 &self,
409 clear_mask: zx::Signals,
410 set_mask: zx::Signals,
411 ) -> Result<(), zx_status::Status> {
412 use fidl::Peered;
413 self.inner.channel().signal_peer(clear_mask, set_mask)
414 }
415}
416
417impl EthernetRxControlHandle {}
418
419#[must_use = "FIDL methods require a response to be sent"]
420#[derive(Debug)]
421pub struct EthernetRxTransferResponder {
422 control_handle: std::mem::ManuallyDrop<EthernetRxControlHandle>,
423 tx_id: u32,
424}
425
426impl std::ops::Drop for EthernetRxTransferResponder {
430 fn drop(&mut self) {
431 self.control_handle.shutdown();
432 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
434 }
435}
436
437impl fidl::endpoints::Responder for EthernetRxTransferResponder {
438 type ControlHandle = EthernetRxControlHandle;
439
440 fn control_handle(&self) -> &EthernetRxControlHandle {
441 &self.control_handle
442 }
443
444 fn drop_without_shutdown(mut self) {
445 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
447 std::mem::forget(self);
449 }
450}
451
452impl EthernetRxTransferResponder {
453 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
457 let _result = self.send_raw(result);
458 if _result.is_err() {
459 self.control_handle.shutdown();
460 }
461 self.drop_without_shutdown();
462 _result
463 }
464
465 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
467 let _result = self.send_raw(result);
468 self.drop_without_shutdown();
469 _result
470 }
471
472 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
473 self.control_handle
474 .inner
475 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
476 result,
477 self.tx_id,
478 0x199ff3498ef8a22a,
479 fidl::encoding::DynamicFlags::empty(),
480 )
481 }
482}
483
484#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
485pub struct EthernetTxMarker;
486
487impl fidl::endpoints::ProtocolMarker for EthernetTxMarker {
488 type Proxy = EthernetTxProxy;
489 type RequestStream = EthernetTxRequestStream;
490 #[cfg(target_os = "fuchsia")]
491 type SynchronousProxy = EthernetTxSynchronousProxy;
492
493 const DEBUG_NAME: &'static str = "(anonymous) EthernetTx";
494}
495pub type EthernetTxTransferResult = Result<(), i32>;
496
497pub trait EthernetTxProxyInterface: Send + Sync {
498 type TransferResponseFut: std::future::Future<Output = Result<EthernetTxTransferResult, fidl::Error>>
499 + Send;
500 fn r#transfer(&self, payload: &EthernetTxTransferRequest) -> Self::TransferResponseFut;
501}
502#[derive(Debug)]
503#[cfg(target_os = "fuchsia")]
504pub struct EthernetTxSynchronousProxy {
505 client: fidl::client::sync::Client,
506}
507
508#[cfg(target_os = "fuchsia")]
509impl fidl::endpoints::SynchronousProxy for EthernetTxSynchronousProxy {
510 type Proxy = EthernetTxProxy;
511 type Protocol = EthernetTxMarker;
512
513 fn from_channel(inner: fidl::Channel) -> Self {
514 Self::new(inner)
515 }
516
517 fn into_channel(self) -> fidl::Channel {
518 self.client.into_channel()
519 }
520
521 fn as_channel(&self) -> &fidl::Channel {
522 self.client.as_channel()
523 }
524}
525
526#[cfg(target_os = "fuchsia")]
527impl EthernetTxSynchronousProxy {
528 pub fn new(channel: fidl::Channel) -> Self {
529 let protocol_name = <EthernetTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
530 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
531 }
532
533 pub fn into_channel(self) -> fidl::Channel {
534 self.client.into_channel()
535 }
536
537 pub fn wait_for_event(
540 &self,
541 deadline: zx::MonotonicInstant,
542 ) -> Result<EthernetTxEvent, fidl::Error> {
543 EthernetTxEvent::decode(self.client.wait_for_event(deadline)?)
544 }
545
546 pub fn r#transfer(
547 &self,
548 mut payload: &EthernetTxTransferRequest,
549 ___deadline: zx::MonotonicInstant,
550 ) -> Result<EthernetTxTransferResult, fidl::Error> {
551 let _response = self.client.send_query::<
552 EthernetTxTransferRequest,
553 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
554 >(
555 payload,
556 0x616dafedf07d00e7,
557 fidl::encoding::DynamicFlags::empty(),
558 ___deadline,
559 )?;
560 Ok(_response.map(|x| x))
561 }
562}
563
564#[cfg(target_os = "fuchsia")]
565impl From<EthernetTxSynchronousProxy> for zx::Handle {
566 fn from(value: EthernetTxSynchronousProxy) -> Self {
567 value.into_channel().into()
568 }
569}
570
571#[cfg(target_os = "fuchsia")]
572impl From<fidl::Channel> for EthernetTxSynchronousProxy {
573 fn from(value: fidl::Channel) -> Self {
574 Self::new(value)
575 }
576}
577
578#[derive(Debug, Clone)]
579pub struct EthernetTxProxy {
580 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
581}
582
583impl fidl::endpoints::Proxy for EthernetTxProxy {
584 type Protocol = EthernetTxMarker;
585
586 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
587 Self::new(inner)
588 }
589
590 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
591 self.client.into_channel().map_err(|client| Self { client })
592 }
593
594 fn as_channel(&self) -> &::fidl::AsyncChannel {
595 self.client.as_channel()
596 }
597}
598
599impl EthernetTxProxy {
600 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
602 let protocol_name = <EthernetTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
603 Self { client: fidl::client::Client::new(channel, protocol_name) }
604 }
605
606 pub fn take_event_stream(&self) -> EthernetTxEventStream {
612 EthernetTxEventStream { event_receiver: self.client.take_event_receiver() }
613 }
614
615 pub fn r#transfer(
616 &self,
617 mut payload: &EthernetTxTransferRequest,
618 ) -> fidl::client::QueryResponseFut<
619 EthernetTxTransferResult,
620 fidl::encoding::DefaultFuchsiaResourceDialect,
621 > {
622 EthernetTxProxyInterface::r#transfer(self, payload)
623 }
624}
625
626impl EthernetTxProxyInterface for EthernetTxProxy {
627 type TransferResponseFut = fidl::client::QueryResponseFut<
628 EthernetTxTransferResult,
629 fidl::encoding::DefaultFuchsiaResourceDialect,
630 >;
631 fn r#transfer(&self, mut payload: &EthernetTxTransferRequest) -> Self::TransferResponseFut {
632 fn _decode(
633 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
634 ) -> Result<EthernetTxTransferResult, fidl::Error> {
635 let _response = fidl::client::decode_transaction_body::<
636 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
637 fidl::encoding::DefaultFuchsiaResourceDialect,
638 0x616dafedf07d00e7,
639 >(_buf?)?;
640 Ok(_response.map(|x| x))
641 }
642 self.client.send_query_and_decode::<EthernetTxTransferRequest, EthernetTxTransferResult>(
643 payload,
644 0x616dafedf07d00e7,
645 fidl::encoding::DynamicFlags::empty(),
646 _decode,
647 )
648 }
649}
650
651pub struct EthernetTxEventStream {
652 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
653}
654
655impl std::marker::Unpin for EthernetTxEventStream {}
656
657impl futures::stream::FusedStream for EthernetTxEventStream {
658 fn is_terminated(&self) -> bool {
659 self.event_receiver.is_terminated()
660 }
661}
662
663impl futures::Stream for EthernetTxEventStream {
664 type Item = Result<EthernetTxEvent, fidl::Error>;
665
666 fn poll_next(
667 mut self: std::pin::Pin<&mut Self>,
668 cx: &mut std::task::Context<'_>,
669 ) -> std::task::Poll<Option<Self::Item>> {
670 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
671 &mut self.event_receiver,
672 cx
673 )?) {
674 Some(buf) => std::task::Poll::Ready(Some(EthernetTxEvent::decode(buf))),
675 None => std::task::Poll::Ready(None),
676 }
677 }
678}
679
680#[derive(Debug)]
681pub enum EthernetTxEvent {}
682
683impl EthernetTxEvent {
684 fn decode(
686 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
687 ) -> Result<EthernetTxEvent, fidl::Error> {
688 let (bytes, _handles) = buf.split_mut();
689 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
690 debug_assert_eq!(tx_header.tx_id, 0);
691 match tx_header.ordinal {
692 _ => Err(fidl::Error::UnknownOrdinal {
693 ordinal: tx_header.ordinal,
694 protocol_name: <EthernetTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
695 }),
696 }
697 }
698}
699
700pub struct EthernetTxRequestStream {
702 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
703 is_terminated: bool,
704}
705
706impl std::marker::Unpin for EthernetTxRequestStream {}
707
708impl futures::stream::FusedStream for EthernetTxRequestStream {
709 fn is_terminated(&self) -> bool {
710 self.is_terminated
711 }
712}
713
714impl fidl::endpoints::RequestStream for EthernetTxRequestStream {
715 type Protocol = EthernetTxMarker;
716 type ControlHandle = EthernetTxControlHandle;
717
718 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
719 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
720 }
721
722 fn control_handle(&self) -> Self::ControlHandle {
723 EthernetTxControlHandle { inner: self.inner.clone() }
724 }
725
726 fn into_inner(
727 self,
728 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
729 {
730 (self.inner, self.is_terminated)
731 }
732
733 fn from_inner(
734 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
735 is_terminated: bool,
736 ) -> Self {
737 Self { inner, is_terminated }
738 }
739}
740
741impl futures::Stream for EthernetTxRequestStream {
742 type Item = Result<EthernetTxRequest, fidl::Error>;
743
744 fn poll_next(
745 mut self: std::pin::Pin<&mut Self>,
746 cx: &mut std::task::Context<'_>,
747 ) -> std::task::Poll<Option<Self::Item>> {
748 let this = &mut *self;
749 if this.inner.check_shutdown(cx) {
750 this.is_terminated = true;
751 return std::task::Poll::Ready(None);
752 }
753 if this.is_terminated {
754 panic!("polled EthernetTxRequestStream after completion");
755 }
756 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
757 |bytes, handles| {
758 match this.inner.channel().read_etc(cx, bytes, handles) {
759 std::task::Poll::Ready(Ok(())) => {}
760 std::task::Poll::Pending => return std::task::Poll::Pending,
761 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
762 this.is_terminated = true;
763 return std::task::Poll::Ready(None);
764 }
765 std::task::Poll::Ready(Err(e)) => {
766 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
767 e.into(),
768 ))))
769 }
770 }
771
772 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
774
775 std::task::Poll::Ready(Some(match header.ordinal {
776 0x616dafedf07d00e7 => {
777 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
778 let mut req = fidl::new_empty!(
779 EthernetTxTransferRequest,
780 fidl::encoding::DefaultFuchsiaResourceDialect
781 );
782 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<EthernetTxTransferRequest>(&header, _body_bytes, handles, &mut req)?;
783 let control_handle = EthernetTxControlHandle { inner: this.inner.clone() };
784 Ok(EthernetTxRequest::Transfer {
785 payload: req,
786 responder: EthernetTxTransferResponder {
787 control_handle: std::mem::ManuallyDrop::new(control_handle),
788 tx_id: header.tx_id,
789 },
790 })
791 }
792 _ => Err(fidl::Error::UnknownOrdinal {
793 ordinal: header.ordinal,
794 protocol_name:
795 <EthernetTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
796 }),
797 }))
798 },
799 )
800 }
801}
802
803#[derive(Debug)]
823pub enum EthernetTxRequest {
824 Transfer { payload: EthernetTxTransferRequest, responder: EthernetTxTransferResponder },
825}
826
827impl EthernetTxRequest {
828 #[allow(irrefutable_let_patterns)]
829 pub fn into_transfer(self) -> Option<(EthernetTxTransferRequest, EthernetTxTransferResponder)> {
830 if let EthernetTxRequest::Transfer { payload, responder } = self {
831 Some((payload, responder))
832 } else {
833 None
834 }
835 }
836
837 pub fn method_name(&self) -> &'static str {
839 match *self {
840 EthernetTxRequest::Transfer { .. } => "transfer",
841 }
842 }
843}
844
845#[derive(Debug, Clone)]
846pub struct EthernetTxControlHandle {
847 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
848}
849
850impl fidl::endpoints::ControlHandle for EthernetTxControlHandle {
851 fn shutdown(&self) {
852 self.inner.shutdown()
853 }
854 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
855 self.inner.shutdown_with_epitaph(status)
856 }
857
858 fn is_closed(&self) -> bool {
859 self.inner.channel().is_closed()
860 }
861 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
862 self.inner.channel().on_closed()
863 }
864
865 #[cfg(target_os = "fuchsia")]
866 fn signal_peer(
867 &self,
868 clear_mask: zx::Signals,
869 set_mask: zx::Signals,
870 ) -> Result<(), zx_status::Status> {
871 use fidl::Peered;
872 self.inner.channel().signal_peer(clear_mask, set_mask)
873 }
874}
875
876impl EthernetTxControlHandle {}
877
878#[must_use = "FIDL methods require a response to be sent"]
879#[derive(Debug)]
880pub struct EthernetTxTransferResponder {
881 control_handle: std::mem::ManuallyDrop<EthernetTxControlHandle>,
882 tx_id: u32,
883}
884
885impl std::ops::Drop for EthernetTxTransferResponder {
889 fn drop(&mut self) {
890 self.control_handle.shutdown();
891 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
893 }
894}
895
896impl fidl::endpoints::Responder for EthernetTxTransferResponder {
897 type ControlHandle = EthernetTxControlHandle;
898
899 fn control_handle(&self) -> &EthernetTxControlHandle {
900 &self.control_handle
901 }
902
903 fn drop_without_shutdown(mut self) {
904 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
906 std::mem::forget(self);
908 }
909}
910
911impl EthernetTxTransferResponder {
912 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
916 let _result = self.send_raw(result);
917 if _result.is_err() {
918 self.control_handle.shutdown();
919 }
920 self.drop_without_shutdown();
921 _result
922 }
923
924 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
926 let _result = self.send_raw(result);
927 self.drop_without_shutdown();
928 _result
929 }
930
931 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
932 self.control_handle
933 .inner
934 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
935 result,
936 self.tx_id,
937 0x616dafedf07d00e7,
938 fidl::encoding::DynamicFlags::empty(),
939 )
940 }
941}
942
943#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
944pub struct WlanRxMarker;
945
946impl fidl::endpoints::ProtocolMarker for WlanRxMarker {
947 type Proxy = WlanRxProxy;
948 type RequestStream = WlanRxRequestStream;
949 #[cfg(target_os = "fuchsia")]
950 type SynchronousProxy = WlanRxSynchronousProxy;
951
952 const DEBUG_NAME: &'static str = "(anonymous) WlanRx";
953}
954
955pub trait WlanRxProxyInterface: Send + Sync {
956 type TransferResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
957 fn r#transfer(&self, payload: &WlanRxTransferRequest) -> Self::TransferResponseFut;
958}
959#[derive(Debug)]
960#[cfg(target_os = "fuchsia")]
961pub struct WlanRxSynchronousProxy {
962 client: fidl::client::sync::Client,
963}
964
965#[cfg(target_os = "fuchsia")]
966impl fidl::endpoints::SynchronousProxy for WlanRxSynchronousProxy {
967 type Proxy = WlanRxProxy;
968 type Protocol = WlanRxMarker;
969
970 fn from_channel(inner: fidl::Channel) -> Self {
971 Self::new(inner)
972 }
973
974 fn into_channel(self) -> fidl::Channel {
975 self.client.into_channel()
976 }
977
978 fn as_channel(&self) -> &fidl::Channel {
979 self.client.as_channel()
980 }
981}
982
983#[cfg(target_os = "fuchsia")]
984impl WlanRxSynchronousProxy {
985 pub fn new(channel: fidl::Channel) -> Self {
986 let protocol_name = <WlanRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
987 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
988 }
989
990 pub fn into_channel(self) -> fidl::Channel {
991 self.client.into_channel()
992 }
993
994 pub fn wait_for_event(
997 &self,
998 deadline: zx::MonotonicInstant,
999 ) -> Result<WlanRxEvent, fidl::Error> {
1000 WlanRxEvent::decode(self.client.wait_for_event(deadline)?)
1001 }
1002
1003 pub fn r#transfer(
1004 &self,
1005 mut payload: &WlanRxTransferRequest,
1006 ___deadline: zx::MonotonicInstant,
1007 ) -> Result<(), fidl::Error> {
1008 let _response =
1009 self.client.send_query::<WlanRxTransferRequest, fidl::encoding::EmptyPayload>(
1010 payload,
1011 0x2c73b18cbfca6055,
1012 fidl::encoding::DynamicFlags::empty(),
1013 ___deadline,
1014 )?;
1015 Ok(_response)
1016 }
1017}
1018
1019#[cfg(target_os = "fuchsia")]
1020impl From<WlanRxSynchronousProxy> for zx::Handle {
1021 fn from(value: WlanRxSynchronousProxy) -> Self {
1022 value.into_channel().into()
1023 }
1024}
1025
1026#[cfg(target_os = "fuchsia")]
1027impl From<fidl::Channel> for WlanRxSynchronousProxy {
1028 fn from(value: fidl::Channel) -> Self {
1029 Self::new(value)
1030 }
1031}
1032
1033#[derive(Debug, Clone)]
1034pub struct WlanRxProxy {
1035 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
1036}
1037
1038impl fidl::endpoints::Proxy for WlanRxProxy {
1039 type Protocol = WlanRxMarker;
1040
1041 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
1042 Self::new(inner)
1043 }
1044
1045 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
1046 self.client.into_channel().map_err(|client| Self { client })
1047 }
1048
1049 fn as_channel(&self) -> &::fidl::AsyncChannel {
1050 self.client.as_channel()
1051 }
1052}
1053
1054impl WlanRxProxy {
1055 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
1057 let protocol_name = <WlanRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
1058 Self { client: fidl::client::Client::new(channel, protocol_name) }
1059 }
1060
1061 pub fn take_event_stream(&self) -> WlanRxEventStream {
1067 WlanRxEventStream { event_receiver: self.client.take_event_receiver() }
1068 }
1069
1070 pub fn r#transfer(
1071 &self,
1072 mut payload: &WlanRxTransferRequest,
1073 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
1074 WlanRxProxyInterface::r#transfer(self, payload)
1075 }
1076}
1077
1078impl WlanRxProxyInterface for WlanRxProxy {
1079 type TransferResponseFut =
1080 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1081 fn r#transfer(&self, mut payload: &WlanRxTransferRequest) -> Self::TransferResponseFut {
1082 fn _decode(
1083 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1084 ) -> Result<(), fidl::Error> {
1085 let _response = fidl::client::decode_transaction_body::<
1086 fidl::encoding::EmptyPayload,
1087 fidl::encoding::DefaultFuchsiaResourceDialect,
1088 0x2c73b18cbfca6055,
1089 >(_buf?)?;
1090 Ok(_response)
1091 }
1092 self.client.send_query_and_decode::<WlanRxTransferRequest, ()>(
1093 payload,
1094 0x2c73b18cbfca6055,
1095 fidl::encoding::DynamicFlags::empty(),
1096 _decode,
1097 )
1098 }
1099}
1100
1101pub struct WlanRxEventStream {
1102 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
1103}
1104
1105impl std::marker::Unpin for WlanRxEventStream {}
1106
1107impl futures::stream::FusedStream for WlanRxEventStream {
1108 fn is_terminated(&self) -> bool {
1109 self.event_receiver.is_terminated()
1110 }
1111}
1112
1113impl futures::Stream for WlanRxEventStream {
1114 type Item = Result<WlanRxEvent, fidl::Error>;
1115
1116 fn poll_next(
1117 mut self: std::pin::Pin<&mut Self>,
1118 cx: &mut std::task::Context<'_>,
1119 ) -> std::task::Poll<Option<Self::Item>> {
1120 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
1121 &mut self.event_receiver,
1122 cx
1123 )?) {
1124 Some(buf) => std::task::Poll::Ready(Some(WlanRxEvent::decode(buf))),
1125 None => std::task::Poll::Ready(None),
1126 }
1127 }
1128}
1129
1130#[derive(Debug)]
1131pub enum WlanRxEvent {}
1132
1133impl WlanRxEvent {
1134 fn decode(
1136 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
1137 ) -> Result<WlanRxEvent, fidl::Error> {
1138 let (bytes, _handles) = buf.split_mut();
1139 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
1140 debug_assert_eq!(tx_header.tx_id, 0);
1141 match tx_header.ordinal {
1142 _ => Err(fidl::Error::UnknownOrdinal {
1143 ordinal: tx_header.ordinal,
1144 protocol_name: <WlanRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
1145 }),
1146 }
1147 }
1148}
1149
1150pub struct WlanRxRequestStream {
1152 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
1153 is_terminated: bool,
1154}
1155
1156impl std::marker::Unpin for WlanRxRequestStream {}
1157
1158impl futures::stream::FusedStream for WlanRxRequestStream {
1159 fn is_terminated(&self) -> bool {
1160 self.is_terminated
1161 }
1162}
1163
1164impl fidl::endpoints::RequestStream for WlanRxRequestStream {
1165 type Protocol = WlanRxMarker;
1166 type ControlHandle = WlanRxControlHandle;
1167
1168 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
1169 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
1170 }
1171
1172 fn control_handle(&self) -> Self::ControlHandle {
1173 WlanRxControlHandle { inner: self.inner.clone() }
1174 }
1175
1176 fn into_inner(
1177 self,
1178 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
1179 {
1180 (self.inner, self.is_terminated)
1181 }
1182
1183 fn from_inner(
1184 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
1185 is_terminated: bool,
1186 ) -> Self {
1187 Self { inner, is_terminated }
1188 }
1189}
1190
1191impl futures::Stream for WlanRxRequestStream {
1192 type Item = Result<WlanRxRequest, fidl::Error>;
1193
1194 fn poll_next(
1195 mut self: std::pin::Pin<&mut Self>,
1196 cx: &mut std::task::Context<'_>,
1197 ) -> std::task::Poll<Option<Self::Item>> {
1198 let this = &mut *self;
1199 if this.inner.check_shutdown(cx) {
1200 this.is_terminated = true;
1201 return std::task::Poll::Ready(None);
1202 }
1203 if this.is_terminated {
1204 panic!("polled WlanRxRequestStream after completion");
1205 }
1206 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
1207 |bytes, handles| {
1208 match this.inner.channel().read_etc(cx, bytes, handles) {
1209 std::task::Poll::Ready(Ok(())) => {}
1210 std::task::Poll::Pending => return std::task::Poll::Pending,
1211 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
1212 this.is_terminated = true;
1213 return std::task::Poll::Ready(None);
1214 }
1215 std::task::Poll::Ready(Err(e)) => {
1216 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
1217 e.into(),
1218 ))))
1219 }
1220 }
1221
1222 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
1224
1225 std::task::Poll::Ready(Some(match header.ordinal {
1226 0x2c73b18cbfca6055 => {
1227 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1228 let mut req = fidl::new_empty!(
1229 WlanRxTransferRequest,
1230 fidl::encoding::DefaultFuchsiaResourceDialect
1231 );
1232 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanRxTransferRequest>(&header, _body_bytes, handles, &mut req)?;
1233 let control_handle = WlanRxControlHandle { inner: this.inner.clone() };
1234 Ok(WlanRxRequest::Transfer {
1235 payload: req,
1236 responder: WlanRxTransferResponder {
1237 control_handle: std::mem::ManuallyDrop::new(control_handle),
1238 tx_id: header.tx_id,
1239 },
1240 })
1241 }
1242 _ => Err(fidl::Error::UnknownOrdinal {
1243 ordinal: header.ordinal,
1244 protocol_name:
1245 <WlanRxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
1246 }),
1247 }))
1248 },
1249 )
1250 }
1251}
1252
1253#[derive(Debug)]
1262pub enum WlanRxRequest {
1263 Transfer { payload: WlanRxTransferRequest, responder: WlanRxTransferResponder },
1264}
1265
1266impl WlanRxRequest {
1267 #[allow(irrefutable_let_patterns)]
1268 pub fn into_transfer(self) -> Option<(WlanRxTransferRequest, WlanRxTransferResponder)> {
1269 if let WlanRxRequest::Transfer { payload, responder } = self {
1270 Some((payload, responder))
1271 } else {
1272 None
1273 }
1274 }
1275
1276 pub fn method_name(&self) -> &'static str {
1278 match *self {
1279 WlanRxRequest::Transfer { .. } => "transfer",
1280 }
1281 }
1282}
1283
1284#[derive(Debug, Clone)]
1285pub struct WlanRxControlHandle {
1286 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
1287}
1288
1289impl fidl::endpoints::ControlHandle for WlanRxControlHandle {
1290 fn shutdown(&self) {
1291 self.inner.shutdown()
1292 }
1293 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
1294 self.inner.shutdown_with_epitaph(status)
1295 }
1296
1297 fn is_closed(&self) -> bool {
1298 self.inner.channel().is_closed()
1299 }
1300 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
1301 self.inner.channel().on_closed()
1302 }
1303
1304 #[cfg(target_os = "fuchsia")]
1305 fn signal_peer(
1306 &self,
1307 clear_mask: zx::Signals,
1308 set_mask: zx::Signals,
1309 ) -> Result<(), zx_status::Status> {
1310 use fidl::Peered;
1311 self.inner.channel().signal_peer(clear_mask, set_mask)
1312 }
1313}
1314
1315impl WlanRxControlHandle {}
1316
1317#[must_use = "FIDL methods require a response to be sent"]
1318#[derive(Debug)]
1319pub struct WlanRxTransferResponder {
1320 control_handle: std::mem::ManuallyDrop<WlanRxControlHandle>,
1321 tx_id: u32,
1322}
1323
1324impl std::ops::Drop for WlanRxTransferResponder {
1328 fn drop(&mut self) {
1329 self.control_handle.shutdown();
1330 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
1332 }
1333}
1334
1335impl fidl::endpoints::Responder for WlanRxTransferResponder {
1336 type ControlHandle = WlanRxControlHandle;
1337
1338 fn control_handle(&self) -> &WlanRxControlHandle {
1339 &self.control_handle
1340 }
1341
1342 fn drop_without_shutdown(mut self) {
1343 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
1345 std::mem::forget(self);
1347 }
1348}
1349
1350impl WlanRxTransferResponder {
1351 pub fn send(self) -> Result<(), fidl::Error> {
1355 let _result = self.send_raw();
1356 if _result.is_err() {
1357 self.control_handle.shutdown();
1358 }
1359 self.drop_without_shutdown();
1360 _result
1361 }
1362
1363 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
1365 let _result = self.send_raw();
1366 self.drop_without_shutdown();
1367 _result
1368 }
1369
1370 fn send_raw(&self) -> Result<(), fidl::Error> {
1371 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
1372 (),
1373 self.tx_id,
1374 0x2c73b18cbfca6055,
1375 fidl::encoding::DynamicFlags::empty(),
1376 )
1377 }
1378}
1379
1380#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1381pub struct WlanSoftmacBaseMarker;
1382
1383impl fidl::endpoints::ProtocolMarker for WlanSoftmacBaseMarker {
1384 type Proxy = WlanSoftmacBaseProxy;
1385 type RequestStream = WlanSoftmacBaseRequestStream;
1386 #[cfg(target_os = "fuchsia")]
1387 type SynchronousProxy = WlanSoftmacBaseSynchronousProxy;
1388
1389 const DEBUG_NAME: &'static str = "(anonymous) WlanSoftmacBase";
1390}
1391pub type WlanSoftmacBaseQueryResult = Result<WlanSoftmacQueryResponse, i32>;
1392pub type WlanSoftmacBaseQueryDiscoverySupportResult = Result<DiscoverySupport, i32>;
1393pub type WlanSoftmacBaseQueryMacSublayerSupportResult =
1394 Result<fidl_fuchsia_wlan_common::MacSublayerSupport, i32>;
1395pub type WlanSoftmacBaseQuerySecuritySupportResult =
1396 Result<fidl_fuchsia_wlan_common::SecuritySupport, i32>;
1397pub type WlanSoftmacBaseQuerySpectrumManagementSupportResult =
1398 Result<fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>;
1399pub type WlanSoftmacBaseSetChannelResult = Result<(), i32>;
1400pub type WlanSoftmacBaseJoinBssResult = Result<(), i32>;
1401pub type WlanSoftmacBaseEnableBeaconingResult = Result<(), i32>;
1402pub type WlanSoftmacBaseDisableBeaconingResult = Result<(), i32>;
1403pub type WlanSoftmacBaseInstallKeyResult = Result<(), i32>;
1404pub type WlanSoftmacBaseNotifyAssociationCompleteResult = Result<(), i32>;
1405pub type WlanSoftmacBaseClearAssociationResult = Result<(), i32>;
1406pub type WlanSoftmacBaseStartPassiveScanResult =
1407 Result<WlanSoftmacBaseStartPassiveScanResponse, i32>;
1408pub type WlanSoftmacBaseStartActiveScanResult = Result<WlanSoftmacBaseStartActiveScanResponse, i32>;
1409pub type WlanSoftmacBaseCancelScanResult = Result<(), i32>;
1410pub type WlanSoftmacBaseUpdateWmmParametersResult = Result<(), i32>;
1411
1412pub trait WlanSoftmacBaseProxyInterface: Send + Sync {
1413 type QueryResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseQueryResult, fidl::Error>>
1414 + Send;
1415 fn r#query(&self) -> Self::QueryResponseFut;
1416 type QueryDiscoverySupportResponseFut: std::future::Future<
1417 Output = Result<WlanSoftmacBaseQueryDiscoverySupportResult, fidl::Error>,
1418 > + Send;
1419 fn r#query_discovery_support(&self) -> Self::QueryDiscoverySupportResponseFut;
1420 type QueryMacSublayerSupportResponseFut: std::future::Future<
1421 Output = Result<WlanSoftmacBaseQueryMacSublayerSupportResult, fidl::Error>,
1422 > + Send;
1423 fn r#query_mac_sublayer_support(&self) -> Self::QueryMacSublayerSupportResponseFut;
1424 type QuerySecuritySupportResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseQuerySecuritySupportResult, fidl::Error>>
1425 + Send;
1426 fn r#query_security_support(&self) -> Self::QuerySecuritySupportResponseFut;
1427 type QuerySpectrumManagementSupportResponseFut: std::future::Future<
1428 Output = Result<WlanSoftmacBaseQuerySpectrumManagementSupportResult, fidl::Error>,
1429 > + Send;
1430 fn r#query_spectrum_management_support(
1431 &self,
1432 ) -> Self::QuerySpectrumManagementSupportResponseFut;
1433 type SetChannelResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseSetChannelResult, fidl::Error>>
1434 + Send;
1435 fn r#set_channel(
1436 &self,
1437 payload: &WlanSoftmacBaseSetChannelRequest,
1438 ) -> Self::SetChannelResponseFut;
1439 type JoinBssResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseJoinBssResult, fidl::Error>>
1440 + Send;
1441 fn r#join_bss(
1442 &self,
1443 join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
1444 ) -> Self::JoinBssResponseFut;
1445 type EnableBeaconingResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseEnableBeaconingResult, fidl::Error>>
1446 + Send;
1447 fn r#enable_beaconing(
1448 &self,
1449 payload: &WlanSoftmacBaseEnableBeaconingRequest,
1450 ) -> Self::EnableBeaconingResponseFut;
1451 type DisableBeaconingResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseDisableBeaconingResult, fidl::Error>>
1452 + Send;
1453 fn r#disable_beaconing(&self) -> Self::DisableBeaconingResponseFut;
1454 type InstallKeyResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseInstallKeyResult, fidl::Error>>
1455 + Send;
1456 fn r#install_key(&self, payload: &WlanKeyConfiguration) -> Self::InstallKeyResponseFut;
1457 type NotifyAssociationCompleteResponseFut: std::future::Future<
1458 Output = Result<WlanSoftmacBaseNotifyAssociationCompleteResult, fidl::Error>,
1459 > + Send;
1460 fn r#notify_association_complete(
1461 &self,
1462 assoc_cfg: &WlanAssociationConfig,
1463 ) -> Self::NotifyAssociationCompleteResponseFut;
1464 type ClearAssociationResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseClearAssociationResult, fidl::Error>>
1465 + Send;
1466 fn r#clear_association(
1467 &self,
1468 payload: &WlanSoftmacBaseClearAssociationRequest,
1469 ) -> Self::ClearAssociationResponseFut;
1470 type StartPassiveScanResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseStartPassiveScanResult, fidl::Error>>
1471 + Send;
1472 fn r#start_passive_scan(
1473 &self,
1474 payload: &WlanSoftmacBaseStartPassiveScanRequest,
1475 ) -> Self::StartPassiveScanResponseFut;
1476 type StartActiveScanResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseStartActiveScanResult, fidl::Error>>
1477 + Send;
1478 fn r#start_active_scan(
1479 &self,
1480 payload: &WlanSoftmacStartActiveScanRequest,
1481 ) -> Self::StartActiveScanResponseFut;
1482 type CancelScanResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseCancelScanResult, fidl::Error>>
1483 + Send;
1484 fn r#cancel_scan(
1485 &self,
1486 payload: &WlanSoftmacBaseCancelScanRequest,
1487 ) -> Self::CancelScanResponseFut;
1488 type UpdateWmmParametersResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseUpdateWmmParametersResult, fidl::Error>>
1489 + Send;
1490 fn r#update_wmm_parameters(
1491 &self,
1492 payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
1493 ) -> Self::UpdateWmmParametersResponseFut;
1494}
1495#[derive(Debug)]
1496#[cfg(target_os = "fuchsia")]
1497pub struct WlanSoftmacBaseSynchronousProxy {
1498 client: fidl::client::sync::Client,
1499}
1500
1501#[cfg(target_os = "fuchsia")]
1502impl fidl::endpoints::SynchronousProxy for WlanSoftmacBaseSynchronousProxy {
1503 type Proxy = WlanSoftmacBaseProxy;
1504 type Protocol = WlanSoftmacBaseMarker;
1505
1506 fn from_channel(inner: fidl::Channel) -> Self {
1507 Self::new(inner)
1508 }
1509
1510 fn into_channel(self) -> fidl::Channel {
1511 self.client.into_channel()
1512 }
1513
1514 fn as_channel(&self) -> &fidl::Channel {
1515 self.client.as_channel()
1516 }
1517}
1518
1519#[cfg(target_os = "fuchsia")]
1520impl WlanSoftmacBaseSynchronousProxy {
1521 pub fn new(channel: fidl::Channel) -> Self {
1522 let protocol_name = <WlanSoftmacBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
1523 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
1524 }
1525
1526 pub fn into_channel(self) -> fidl::Channel {
1527 self.client.into_channel()
1528 }
1529
1530 pub fn wait_for_event(
1533 &self,
1534 deadline: zx::MonotonicInstant,
1535 ) -> Result<WlanSoftmacBaseEvent, fidl::Error> {
1536 WlanSoftmacBaseEvent::decode(self.client.wait_for_event(deadline)?)
1537 }
1538
1539 pub fn r#query(
1547 &self,
1548 ___deadline: zx::MonotonicInstant,
1549 ) -> Result<WlanSoftmacBaseQueryResult, fidl::Error> {
1550 let _response = self.client.send_query::<
1551 fidl::encoding::EmptyPayload,
1552 fidl::encoding::ResultType<WlanSoftmacQueryResponse, i32>,
1553 >(
1554 (),
1555 0x18231a638e508f9d,
1556 fidl::encoding::DynamicFlags::empty(),
1557 ___deadline,
1558 )?;
1559 Ok(_response.map(|x| x))
1560 }
1561
1562 pub fn r#query_discovery_support(
1566 &self,
1567 ___deadline: zx::MonotonicInstant,
1568 ) -> Result<WlanSoftmacBaseQueryDiscoverySupportResult, fidl::Error> {
1569 let _response =
1570 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1571 WlanSoftmacBaseQueryDiscoverySupportResponse,
1572 i32,
1573 >>(
1574 (),
1575 0x16797affc0cb58ae,
1576 fidl::encoding::DynamicFlags::empty(),
1577 ___deadline,
1578 )?;
1579 Ok(_response.map(|x| x.resp))
1580 }
1581
1582 pub fn r#query_mac_sublayer_support(
1590 &self,
1591 ___deadline: zx::MonotonicInstant,
1592 ) -> Result<WlanSoftmacBaseQueryMacSublayerSupportResult, fidl::Error> {
1593 let _response =
1594 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1595 WlanSoftmacBaseQueryMacSublayerSupportResponse,
1596 i32,
1597 >>(
1598 (),
1599 0x7302c3f8c131f075,
1600 fidl::encoding::DynamicFlags::empty(),
1601 ___deadline,
1602 )?;
1603 Ok(_response.map(|x| x.resp))
1604 }
1605
1606 pub fn r#query_security_support(
1609 &self,
1610 ___deadline: zx::MonotonicInstant,
1611 ) -> Result<WlanSoftmacBaseQuerySecuritySupportResult, fidl::Error> {
1612 let _response =
1613 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1614 WlanSoftmacBaseQuerySecuritySupportResponse,
1615 i32,
1616 >>(
1617 (),
1618 0x3691bb75abf6354,
1619 fidl::encoding::DynamicFlags::empty(),
1620 ___deadline,
1621 )?;
1622 Ok(_response.map(|x| x.resp))
1623 }
1624
1625 pub fn r#query_spectrum_management_support(
1629 &self,
1630 ___deadline: zx::MonotonicInstant,
1631 ) -> Result<WlanSoftmacBaseQuerySpectrumManagementSupportResult, fidl::Error> {
1632 let _response = self
1633 .client
1634 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1635 WlanSoftmacBaseQuerySpectrumManagementSupportResponse,
1636 i32,
1637 >>(
1638 (), 0x347d78dc1d4d27bf, fidl::encoding::DynamicFlags::empty(), ___deadline
1639 )?;
1640 Ok(_response.map(|x| x.resp))
1641 }
1642
1643 pub fn r#set_channel(
1651 &self,
1652 mut payload: &WlanSoftmacBaseSetChannelRequest,
1653 ___deadline: zx::MonotonicInstant,
1654 ) -> Result<WlanSoftmacBaseSetChannelResult, fidl::Error> {
1655 let _response = self.client.send_query::<
1656 WlanSoftmacBaseSetChannelRequest,
1657 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1658 >(
1659 payload,
1660 0x12836b533cd63ece,
1661 fidl::encoding::DynamicFlags::empty(),
1662 ___deadline,
1663 )?;
1664 Ok(_response.map(|x| x))
1665 }
1666
1667 pub fn r#join_bss(
1677 &self,
1678 mut join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
1679 ___deadline: zx::MonotonicInstant,
1680 ) -> Result<WlanSoftmacBaseJoinBssResult, fidl::Error> {
1681 let _response = self.client.send_query::<
1682 WlanSoftmacBaseJoinBssRequest,
1683 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1684 >(
1685 (join_request,),
1686 0x1336fb5455b77a6e,
1687 fidl::encoding::DynamicFlags::empty(),
1688 ___deadline,
1689 )?;
1690 Ok(_response.map(|x| x))
1691 }
1692
1693 pub fn r#enable_beaconing(
1708 &self,
1709 mut payload: &WlanSoftmacBaseEnableBeaconingRequest,
1710 ___deadline: zx::MonotonicInstant,
1711 ) -> Result<WlanSoftmacBaseEnableBeaconingResult, fidl::Error> {
1712 let _response = self.client.send_query::<
1713 WlanSoftmacBaseEnableBeaconingRequest,
1714 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1715 >(
1716 payload,
1717 0x6c35807632c64576,
1718 fidl::encoding::DynamicFlags::empty(),
1719 ___deadline,
1720 )?;
1721 Ok(_response.map(|x| x))
1722 }
1723
1724 pub fn r#disable_beaconing(
1726 &self,
1727 ___deadline: zx::MonotonicInstant,
1728 ) -> Result<WlanSoftmacBaseDisableBeaconingResult, fidl::Error> {
1729 let _response = self.client.send_query::<
1730 fidl::encoding::EmptyPayload,
1731 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1732 >(
1733 (),
1734 0x3303b30f99dbb406,
1735 fidl::encoding::DynamicFlags::empty(),
1736 ___deadline,
1737 )?;
1738 Ok(_response.map(|x| x))
1739 }
1740
1741 pub fn r#install_key(
1748 &self,
1749 mut payload: &WlanKeyConfiguration,
1750 ___deadline: zx::MonotonicInstant,
1751 ) -> Result<WlanSoftmacBaseInstallKeyResult, fidl::Error> {
1752 let _response = self.client.send_query::<
1753 WlanKeyConfiguration,
1754 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1755 >(
1756 payload,
1757 0x7decf9b4200b9131,
1758 fidl::encoding::DynamicFlags::empty(),
1759 ___deadline,
1760 )?;
1761 Ok(_response.map(|x| x))
1762 }
1763
1764 pub fn r#notify_association_complete(
1774 &self,
1775 mut assoc_cfg: &WlanAssociationConfig,
1776 ___deadline: zx::MonotonicInstant,
1777 ) -> Result<WlanSoftmacBaseNotifyAssociationCompleteResult, fidl::Error> {
1778 let _response = self.client.send_query::<
1779 WlanSoftmacBaseNotifyAssociationCompleteRequest,
1780 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1781 >(
1782 (assoc_cfg,),
1783 0x436ffe3ba461d6cd,
1784 fidl::encoding::DynamicFlags::empty(),
1785 ___deadline,
1786 )?;
1787 Ok(_response.map(|x| x))
1788 }
1789
1790 pub fn r#clear_association(
1792 &self,
1793 mut payload: &WlanSoftmacBaseClearAssociationRequest,
1794 ___deadline: zx::MonotonicInstant,
1795 ) -> Result<WlanSoftmacBaseClearAssociationResult, fidl::Error> {
1796 let _response = self.client.send_query::<
1797 WlanSoftmacBaseClearAssociationRequest,
1798 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1799 >(
1800 payload,
1801 0x581d76c39190a7dd,
1802 fidl::encoding::DynamicFlags::empty(),
1803 ___deadline,
1804 )?;
1805 Ok(_response.map(|x| x))
1806 }
1807
1808 pub fn r#start_passive_scan(
1822 &self,
1823 mut payload: &WlanSoftmacBaseStartPassiveScanRequest,
1824 ___deadline: zx::MonotonicInstant,
1825 ) -> Result<WlanSoftmacBaseStartPassiveScanResult, fidl::Error> {
1826 let _response = self.client.send_query::<
1827 WlanSoftmacBaseStartPassiveScanRequest,
1828 fidl::encoding::ResultType<WlanSoftmacBaseStartPassiveScanResponse, i32>,
1829 >(
1830 payload,
1831 0x5662f989cb4083bb,
1832 fidl::encoding::DynamicFlags::empty(),
1833 ___deadline,
1834 )?;
1835 Ok(_response.map(|x| x))
1836 }
1837
1838 pub fn r#start_active_scan(
1852 &self,
1853 mut payload: &WlanSoftmacStartActiveScanRequest,
1854 ___deadline: zx::MonotonicInstant,
1855 ) -> Result<WlanSoftmacBaseStartActiveScanResult, fidl::Error> {
1856 let _response = self.client.send_query::<
1857 WlanSoftmacStartActiveScanRequest,
1858 fidl::encoding::ResultType<WlanSoftmacBaseStartActiveScanResponse, i32>,
1859 >(
1860 payload,
1861 0x4896eafa9937751e,
1862 fidl::encoding::DynamicFlags::empty(),
1863 ___deadline,
1864 )?;
1865 Ok(_response.map(|x| x))
1866 }
1867
1868 pub fn r#cancel_scan(
1882 &self,
1883 mut payload: &WlanSoftmacBaseCancelScanRequest,
1884 ___deadline: zx::MonotonicInstant,
1885 ) -> Result<WlanSoftmacBaseCancelScanResult, fidl::Error> {
1886 let _response = self.client.send_query::<
1887 WlanSoftmacBaseCancelScanRequest,
1888 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1889 >(
1890 payload,
1891 0xf7d859369764556,
1892 fidl::encoding::DynamicFlags::empty(),
1893 ___deadline,
1894 )?;
1895 Ok(_response.map(|x| x))
1896 }
1897
1898 pub fn r#update_wmm_parameters(
1901 &self,
1902 mut payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
1903 ___deadline: zx::MonotonicInstant,
1904 ) -> Result<WlanSoftmacBaseUpdateWmmParametersResult, fidl::Error> {
1905 let _response = self.client.send_query::<
1906 WlanSoftmacBaseUpdateWmmParametersRequest,
1907 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1908 >(
1909 payload,
1910 0x68522c7122d5f78c,
1911 fidl::encoding::DynamicFlags::empty(),
1912 ___deadline,
1913 )?;
1914 Ok(_response.map(|x| x))
1915 }
1916}
1917
1918#[cfg(target_os = "fuchsia")]
1919impl From<WlanSoftmacBaseSynchronousProxy> for zx::Handle {
1920 fn from(value: WlanSoftmacBaseSynchronousProxy) -> Self {
1921 value.into_channel().into()
1922 }
1923}
1924
1925#[cfg(target_os = "fuchsia")]
1926impl From<fidl::Channel> for WlanSoftmacBaseSynchronousProxy {
1927 fn from(value: fidl::Channel) -> Self {
1928 Self::new(value)
1929 }
1930}
1931
1932#[derive(Debug, Clone)]
1933pub struct WlanSoftmacBaseProxy {
1934 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
1935}
1936
1937impl fidl::endpoints::Proxy for WlanSoftmacBaseProxy {
1938 type Protocol = WlanSoftmacBaseMarker;
1939
1940 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
1941 Self::new(inner)
1942 }
1943
1944 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
1945 self.client.into_channel().map_err(|client| Self { client })
1946 }
1947
1948 fn as_channel(&self) -> &::fidl::AsyncChannel {
1949 self.client.as_channel()
1950 }
1951}
1952
1953impl WlanSoftmacBaseProxy {
1954 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
1956 let protocol_name = <WlanSoftmacBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
1957 Self { client: fidl::client::Client::new(channel, protocol_name) }
1958 }
1959
1960 pub fn take_event_stream(&self) -> WlanSoftmacBaseEventStream {
1966 WlanSoftmacBaseEventStream { event_receiver: self.client.take_event_receiver() }
1967 }
1968
1969 pub fn r#query(
1977 &self,
1978 ) -> fidl::client::QueryResponseFut<
1979 WlanSoftmacBaseQueryResult,
1980 fidl::encoding::DefaultFuchsiaResourceDialect,
1981 > {
1982 WlanSoftmacBaseProxyInterface::r#query(self)
1983 }
1984
1985 pub fn r#query_discovery_support(
1989 &self,
1990 ) -> fidl::client::QueryResponseFut<
1991 WlanSoftmacBaseQueryDiscoverySupportResult,
1992 fidl::encoding::DefaultFuchsiaResourceDialect,
1993 > {
1994 WlanSoftmacBaseProxyInterface::r#query_discovery_support(self)
1995 }
1996
1997 pub fn r#query_mac_sublayer_support(
2005 &self,
2006 ) -> fidl::client::QueryResponseFut<
2007 WlanSoftmacBaseQueryMacSublayerSupportResult,
2008 fidl::encoding::DefaultFuchsiaResourceDialect,
2009 > {
2010 WlanSoftmacBaseProxyInterface::r#query_mac_sublayer_support(self)
2011 }
2012
2013 pub fn r#query_security_support(
2016 &self,
2017 ) -> fidl::client::QueryResponseFut<
2018 WlanSoftmacBaseQuerySecuritySupportResult,
2019 fidl::encoding::DefaultFuchsiaResourceDialect,
2020 > {
2021 WlanSoftmacBaseProxyInterface::r#query_security_support(self)
2022 }
2023
2024 pub fn r#query_spectrum_management_support(
2028 &self,
2029 ) -> fidl::client::QueryResponseFut<
2030 WlanSoftmacBaseQuerySpectrumManagementSupportResult,
2031 fidl::encoding::DefaultFuchsiaResourceDialect,
2032 > {
2033 WlanSoftmacBaseProxyInterface::r#query_spectrum_management_support(self)
2034 }
2035
2036 pub fn r#set_channel(
2044 &self,
2045 mut payload: &WlanSoftmacBaseSetChannelRequest,
2046 ) -> fidl::client::QueryResponseFut<
2047 WlanSoftmacBaseSetChannelResult,
2048 fidl::encoding::DefaultFuchsiaResourceDialect,
2049 > {
2050 WlanSoftmacBaseProxyInterface::r#set_channel(self, payload)
2051 }
2052
2053 pub fn r#join_bss(
2063 &self,
2064 mut join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
2065 ) -> fidl::client::QueryResponseFut<
2066 WlanSoftmacBaseJoinBssResult,
2067 fidl::encoding::DefaultFuchsiaResourceDialect,
2068 > {
2069 WlanSoftmacBaseProxyInterface::r#join_bss(self, join_request)
2070 }
2071
2072 pub fn r#enable_beaconing(
2087 &self,
2088 mut payload: &WlanSoftmacBaseEnableBeaconingRequest,
2089 ) -> fidl::client::QueryResponseFut<
2090 WlanSoftmacBaseEnableBeaconingResult,
2091 fidl::encoding::DefaultFuchsiaResourceDialect,
2092 > {
2093 WlanSoftmacBaseProxyInterface::r#enable_beaconing(self, payload)
2094 }
2095
2096 pub fn r#disable_beaconing(
2098 &self,
2099 ) -> fidl::client::QueryResponseFut<
2100 WlanSoftmacBaseDisableBeaconingResult,
2101 fidl::encoding::DefaultFuchsiaResourceDialect,
2102 > {
2103 WlanSoftmacBaseProxyInterface::r#disable_beaconing(self)
2104 }
2105
2106 pub fn r#install_key(
2113 &self,
2114 mut payload: &WlanKeyConfiguration,
2115 ) -> fidl::client::QueryResponseFut<
2116 WlanSoftmacBaseInstallKeyResult,
2117 fidl::encoding::DefaultFuchsiaResourceDialect,
2118 > {
2119 WlanSoftmacBaseProxyInterface::r#install_key(self, payload)
2120 }
2121
2122 pub fn r#notify_association_complete(
2132 &self,
2133 mut assoc_cfg: &WlanAssociationConfig,
2134 ) -> fidl::client::QueryResponseFut<
2135 WlanSoftmacBaseNotifyAssociationCompleteResult,
2136 fidl::encoding::DefaultFuchsiaResourceDialect,
2137 > {
2138 WlanSoftmacBaseProxyInterface::r#notify_association_complete(self, assoc_cfg)
2139 }
2140
2141 pub fn r#clear_association(
2143 &self,
2144 mut payload: &WlanSoftmacBaseClearAssociationRequest,
2145 ) -> fidl::client::QueryResponseFut<
2146 WlanSoftmacBaseClearAssociationResult,
2147 fidl::encoding::DefaultFuchsiaResourceDialect,
2148 > {
2149 WlanSoftmacBaseProxyInterface::r#clear_association(self, payload)
2150 }
2151
2152 pub fn r#start_passive_scan(
2166 &self,
2167 mut payload: &WlanSoftmacBaseStartPassiveScanRequest,
2168 ) -> fidl::client::QueryResponseFut<
2169 WlanSoftmacBaseStartPassiveScanResult,
2170 fidl::encoding::DefaultFuchsiaResourceDialect,
2171 > {
2172 WlanSoftmacBaseProxyInterface::r#start_passive_scan(self, payload)
2173 }
2174
2175 pub fn r#start_active_scan(
2189 &self,
2190 mut payload: &WlanSoftmacStartActiveScanRequest,
2191 ) -> fidl::client::QueryResponseFut<
2192 WlanSoftmacBaseStartActiveScanResult,
2193 fidl::encoding::DefaultFuchsiaResourceDialect,
2194 > {
2195 WlanSoftmacBaseProxyInterface::r#start_active_scan(self, payload)
2196 }
2197
2198 pub fn r#cancel_scan(
2212 &self,
2213 mut payload: &WlanSoftmacBaseCancelScanRequest,
2214 ) -> fidl::client::QueryResponseFut<
2215 WlanSoftmacBaseCancelScanResult,
2216 fidl::encoding::DefaultFuchsiaResourceDialect,
2217 > {
2218 WlanSoftmacBaseProxyInterface::r#cancel_scan(self, payload)
2219 }
2220
2221 pub fn r#update_wmm_parameters(
2224 &self,
2225 mut payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
2226 ) -> fidl::client::QueryResponseFut<
2227 WlanSoftmacBaseUpdateWmmParametersResult,
2228 fidl::encoding::DefaultFuchsiaResourceDialect,
2229 > {
2230 WlanSoftmacBaseProxyInterface::r#update_wmm_parameters(self, payload)
2231 }
2232}
2233
2234impl WlanSoftmacBaseProxyInterface for WlanSoftmacBaseProxy {
2235 type QueryResponseFut = fidl::client::QueryResponseFut<
2236 WlanSoftmacBaseQueryResult,
2237 fidl::encoding::DefaultFuchsiaResourceDialect,
2238 >;
2239 fn r#query(&self) -> Self::QueryResponseFut {
2240 fn _decode(
2241 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2242 ) -> Result<WlanSoftmacBaseQueryResult, fidl::Error> {
2243 let _response = fidl::client::decode_transaction_body::<
2244 fidl::encoding::ResultType<WlanSoftmacQueryResponse, i32>,
2245 fidl::encoding::DefaultFuchsiaResourceDialect,
2246 0x18231a638e508f9d,
2247 >(_buf?)?;
2248 Ok(_response.map(|x| x))
2249 }
2250 self.client
2251 .send_query_and_decode::<fidl::encoding::EmptyPayload, WlanSoftmacBaseQueryResult>(
2252 (),
2253 0x18231a638e508f9d,
2254 fidl::encoding::DynamicFlags::empty(),
2255 _decode,
2256 )
2257 }
2258
2259 type QueryDiscoverySupportResponseFut = fidl::client::QueryResponseFut<
2260 WlanSoftmacBaseQueryDiscoverySupportResult,
2261 fidl::encoding::DefaultFuchsiaResourceDialect,
2262 >;
2263 fn r#query_discovery_support(&self) -> Self::QueryDiscoverySupportResponseFut {
2264 fn _decode(
2265 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2266 ) -> Result<WlanSoftmacBaseQueryDiscoverySupportResult, fidl::Error> {
2267 let _response = fidl::client::decode_transaction_body::<
2268 fidl::encoding::ResultType<WlanSoftmacBaseQueryDiscoverySupportResponse, i32>,
2269 fidl::encoding::DefaultFuchsiaResourceDialect,
2270 0x16797affc0cb58ae,
2271 >(_buf?)?;
2272 Ok(_response.map(|x| x.resp))
2273 }
2274 self.client.send_query_and_decode::<
2275 fidl::encoding::EmptyPayload,
2276 WlanSoftmacBaseQueryDiscoverySupportResult,
2277 >(
2278 (),
2279 0x16797affc0cb58ae,
2280 fidl::encoding::DynamicFlags::empty(),
2281 _decode,
2282 )
2283 }
2284
2285 type QueryMacSublayerSupportResponseFut = fidl::client::QueryResponseFut<
2286 WlanSoftmacBaseQueryMacSublayerSupportResult,
2287 fidl::encoding::DefaultFuchsiaResourceDialect,
2288 >;
2289 fn r#query_mac_sublayer_support(&self) -> Self::QueryMacSublayerSupportResponseFut {
2290 fn _decode(
2291 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2292 ) -> Result<WlanSoftmacBaseQueryMacSublayerSupportResult, fidl::Error> {
2293 let _response = fidl::client::decode_transaction_body::<
2294 fidl::encoding::ResultType<WlanSoftmacBaseQueryMacSublayerSupportResponse, i32>,
2295 fidl::encoding::DefaultFuchsiaResourceDialect,
2296 0x7302c3f8c131f075,
2297 >(_buf?)?;
2298 Ok(_response.map(|x| x.resp))
2299 }
2300 self.client.send_query_and_decode::<
2301 fidl::encoding::EmptyPayload,
2302 WlanSoftmacBaseQueryMacSublayerSupportResult,
2303 >(
2304 (),
2305 0x7302c3f8c131f075,
2306 fidl::encoding::DynamicFlags::empty(),
2307 _decode,
2308 )
2309 }
2310
2311 type QuerySecuritySupportResponseFut = fidl::client::QueryResponseFut<
2312 WlanSoftmacBaseQuerySecuritySupportResult,
2313 fidl::encoding::DefaultFuchsiaResourceDialect,
2314 >;
2315 fn r#query_security_support(&self) -> Self::QuerySecuritySupportResponseFut {
2316 fn _decode(
2317 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2318 ) -> Result<WlanSoftmacBaseQuerySecuritySupportResult, fidl::Error> {
2319 let _response = fidl::client::decode_transaction_body::<
2320 fidl::encoding::ResultType<WlanSoftmacBaseQuerySecuritySupportResponse, i32>,
2321 fidl::encoding::DefaultFuchsiaResourceDialect,
2322 0x3691bb75abf6354,
2323 >(_buf?)?;
2324 Ok(_response.map(|x| x.resp))
2325 }
2326 self.client.send_query_and_decode::<
2327 fidl::encoding::EmptyPayload,
2328 WlanSoftmacBaseQuerySecuritySupportResult,
2329 >(
2330 (),
2331 0x3691bb75abf6354,
2332 fidl::encoding::DynamicFlags::empty(),
2333 _decode,
2334 )
2335 }
2336
2337 type QuerySpectrumManagementSupportResponseFut = fidl::client::QueryResponseFut<
2338 WlanSoftmacBaseQuerySpectrumManagementSupportResult,
2339 fidl::encoding::DefaultFuchsiaResourceDialect,
2340 >;
2341 fn r#query_spectrum_management_support(
2342 &self,
2343 ) -> Self::QuerySpectrumManagementSupportResponseFut {
2344 fn _decode(
2345 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2346 ) -> Result<WlanSoftmacBaseQuerySpectrumManagementSupportResult, fidl::Error> {
2347 let _response = fidl::client::decode_transaction_body::<
2348 fidl::encoding::ResultType<
2349 WlanSoftmacBaseQuerySpectrumManagementSupportResponse,
2350 i32,
2351 >,
2352 fidl::encoding::DefaultFuchsiaResourceDialect,
2353 0x347d78dc1d4d27bf,
2354 >(_buf?)?;
2355 Ok(_response.map(|x| x.resp))
2356 }
2357 self.client.send_query_and_decode::<
2358 fidl::encoding::EmptyPayload,
2359 WlanSoftmacBaseQuerySpectrumManagementSupportResult,
2360 >(
2361 (),
2362 0x347d78dc1d4d27bf,
2363 fidl::encoding::DynamicFlags::empty(),
2364 _decode,
2365 )
2366 }
2367
2368 type SetChannelResponseFut = fidl::client::QueryResponseFut<
2369 WlanSoftmacBaseSetChannelResult,
2370 fidl::encoding::DefaultFuchsiaResourceDialect,
2371 >;
2372 fn r#set_channel(
2373 &self,
2374 mut payload: &WlanSoftmacBaseSetChannelRequest,
2375 ) -> Self::SetChannelResponseFut {
2376 fn _decode(
2377 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2378 ) -> Result<WlanSoftmacBaseSetChannelResult, fidl::Error> {
2379 let _response = fidl::client::decode_transaction_body::<
2380 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2381 fidl::encoding::DefaultFuchsiaResourceDialect,
2382 0x12836b533cd63ece,
2383 >(_buf?)?;
2384 Ok(_response.map(|x| x))
2385 }
2386 self.client.send_query_and_decode::<
2387 WlanSoftmacBaseSetChannelRequest,
2388 WlanSoftmacBaseSetChannelResult,
2389 >(
2390 payload,
2391 0x12836b533cd63ece,
2392 fidl::encoding::DynamicFlags::empty(),
2393 _decode,
2394 )
2395 }
2396
2397 type JoinBssResponseFut = fidl::client::QueryResponseFut<
2398 WlanSoftmacBaseJoinBssResult,
2399 fidl::encoding::DefaultFuchsiaResourceDialect,
2400 >;
2401 fn r#join_bss(
2402 &self,
2403 mut join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
2404 ) -> Self::JoinBssResponseFut {
2405 fn _decode(
2406 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2407 ) -> Result<WlanSoftmacBaseJoinBssResult, fidl::Error> {
2408 let _response = fidl::client::decode_transaction_body::<
2409 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2410 fidl::encoding::DefaultFuchsiaResourceDialect,
2411 0x1336fb5455b77a6e,
2412 >(_buf?)?;
2413 Ok(_response.map(|x| x))
2414 }
2415 self.client
2416 .send_query_and_decode::<WlanSoftmacBaseJoinBssRequest, WlanSoftmacBaseJoinBssResult>(
2417 (join_request,),
2418 0x1336fb5455b77a6e,
2419 fidl::encoding::DynamicFlags::empty(),
2420 _decode,
2421 )
2422 }
2423
2424 type EnableBeaconingResponseFut = fidl::client::QueryResponseFut<
2425 WlanSoftmacBaseEnableBeaconingResult,
2426 fidl::encoding::DefaultFuchsiaResourceDialect,
2427 >;
2428 fn r#enable_beaconing(
2429 &self,
2430 mut payload: &WlanSoftmacBaseEnableBeaconingRequest,
2431 ) -> Self::EnableBeaconingResponseFut {
2432 fn _decode(
2433 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2434 ) -> Result<WlanSoftmacBaseEnableBeaconingResult, fidl::Error> {
2435 let _response = fidl::client::decode_transaction_body::<
2436 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2437 fidl::encoding::DefaultFuchsiaResourceDialect,
2438 0x6c35807632c64576,
2439 >(_buf?)?;
2440 Ok(_response.map(|x| x))
2441 }
2442 self.client.send_query_and_decode::<
2443 WlanSoftmacBaseEnableBeaconingRequest,
2444 WlanSoftmacBaseEnableBeaconingResult,
2445 >(
2446 payload,
2447 0x6c35807632c64576,
2448 fidl::encoding::DynamicFlags::empty(),
2449 _decode,
2450 )
2451 }
2452
2453 type DisableBeaconingResponseFut = fidl::client::QueryResponseFut<
2454 WlanSoftmacBaseDisableBeaconingResult,
2455 fidl::encoding::DefaultFuchsiaResourceDialect,
2456 >;
2457 fn r#disable_beaconing(&self) -> Self::DisableBeaconingResponseFut {
2458 fn _decode(
2459 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2460 ) -> Result<WlanSoftmacBaseDisableBeaconingResult, fidl::Error> {
2461 let _response = fidl::client::decode_transaction_body::<
2462 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2463 fidl::encoding::DefaultFuchsiaResourceDialect,
2464 0x3303b30f99dbb406,
2465 >(_buf?)?;
2466 Ok(_response.map(|x| x))
2467 }
2468 self.client.send_query_and_decode::<
2469 fidl::encoding::EmptyPayload,
2470 WlanSoftmacBaseDisableBeaconingResult,
2471 >(
2472 (),
2473 0x3303b30f99dbb406,
2474 fidl::encoding::DynamicFlags::empty(),
2475 _decode,
2476 )
2477 }
2478
2479 type InstallKeyResponseFut = fidl::client::QueryResponseFut<
2480 WlanSoftmacBaseInstallKeyResult,
2481 fidl::encoding::DefaultFuchsiaResourceDialect,
2482 >;
2483 fn r#install_key(&self, mut payload: &WlanKeyConfiguration) -> Self::InstallKeyResponseFut {
2484 fn _decode(
2485 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2486 ) -> Result<WlanSoftmacBaseInstallKeyResult, fidl::Error> {
2487 let _response = fidl::client::decode_transaction_body::<
2488 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2489 fidl::encoding::DefaultFuchsiaResourceDialect,
2490 0x7decf9b4200b9131,
2491 >(_buf?)?;
2492 Ok(_response.map(|x| x))
2493 }
2494 self.client.send_query_and_decode::<WlanKeyConfiguration, WlanSoftmacBaseInstallKeyResult>(
2495 payload,
2496 0x7decf9b4200b9131,
2497 fidl::encoding::DynamicFlags::empty(),
2498 _decode,
2499 )
2500 }
2501
2502 type NotifyAssociationCompleteResponseFut = fidl::client::QueryResponseFut<
2503 WlanSoftmacBaseNotifyAssociationCompleteResult,
2504 fidl::encoding::DefaultFuchsiaResourceDialect,
2505 >;
2506 fn r#notify_association_complete(
2507 &self,
2508 mut assoc_cfg: &WlanAssociationConfig,
2509 ) -> Self::NotifyAssociationCompleteResponseFut {
2510 fn _decode(
2511 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2512 ) -> Result<WlanSoftmacBaseNotifyAssociationCompleteResult, fidl::Error> {
2513 let _response = fidl::client::decode_transaction_body::<
2514 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2515 fidl::encoding::DefaultFuchsiaResourceDialect,
2516 0x436ffe3ba461d6cd,
2517 >(_buf?)?;
2518 Ok(_response.map(|x| x))
2519 }
2520 self.client.send_query_and_decode::<
2521 WlanSoftmacBaseNotifyAssociationCompleteRequest,
2522 WlanSoftmacBaseNotifyAssociationCompleteResult,
2523 >(
2524 (assoc_cfg,),
2525 0x436ffe3ba461d6cd,
2526 fidl::encoding::DynamicFlags::empty(),
2527 _decode,
2528 )
2529 }
2530
2531 type ClearAssociationResponseFut = fidl::client::QueryResponseFut<
2532 WlanSoftmacBaseClearAssociationResult,
2533 fidl::encoding::DefaultFuchsiaResourceDialect,
2534 >;
2535 fn r#clear_association(
2536 &self,
2537 mut payload: &WlanSoftmacBaseClearAssociationRequest,
2538 ) -> Self::ClearAssociationResponseFut {
2539 fn _decode(
2540 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2541 ) -> Result<WlanSoftmacBaseClearAssociationResult, fidl::Error> {
2542 let _response = fidl::client::decode_transaction_body::<
2543 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2544 fidl::encoding::DefaultFuchsiaResourceDialect,
2545 0x581d76c39190a7dd,
2546 >(_buf?)?;
2547 Ok(_response.map(|x| x))
2548 }
2549 self.client.send_query_and_decode::<
2550 WlanSoftmacBaseClearAssociationRequest,
2551 WlanSoftmacBaseClearAssociationResult,
2552 >(
2553 payload,
2554 0x581d76c39190a7dd,
2555 fidl::encoding::DynamicFlags::empty(),
2556 _decode,
2557 )
2558 }
2559
2560 type StartPassiveScanResponseFut = fidl::client::QueryResponseFut<
2561 WlanSoftmacBaseStartPassiveScanResult,
2562 fidl::encoding::DefaultFuchsiaResourceDialect,
2563 >;
2564 fn r#start_passive_scan(
2565 &self,
2566 mut payload: &WlanSoftmacBaseStartPassiveScanRequest,
2567 ) -> Self::StartPassiveScanResponseFut {
2568 fn _decode(
2569 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2570 ) -> Result<WlanSoftmacBaseStartPassiveScanResult, fidl::Error> {
2571 let _response = fidl::client::decode_transaction_body::<
2572 fidl::encoding::ResultType<WlanSoftmacBaseStartPassiveScanResponse, i32>,
2573 fidl::encoding::DefaultFuchsiaResourceDialect,
2574 0x5662f989cb4083bb,
2575 >(_buf?)?;
2576 Ok(_response.map(|x| x))
2577 }
2578 self.client.send_query_and_decode::<
2579 WlanSoftmacBaseStartPassiveScanRequest,
2580 WlanSoftmacBaseStartPassiveScanResult,
2581 >(
2582 payload,
2583 0x5662f989cb4083bb,
2584 fidl::encoding::DynamicFlags::empty(),
2585 _decode,
2586 )
2587 }
2588
2589 type StartActiveScanResponseFut = fidl::client::QueryResponseFut<
2590 WlanSoftmacBaseStartActiveScanResult,
2591 fidl::encoding::DefaultFuchsiaResourceDialect,
2592 >;
2593 fn r#start_active_scan(
2594 &self,
2595 mut payload: &WlanSoftmacStartActiveScanRequest,
2596 ) -> Self::StartActiveScanResponseFut {
2597 fn _decode(
2598 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2599 ) -> Result<WlanSoftmacBaseStartActiveScanResult, fidl::Error> {
2600 let _response = fidl::client::decode_transaction_body::<
2601 fidl::encoding::ResultType<WlanSoftmacBaseStartActiveScanResponse, i32>,
2602 fidl::encoding::DefaultFuchsiaResourceDialect,
2603 0x4896eafa9937751e,
2604 >(_buf?)?;
2605 Ok(_response.map(|x| x))
2606 }
2607 self.client.send_query_and_decode::<
2608 WlanSoftmacStartActiveScanRequest,
2609 WlanSoftmacBaseStartActiveScanResult,
2610 >(
2611 payload,
2612 0x4896eafa9937751e,
2613 fidl::encoding::DynamicFlags::empty(),
2614 _decode,
2615 )
2616 }
2617
2618 type CancelScanResponseFut = fidl::client::QueryResponseFut<
2619 WlanSoftmacBaseCancelScanResult,
2620 fidl::encoding::DefaultFuchsiaResourceDialect,
2621 >;
2622 fn r#cancel_scan(
2623 &self,
2624 mut payload: &WlanSoftmacBaseCancelScanRequest,
2625 ) -> Self::CancelScanResponseFut {
2626 fn _decode(
2627 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2628 ) -> Result<WlanSoftmacBaseCancelScanResult, fidl::Error> {
2629 let _response = fidl::client::decode_transaction_body::<
2630 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2631 fidl::encoding::DefaultFuchsiaResourceDialect,
2632 0xf7d859369764556,
2633 >(_buf?)?;
2634 Ok(_response.map(|x| x))
2635 }
2636 self.client.send_query_and_decode::<
2637 WlanSoftmacBaseCancelScanRequest,
2638 WlanSoftmacBaseCancelScanResult,
2639 >(
2640 payload,
2641 0xf7d859369764556,
2642 fidl::encoding::DynamicFlags::empty(),
2643 _decode,
2644 )
2645 }
2646
2647 type UpdateWmmParametersResponseFut = fidl::client::QueryResponseFut<
2648 WlanSoftmacBaseUpdateWmmParametersResult,
2649 fidl::encoding::DefaultFuchsiaResourceDialect,
2650 >;
2651 fn r#update_wmm_parameters(
2652 &self,
2653 mut payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
2654 ) -> Self::UpdateWmmParametersResponseFut {
2655 fn _decode(
2656 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
2657 ) -> Result<WlanSoftmacBaseUpdateWmmParametersResult, fidl::Error> {
2658 let _response = fidl::client::decode_transaction_body::<
2659 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
2660 fidl::encoding::DefaultFuchsiaResourceDialect,
2661 0x68522c7122d5f78c,
2662 >(_buf?)?;
2663 Ok(_response.map(|x| x))
2664 }
2665 self.client.send_query_and_decode::<
2666 WlanSoftmacBaseUpdateWmmParametersRequest,
2667 WlanSoftmacBaseUpdateWmmParametersResult,
2668 >(
2669 payload,
2670 0x68522c7122d5f78c,
2671 fidl::encoding::DynamicFlags::empty(),
2672 _decode,
2673 )
2674 }
2675}
2676
2677pub struct WlanSoftmacBaseEventStream {
2678 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
2679}
2680
2681impl std::marker::Unpin for WlanSoftmacBaseEventStream {}
2682
2683impl futures::stream::FusedStream for WlanSoftmacBaseEventStream {
2684 fn is_terminated(&self) -> bool {
2685 self.event_receiver.is_terminated()
2686 }
2687}
2688
2689impl futures::Stream for WlanSoftmacBaseEventStream {
2690 type Item = Result<WlanSoftmacBaseEvent, fidl::Error>;
2691
2692 fn poll_next(
2693 mut self: std::pin::Pin<&mut Self>,
2694 cx: &mut std::task::Context<'_>,
2695 ) -> std::task::Poll<Option<Self::Item>> {
2696 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
2697 &mut self.event_receiver,
2698 cx
2699 )?) {
2700 Some(buf) => std::task::Poll::Ready(Some(WlanSoftmacBaseEvent::decode(buf))),
2701 None => std::task::Poll::Ready(None),
2702 }
2703 }
2704}
2705
2706#[derive(Debug)]
2707pub enum WlanSoftmacBaseEvent {}
2708
2709impl WlanSoftmacBaseEvent {
2710 fn decode(
2712 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
2713 ) -> Result<WlanSoftmacBaseEvent, fidl::Error> {
2714 let (bytes, _handles) = buf.split_mut();
2715 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
2716 debug_assert_eq!(tx_header.tx_id, 0);
2717 match tx_header.ordinal {
2718 _ => Err(fidl::Error::UnknownOrdinal {
2719 ordinal: tx_header.ordinal,
2720 protocol_name:
2721 <WlanSoftmacBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
2722 }),
2723 }
2724 }
2725}
2726
2727pub struct WlanSoftmacBaseRequestStream {
2729 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
2730 is_terminated: bool,
2731}
2732
2733impl std::marker::Unpin for WlanSoftmacBaseRequestStream {}
2734
2735impl futures::stream::FusedStream for WlanSoftmacBaseRequestStream {
2736 fn is_terminated(&self) -> bool {
2737 self.is_terminated
2738 }
2739}
2740
2741impl fidl::endpoints::RequestStream for WlanSoftmacBaseRequestStream {
2742 type Protocol = WlanSoftmacBaseMarker;
2743 type ControlHandle = WlanSoftmacBaseControlHandle;
2744
2745 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
2746 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
2747 }
2748
2749 fn control_handle(&self) -> Self::ControlHandle {
2750 WlanSoftmacBaseControlHandle { inner: self.inner.clone() }
2751 }
2752
2753 fn into_inner(
2754 self,
2755 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
2756 {
2757 (self.inner, self.is_terminated)
2758 }
2759
2760 fn from_inner(
2761 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
2762 is_terminated: bool,
2763 ) -> Self {
2764 Self { inner, is_terminated }
2765 }
2766}
2767
2768impl futures::Stream for WlanSoftmacBaseRequestStream {
2769 type Item = Result<WlanSoftmacBaseRequest, fidl::Error>;
2770
2771 fn poll_next(
2772 mut self: std::pin::Pin<&mut Self>,
2773 cx: &mut std::task::Context<'_>,
2774 ) -> std::task::Poll<Option<Self::Item>> {
2775 let this = &mut *self;
2776 if this.inner.check_shutdown(cx) {
2777 this.is_terminated = true;
2778 return std::task::Poll::Ready(None);
2779 }
2780 if this.is_terminated {
2781 panic!("polled WlanSoftmacBaseRequestStream after completion");
2782 }
2783 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
2784 |bytes, handles| {
2785 match this.inner.channel().read_etc(cx, bytes, handles) {
2786 std::task::Poll::Ready(Ok(())) => {}
2787 std::task::Poll::Pending => return std::task::Poll::Pending,
2788 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
2789 this.is_terminated = true;
2790 return std::task::Poll::Ready(None);
2791 }
2792 std::task::Poll::Ready(Err(e)) => {
2793 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
2794 e.into(),
2795 ))))
2796 }
2797 }
2798
2799 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
2801
2802 std::task::Poll::Ready(Some(match header.ordinal {
2803 0x18231a638e508f9d => {
2804 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2805 let mut req = fidl::new_empty!(
2806 fidl::encoding::EmptyPayload,
2807 fidl::encoding::DefaultFuchsiaResourceDialect
2808 );
2809 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
2810 let control_handle =
2811 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2812 Ok(WlanSoftmacBaseRequest::Query {
2813 responder: WlanSoftmacBaseQueryResponder {
2814 control_handle: std::mem::ManuallyDrop::new(control_handle),
2815 tx_id: header.tx_id,
2816 },
2817 })
2818 }
2819 0x16797affc0cb58ae => {
2820 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2821 let mut req = fidl::new_empty!(
2822 fidl::encoding::EmptyPayload,
2823 fidl::encoding::DefaultFuchsiaResourceDialect
2824 );
2825 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
2826 let control_handle =
2827 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2828 Ok(WlanSoftmacBaseRequest::QueryDiscoverySupport {
2829 responder: WlanSoftmacBaseQueryDiscoverySupportResponder {
2830 control_handle: std::mem::ManuallyDrop::new(control_handle),
2831 tx_id: header.tx_id,
2832 },
2833 })
2834 }
2835 0x7302c3f8c131f075 => {
2836 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2837 let mut req = fidl::new_empty!(
2838 fidl::encoding::EmptyPayload,
2839 fidl::encoding::DefaultFuchsiaResourceDialect
2840 );
2841 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
2842 let control_handle =
2843 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2844 Ok(WlanSoftmacBaseRequest::QueryMacSublayerSupport {
2845 responder: WlanSoftmacBaseQueryMacSublayerSupportResponder {
2846 control_handle: std::mem::ManuallyDrop::new(control_handle),
2847 tx_id: header.tx_id,
2848 },
2849 })
2850 }
2851 0x3691bb75abf6354 => {
2852 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2853 let mut req = fidl::new_empty!(
2854 fidl::encoding::EmptyPayload,
2855 fidl::encoding::DefaultFuchsiaResourceDialect
2856 );
2857 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
2858 let control_handle =
2859 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2860 Ok(WlanSoftmacBaseRequest::QuerySecuritySupport {
2861 responder: WlanSoftmacBaseQuerySecuritySupportResponder {
2862 control_handle: std::mem::ManuallyDrop::new(control_handle),
2863 tx_id: header.tx_id,
2864 },
2865 })
2866 }
2867 0x347d78dc1d4d27bf => {
2868 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2869 let mut req = fidl::new_empty!(
2870 fidl::encoding::EmptyPayload,
2871 fidl::encoding::DefaultFuchsiaResourceDialect
2872 );
2873 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
2874 let control_handle =
2875 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2876 Ok(WlanSoftmacBaseRequest::QuerySpectrumManagementSupport {
2877 responder: WlanSoftmacBaseQuerySpectrumManagementSupportResponder {
2878 control_handle: std::mem::ManuallyDrop::new(control_handle),
2879 tx_id: header.tx_id,
2880 },
2881 })
2882 }
2883 0x12836b533cd63ece => {
2884 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2885 let mut req = fidl::new_empty!(
2886 WlanSoftmacBaseSetChannelRequest,
2887 fidl::encoding::DefaultFuchsiaResourceDialect
2888 );
2889 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseSetChannelRequest>(&header, _body_bytes, handles, &mut req)?;
2890 let control_handle =
2891 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2892 Ok(WlanSoftmacBaseRequest::SetChannel {
2893 payload: req,
2894 responder: WlanSoftmacBaseSetChannelResponder {
2895 control_handle: std::mem::ManuallyDrop::new(control_handle),
2896 tx_id: header.tx_id,
2897 },
2898 })
2899 }
2900 0x1336fb5455b77a6e => {
2901 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2902 let mut req = fidl::new_empty!(
2903 WlanSoftmacBaseJoinBssRequest,
2904 fidl::encoding::DefaultFuchsiaResourceDialect
2905 );
2906 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseJoinBssRequest>(&header, _body_bytes, handles, &mut req)?;
2907 let control_handle =
2908 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2909 Ok(WlanSoftmacBaseRequest::JoinBss {
2910 join_request: req.join_request,
2911
2912 responder: WlanSoftmacBaseJoinBssResponder {
2913 control_handle: std::mem::ManuallyDrop::new(control_handle),
2914 tx_id: header.tx_id,
2915 },
2916 })
2917 }
2918 0x6c35807632c64576 => {
2919 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2920 let mut req = fidl::new_empty!(
2921 WlanSoftmacBaseEnableBeaconingRequest,
2922 fidl::encoding::DefaultFuchsiaResourceDialect
2923 );
2924 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseEnableBeaconingRequest>(&header, _body_bytes, handles, &mut req)?;
2925 let control_handle =
2926 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2927 Ok(WlanSoftmacBaseRequest::EnableBeaconing {
2928 payload: req,
2929 responder: WlanSoftmacBaseEnableBeaconingResponder {
2930 control_handle: std::mem::ManuallyDrop::new(control_handle),
2931 tx_id: header.tx_id,
2932 },
2933 })
2934 }
2935 0x3303b30f99dbb406 => {
2936 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2937 let mut req = fidl::new_empty!(
2938 fidl::encoding::EmptyPayload,
2939 fidl::encoding::DefaultFuchsiaResourceDialect
2940 );
2941 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
2942 let control_handle =
2943 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2944 Ok(WlanSoftmacBaseRequest::DisableBeaconing {
2945 responder: WlanSoftmacBaseDisableBeaconingResponder {
2946 control_handle: std::mem::ManuallyDrop::new(control_handle),
2947 tx_id: header.tx_id,
2948 },
2949 })
2950 }
2951 0x7decf9b4200b9131 => {
2952 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2953 let mut req = fidl::new_empty!(
2954 WlanKeyConfiguration,
2955 fidl::encoding::DefaultFuchsiaResourceDialect
2956 );
2957 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanKeyConfiguration>(&header, _body_bytes, handles, &mut req)?;
2958 let control_handle =
2959 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2960 Ok(WlanSoftmacBaseRequest::InstallKey {
2961 payload: req,
2962 responder: WlanSoftmacBaseInstallKeyResponder {
2963 control_handle: std::mem::ManuallyDrop::new(control_handle),
2964 tx_id: header.tx_id,
2965 },
2966 })
2967 }
2968 0x436ffe3ba461d6cd => {
2969 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2970 let mut req = fidl::new_empty!(
2971 WlanSoftmacBaseNotifyAssociationCompleteRequest,
2972 fidl::encoding::DefaultFuchsiaResourceDialect
2973 );
2974 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseNotifyAssociationCompleteRequest>(&header, _body_bytes, handles, &mut req)?;
2975 let control_handle =
2976 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2977 Ok(WlanSoftmacBaseRequest::NotifyAssociationComplete {
2978 assoc_cfg: req.assoc_cfg,
2979
2980 responder: WlanSoftmacBaseNotifyAssociationCompleteResponder {
2981 control_handle: std::mem::ManuallyDrop::new(control_handle),
2982 tx_id: header.tx_id,
2983 },
2984 })
2985 }
2986 0x581d76c39190a7dd => {
2987 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
2988 let mut req = fidl::new_empty!(
2989 WlanSoftmacBaseClearAssociationRequest,
2990 fidl::encoding::DefaultFuchsiaResourceDialect
2991 );
2992 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseClearAssociationRequest>(&header, _body_bytes, handles, &mut req)?;
2993 let control_handle =
2994 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
2995 Ok(WlanSoftmacBaseRequest::ClearAssociation {
2996 payload: req,
2997 responder: WlanSoftmacBaseClearAssociationResponder {
2998 control_handle: std::mem::ManuallyDrop::new(control_handle),
2999 tx_id: header.tx_id,
3000 },
3001 })
3002 }
3003 0x5662f989cb4083bb => {
3004 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
3005 let mut req = fidl::new_empty!(
3006 WlanSoftmacBaseStartPassiveScanRequest,
3007 fidl::encoding::DefaultFuchsiaResourceDialect
3008 );
3009 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseStartPassiveScanRequest>(&header, _body_bytes, handles, &mut req)?;
3010 let control_handle =
3011 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
3012 Ok(WlanSoftmacBaseRequest::StartPassiveScan {
3013 payload: req,
3014 responder: WlanSoftmacBaseStartPassiveScanResponder {
3015 control_handle: std::mem::ManuallyDrop::new(control_handle),
3016 tx_id: header.tx_id,
3017 },
3018 })
3019 }
3020 0x4896eafa9937751e => {
3021 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
3022 let mut req = fidl::new_empty!(
3023 WlanSoftmacStartActiveScanRequest,
3024 fidl::encoding::DefaultFuchsiaResourceDialect
3025 );
3026 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacStartActiveScanRequest>(&header, _body_bytes, handles, &mut req)?;
3027 let control_handle =
3028 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
3029 Ok(WlanSoftmacBaseRequest::StartActiveScan {
3030 payload: req,
3031 responder: WlanSoftmacBaseStartActiveScanResponder {
3032 control_handle: std::mem::ManuallyDrop::new(control_handle),
3033 tx_id: header.tx_id,
3034 },
3035 })
3036 }
3037 0xf7d859369764556 => {
3038 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
3039 let mut req = fidl::new_empty!(
3040 WlanSoftmacBaseCancelScanRequest,
3041 fidl::encoding::DefaultFuchsiaResourceDialect
3042 );
3043 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseCancelScanRequest>(&header, _body_bytes, handles, &mut req)?;
3044 let control_handle =
3045 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
3046 Ok(WlanSoftmacBaseRequest::CancelScan {
3047 payload: req,
3048 responder: WlanSoftmacBaseCancelScanResponder {
3049 control_handle: std::mem::ManuallyDrop::new(control_handle),
3050 tx_id: header.tx_id,
3051 },
3052 })
3053 }
3054 0x68522c7122d5f78c => {
3055 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
3056 let mut req = fidl::new_empty!(
3057 WlanSoftmacBaseUpdateWmmParametersRequest,
3058 fidl::encoding::DefaultFuchsiaResourceDialect
3059 );
3060 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseUpdateWmmParametersRequest>(&header, _body_bytes, handles, &mut req)?;
3061 let control_handle =
3062 WlanSoftmacBaseControlHandle { inner: this.inner.clone() };
3063 Ok(WlanSoftmacBaseRequest::UpdateWmmParameters {
3064 payload: req,
3065 responder: WlanSoftmacBaseUpdateWmmParametersResponder {
3066 control_handle: std::mem::ManuallyDrop::new(control_handle),
3067 tx_id: header.tx_id,
3068 },
3069 })
3070 }
3071 _ => Err(fidl::Error::UnknownOrdinal {
3072 ordinal: header.ordinal,
3073 protocol_name:
3074 <WlanSoftmacBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
3075 }),
3076 }))
3077 },
3078 )
3079 }
3080}
3081
3082#[derive(Debug)]
3091pub enum WlanSoftmacBaseRequest {
3092 Query { responder: WlanSoftmacBaseQueryResponder },
3100 QueryDiscoverySupport { responder: WlanSoftmacBaseQueryDiscoverySupportResponder },
3104 QueryMacSublayerSupport { responder: WlanSoftmacBaseQueryMacSublayerSupportResponder },
3112 QuerySecuritySupport { responder: WlanSoftmacBaseQuerySecuritySupportResponder },
3115 QuerySpectrumManagementSupport {
3119 responder: WlanSoftmacBaseQuerySpectrumManagementSupportResponder,
3120 },
3121 SetChannel {
3129 payload: WlanSoftmacBaseSetChannelRequest,
3130 responder: WlanSoftmacBaseSetChannelResponder,
3131 },
3132 JoinBss {
3142 join_request: fidl_fuchsia_wlan_common::JoinBssRequest,
3143 responder: WlanSoftmacBaseJoinBssResponder,
3144 },
3145 EnableBeaconing {
3160 payload: WlanSoftmacBaseEnableBeaconingRequest,
3161 responder: WlanSoftmacBaseEnableBeaconingResponder,
3162 },
3163 DisableBeaconing { responder: WlanSoftmacBaseDisableBeaconingResponder },
3165 InstallKey { payload: WlanKeyConfiguration, responder: WlanSoftmacBaseInstallKeyResponder },
3172 NotifyAssociationComplete {
3182 assoc_cfg: WlanAssociationConfig,
3183 responder: WlanSoftmacBaseNotifyAssociationCompleteResponder,
3184 },
3185 ClearAssociation {
3187 payload: WlanSoftmacBaseClearAssociationRequest,
3188 responder: WlanSoftmacBaseClearAssociationResponder,
3189 },
3190 StartPassiveScan {
3204 payload: WlanSoftmacBaseStartPassiveScanRequest,
3205 responder: WlanSoftmacBaseStartPassiveScanResponder,
3206 },
3207 StartActiveScan {
3221 payload: WlanSoftmacStartActiveScanRequest,
3222 responder: WlanSoftmacBaseStartActiveScanResponder,
3223 },
3224 CancelScan {
3238 payload: WlanSoftmacBaseCancelScanRequest,
3239 responder: WlanSoftmacBaseCancelScanResponder,
3240 },
3241 UpdateWmmParameters {
3244 payload: WlanSoftmacBaseUpdateWmmParametersRequest,
3245 responder: WlanSoftmacBaseUpdateWmmParametersResponder,
3246 },
3247}
3248
3249impl WlanSoftmacBaseRequest {
3250 #[allow(irrefutable_let_patterns)]
3251 pub fn into_query(self) -> Option<(WlanSoftmacBaseQueryResponder)> {
3252 if let WlanSoftmacBaseRequest::Query { responder } = self {
3253 Some((responder))
3254 } else {
3255 None
3256 }
3257 }
3258
3259 #[allow(irrefutable_let_patterns)]
3260 pub fn into_query_discovery_support(
3261 self,
3262 ) -> Option<(WlanSoftmacBaseQueryDiscoverySupportResponder)> {
3263 if let WlanSoftmacBaseRequest::QueryDiscoverySupport { responder } = self {
3264 Some((responder))
3265 } else {
3266 None
3267 }
3268 }
3269
3270 #[allow(irrefutable_let_patterns)]
3271 pub fn into_query_mac_sublayer_support(
3272 self,
3273 ) -> Option<(WlanSoftmacBaseQueryMacSublayerSupportResponder)> {
3274 if let WlanSoftmacBaseRequest::QueryMacSublayerSupport { responder } = self {
3275 Some((responder))
3276 } else {
3277 None
3278 }
3279 }
3280
3281 #[allow(irrefutable_let_patterns)]
3282 pub fn into_query_security_support(
3283 self,
3284 ) -> Option<(WlanSoftmacBaseQuerySecuritySupportResponder)> {
3285 if let WlanSoftmacBaseRequest::QuerySecuritySupport { responder } = self {
3286 Some((responder))
3287 } else {
3288 None
3289 }
3290 }
3291
3292 #[allow(irrefutable_let_patterns)]
3293 pub fn into_query_spectrum_management_support(
3294 self,
3295 ) -> Option<(WlanSoftmacBaseQuerySpectrumManagementSupportResponder)> {
3296 if let WlanSoftmacBaseRequest::QuerySpectrumManagementSupport { responder } = self {
3297 Some((responder))
3298 } else {
3299 None
3300 }
3301 }
3302
3303 #[allow(irrefutable_let_patterns)]
3304 pub fn into_set_channel(
3305 self,
3306 ) -> Option<(WlanSoftmacBaseSetChannelRequest, WlanSoftmacBaseSetChannelResponder)> {
3307 if let WlanSoftmacBaseRequest::SetChannel { payload, responder } = self {
3308 Some((payload, responder))
3309 } else {
3310 None
3311 }
3312 }
3313
3314 #[allow(irrefutable_let_patterns)]
3315 pub fn into_join_bss(
3316 self,
3317 ) -> Option<(fidl_fuchsia_wlan_common::JoinBssRequest, WlanSoftmacBaseJoinBssResponder)> {
3318 if let WlanSoftmacBaseRequest::JoinBss { join_request, responder } = self {
3319 Some((join_request, responder))
3320 } else {
3321 None
3322 }
3323 }
3324
3325 #[allow(irrefutable_let_patterns)]
3326 pub fn into_enable_beaconing(
3327 self,
3328 ) -> Option<(WlanSoftmacBaseEnableBeaconingRequest, WlanSoftmacBaseEnableBeaconingResponder)>
3329 {
3330 if let WlanSoftmacBaseRequest::EnableBeaconing { payload, responder } = self {
3331 Some((payload, responder))
3332 } else {
3333 None
3334 }
3335 }
3336
3337 #[allow(irrefutable_let_patterns)]
3338 pub fn into_disable_beaconing(self) -> Option<(WlanSoftmacBaseDisableBeaconingResponder)> {
3339 if let WlanSoftmacBaseRequest::DisableBeaconing { responder } = self {
3340 Some((responder))
3341 } else {
3342 None
3343 }
3344 }
3345
3346 #[allow(irrefutable_let_patterns)]
3347 pub fn into_install_key(
3348 self,
3349 ) -> Option<(WlanKeyConfiguration, WlanSoftmacBaseInstallKeyResponder)> {
3350 if let WlanSoftmacBaseRequest::InstallKey { payload, responder } = self {
3351 Some((payload, responder))
3352 } else {
3353 None
3354 }
3355 }
3356
3357 #[allow(irrefutable_let_patterns)]
3358 pub fn into_notify_association_complete(
3359 self,
3360 ) -> Option<(WlanAssociationConfig, WlanSoftmacBaseNotifyAssociationCompleteResponder)> {
3361 if let WlanSoftmacBaseRequest::NotifyAssociationComplete { assoc_cfg, responder } = self {
3362 Some((assoc_cfg, responder))
3363 } else {
3364 None
3365 }
3366 }
3367
3368 #[allow(irrefutable_let_patterns)]
3369 pub fn into_clear_association(
3370 self,
3371 ) -> Option<(WlanSoftmacBaseClearAssociationRequest, WlanSoftmacBaseClearAssociationResponder)>
3372 {
3373 if let WlanSoftmacBaseRequest::ClearAssociation { payload, responder } = self {
3374 Some((payload, responder))
3375 } else {
3376 None
3377 }
3378 }
3379
3380 #[allow(irrefutable_let_patterns)]
3381 pub fn into_start_passive_scan(
3382 self,
3383 ) -> Option<(WlanSoftmacBaseStartPassiveScanRequest, WlanSoftmacBaseStartPassiveScanResponder)>
3384 {
3385 if let WlanSoftmacBaseRequest::StartPassiveScan { payload, responder } = self {
3386 Some((payload, responder))
3387 } else {
3388 None
3389 }
3390 }
3391
3392 #[allow(irrefutable_let_patterns)]
3393 pub fn into_start_active_scan(
3394 self,
3395 ) -> Option<(WlanSoftmacStartActiveScanRequest, WlanSoftmacBaseStartActiveScanResponder)> {
3396 if let WlanSoftmacBaseRequest::StartActiveScan { payload, responder } = self {
3397 Some((payload, responder))
3398 } else {
3399 None
3400 }
3401 }
3402
3403 #[allow(irrefutable_let_patterns)]
3404 pub fn into_cancel_scan(
3405 self,
3406 ) -> Option<(WlanSoftmacBaseCancelScanRequest, WlanSoftmacBaseCancelScanResponder)> {
3407 if let WlanSoftmacBaseRequest::CancelScan { payload, responder } = self {
3408 Some((payload, responder))
3409 } else {
3410 None
3411 }
3412 }
3413
3414 #[allow(irrefutable_let_patterns)]
3415 pub fn into_update_wmm_parameters(
3416 self,
3417 ) -> Option<(
3418 WlanSoftmacBaseUpdateWmmParametersRequest,
3419 WlanSoftmacBaseUpdateWmmParametersResponder,
3420 )> {
3421 if let WlanSoftmacBaseRequest::UpdateWmmParameters { payload, responder } = self {
3422 Some((payload, responder))
3423 } else {
3424 None
3425 }
3426 }
3427
3428 pub fn method_name(&self) -> &'static str {
3430 match *self {
3431 WlanSoftmacBaseRequest::Query { .. } => "query",
3432 WlanSoftmacBaseRequest::QueryDiscoverySupport { .. } => "query_discovery_support",
3433 WlanSoftmacBaseRequest::QueryMacSublayerSupport { .. } => "query_mac_sublayer_support",
3434 WlanSoftmacBaseRequest::QuerySecuritySupport { .. } => "query_security_support",
3435 WlanSoftmacBaseRequest::QuerySpectrumManagementSupport { .. } => {
3436 "query_spectrum_management_support"
3437 }
3438 WlanSoftmacBaseRequest::SetChannel { .. } => "set_channel",
3439 WlanSoftmacBaseRequest::JoinBss { .. } => "join_bss",
3440 WlanSoftmacBaseRequest::EnableBeaconing { .. } => "enable_beaconing",
3441 WlanSoftmacBaseRequest::DisableBeaconing { .. } => "disable_beaconing",
3442 WlanSoftmacBaseRequest::InstallKey { .. } => "install_key",
3443 WlanSoftmacBaseRequest::NotifyAssociationComplete { .. } => {
3444 "notify_association_complete"
3445 }
3446 WlanSoftmacBaseRequest::ClearAssociation { .. } => "clear_association",
3447 WlanSoftmacBaseRequest::StartPassiveScan { .. } => "start_passive_scan",
3448 WlanSoftmacBaseRequest::StartActiveScan { .. } => "start_active_scan",
3449 WlanSoftmacBaseRequest::CancelScan { .. } => "cancel_scan",
3450 WlanSoftmacBaseRequest::UpdateWmmParameters { .. } => "update_wmm_parameters",
3451 }
3452 }
3453}
3454
3455#[derive(Debug, Clone)]
3456pub struct WlanSoftmacBaseControlHandle {
3457 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
3458}
3459
3460impl fidl::endpoints::ControlHandle for WlanSoftmacBaseControlHandle {
3461 fn shutdown(&self) {
3462 self.inner.shutdown()
3463 }
3464 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
3465 self.inner.shutdown_with_epitaph(status)
3466 }
3467
3468 fn is_closed(&self) -> bool {
3469 self.inner.channel().is_closed()
3470 }
3471 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
3472 self.inner.channel().on_closed()
3473 }
3474
3475 #[cfg(target_os = "fuchsia")]
3476 fn signal_peer(
3477 &self,
3478 clear_mask: zx::Signals,
3479 set_mask: zx::Signals,
3480 ) -> Result<(), zx_status::Status> {
3481 use fidl::Peered;
3482 self.inner.channel().signal_peer(clear_mask, set_mask)
3483 }
3484}
3485
3486impl WlanSoftmacBaseControlHandle {}
3487
3488#[must_use = "FIDL methods require a response to be sent"]
3489#[derive(Debug)]
3490pub struct WlanSoftmacBaseQueryResponder {
3491 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3492 tx_id: u32,
3493}
3494
3495impl std::ops::Drop for WlanSoftmacBaseQueryResponder {
3499 fn drop(&mut self) {
3500 self.control_handle.shutdown();
3501 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3503 }
3504}
3505
3506impl fidl::endpoints::Responder for WlanSoftmacBaseQueryResponder {
3507 type ControlHandle = WlanSoftmacBaseControlHandle;
3508
3509 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3510 &self.control_handle
3511 }
3512
3513 fn drop_without_shutdown(mut self) {
3514 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3516 std::mem::forget(self);
3518 }
3519}
3520
3521impl WlanSoftmacBaseQueryResponder {
3522 pub fn send(
3526 self,
3527 mut result: Result<&WlanSoftmacQueryResponse, i32>,
3528 ) -> Result<(), fidl::Error> {
3529 let _result = self.send_raw(result);
3530 if _result.is_err() {
3531 self.control_handle.shutdown();
3532 }
3533 self.drop_without_shutdown();
3534 _result
3535 }
3536
3537 pub fn send_no_shutdown_on_err(
3539 self,
3540 mut result: Result<&WlanSoftmacQueryResponse, i32>,
3541 ) -> Result<(), fidl::Error> {
3542 let _result = self.send_raw(result);
3543 self.drop_without_shutdown();
3544 _result
3545 }
3546
3547 fn send_raw(
3548 &self,
3549 mut result: Result<&WlanSoftmacQueryResponse, i32>,
3550 ) -> Result<(), fidl::Error> {
3551 self.control_handle.inner.send::<fidl::encoding::ResultType<WlanSoftmacQueryResponse, i32>>(
3552 result,
3553 self.tx_id,
3554 0x18231a638e508f9d,
3555 fidl::encoding::DynamicFlags::empty(),
3556 )
3557 }
3558}
3559
3560#[must_use = "FIDL methods require a response to be sent"]
3561#[derive(Debug)]
3562pub struct WlanSoftmacBaseQueryDiscoverySupportResponder {
3563 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3564 tx_id: u32,
3565}
3566
3567impl std::ops::Drop for WlanSoftmacBaseQueryDiscoverySupportResponder {
3571 fn drop(&mut self) {
3572 self.control_handle.shutdown();
3573 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3575 }
3576}
3577
3578impl fidl::endpoints::Responder for WlanSoftmacBaseQueryDiscoverySupportResponder {
3579 type ControlHandle = WlanSoftmacBaseControlHandle;
3580
3581 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3582 &self.control_handle
3583 }
3584
3585 fn drop_without_shutdown(mut self) {
3586 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3588 std::mem::forget(self);
3590 }
3591}
3592
3593impl WlanSoftmacBaseQueryDiscoverySupportResponder {
3594 pub fn send(self, mut result: Result<&DiscoverySupport, i32>) -> Result<(), fidl::Error> {
3598 let _result = self.send_raw(result);
3599 if _result.is_err() {
3600 self.control_handle.shutdown();
3601 }
3602 self.drop_without_shutdown();
3603 _result
3604 }
3605
3606 pub fn send_no_shutdown_on_err(
3608 self,
3609 mut result: Result<&DiscoverySupport, i32>,
3610 ) -> Result<(), fidl::Error> {
3611 let _result = self.send_raw(result);
3612 self.drop_without_shutdown();
3613 _result
3614 }
3615
3616 fn send_raw(&self, mut result: Result<&DiscoverySupport, i32>) -> Result<(), fidl::Error> {
3617 self.control_handle.inner.send::<fidl::encoding::ResultType<
3618 WlanSoftmacBaseQueryDiscoverySupportResponse,
3619 i32,
3620 >>(
3621 result.map(|resp| (resp,)),
3622 self.tx_id,
3623 0x16797affc0cb58ae,
3624 fidl::encoding::DynamicFlags::empty(),
3625 )
3626 }
3627}
3628
3629#[must_use = "FIDL methods require a response to be sent"]
3630#[derive(Debug)]
3631pub struct WlanSoftmacBaseQueryMacSublayerSupportResponder {
3632 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3633 tx_id: u32,
3634}
3635
3636impl std::ops::Drop for WlanSoftmacBaseQueryMacSublayerSupportResponder {
3640 fn drop(&mut self) {
3641 self.control_handle.shutdown();
3642 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3644 }
3645}
3646
3647impl fidl::endpoints::Responder for WlanSoftmacBaseQueryMacSublayerSupportResponder {
3648 type ControlHandle = WlanSoftmacBaseControlHandle;
3649
3650 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3651 &self.control_handle
3652 }
3653
3654 fn drop_without_shutdown(mut self) {
3655 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3657 std::mem::forget(self);
3659 }
3660}
3661
3662impl WlanSoftmacBaseQueryMacSublayerSupportResponder {
3663 pub fn send(
3667 self,
3668 mut result: Result<&fidl_fuchsia_wlan_common::MacSublayerSupport, i32>,
3669 ) -> Result<(), fidl::Error> {
3670 let _result = self.send_raw(result);
3671 if _result.is_err() {
3672 self.control_handle.shutdown();
3673 }
3674 self.drop_without_shutdown();
3675 _result
3676 }
3677
3678 pub fn send_no_shutdown_on_err(
3680 self,
3681 mut result: Result<&fidl_fuchsia_wlan_common::MacSublayerSupport, i32>,
3682 ) -> Result<(), fidl::Error> {
3683 let _result = self.send_raw(result);
3684 self.drop_without_shutdown();
3685 _result
3686 }
3687
3688 fn send_raw(
3689 &self,
3690 mut result: Result<&fidl_fuchsia_wlan_common::MacSublayerSupport, i32>,
3691 ) -> Result<(), fidl::Error> {
3692 self.control_handle.inner.send::<fidl::encoding::ResultType<
3693 WlanSoftmacBaseQueryMacSublayerSupportResponse,
3694 i32,
3695 >>(
3696 result.map(|resp| (resp,)),
3697 self.tx_id,
3698 0x7302c3f8c131f075,
3699 fidl::encoding::DynamicFlags::empty(),
3700 )
3701 }
3702}
3703
3704#[must_use = "FIDL methods require a response to be sent"]
3705#[derive(Debug)]
3706pub struct WlanSoftmacBaseQuerySecuritySupportResponder {
3707 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3708 tx_id: u32,
3709}
3710
3711impl std::ops::Drop for WlanSoftmacBaseQuerySecuritySupportResponder {
3715 fn drop(&mut self) {
3716 self.control_handle.shutdown();
3717 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3719 }
3720}
3721
3722impl fidl::endpoints::Responder for WlanSoftmacBaseQuerySecuritySupportResponder {
3723 type ControlHandle = WlanSoftmacBaseControlHandle;
3724
3725 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3726 &self.control_handle
3727 }
3728
3729 fn drop_without_shutdown(mut self) {
3730 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3732 std::mem::forget(self);
3734 }
3735}
3736
3737impl WlanSoftmacBaseQuerySecuritySupportResponder {
3738 pub fn send(
3742 self,
3743 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
3744 ) -> Result<(), fidl::Error> {
3745 let _result = self.send_raw(result);
3746 if _result.is_err() {
3747 self.control_handle.shutdown();
3748 }
3749 self.drop_without_shutdown();
3750 _result
3751 }
3752
3753 pub fn send_no_shutdown_on_err(
3755 self,
3756 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
3757 ) -> Result<(), fidl::Error> {
3758 let _result = self.send_raw(result);
3759 self.drop_without_shutdown();
3760 _result
3761 }
3762
3763 fn send_raw(
3764 &self,
3765 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
3766 ) -> Result<(), fidl::Error> {
3767 self.control_handle.inner.send::<fidl::encoding::ResultType<
3768 WlanSoftmacBaseQuerySecuritySupportResponse,
3769 i32,
3770 >>(
3771 result.map(|resp| (resp,)),
3772 self.tx_id,
3773 0x3691bb75abf6354,
3774 fidl::encoding::DynamicFlags::empty(),
3775 )
3776 }
3777}
3778
3779#[must_use = "FIDL methods require a response to be sent"]
3780#[derive(Debug)]
3781pub struct WlanSoftmacBaseQuerySpectrumManagementSupportResponder {
3782 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3783 tx_id: u32,
3784}
3785
3786impl std::ops::Drop for WlanSoftmacBaseQuerySpectrumManagementSupportResponder {
3790 fn drop(&mut self) {
3791 self.control_handle.shutdown();
3792 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3794 }
3795}
3796
3797impl fidl::endpoints::Responder for WlanSoftmacBaseQuerySpectrumManagementSupportResponder {
3798 type ControlHandle = WlanSoftmacBaseControlHandle;
3799
3800 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3801 &self.control_handle
3802 }
3803
3804 fn drop_without_shutdown(mut self) {
3805 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3807 std::mem::forget(self);
3809 }
3810}
3811
3812impl WlanSoftmacBaseQuerySpectrumManagementSupportResponder {
3813 pub fn send(
3817 self,
3818 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
3819 ) -> Result<(), fidl::Error> {
3820 let _result = self.send_raw(result);
3821 if _result.is_err() {
3822 self.control_handle.shutdown();
3823 }
3824 self.drop_without_shutdown();
3825 _result
3826 }
3827
3828 pub fn send_no_shutdown_on_err(
3830 self,
3831 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
3832 ) -> Result<(), fidl::Error> {
3833 let _result = self.send_raw(result);
3834 self.drop_without_shutdown();
3835 _result
3836 }
3837
3838 fn send_raw(
3839 &self,
3840 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
3841 ) -> Result<(), fidl::Error> {
3842 self.control_handle.inner.send::<fidl::encoding::ResultType<
3843 WlanSoftmacBaseQuerySpectrumManagementSupportResponse,
3844 i32,
3845 >>(
3846 result.map(|resp| (resp,)),
3847 self.tx_id,
3848 0x347d78dc1d4d27bf,
3849 fidl::encoding::DynamicFlags::empty(),
3850 )
3851 }
3852}
3853
3854#[must_use = "FIDL methods require a response to be sent"]
3855#[derive(Debug)]
3856pub struct WlanSoftmacBaseSetChannelResponder {
3857 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3858 tx_id: u32,
3859}
3860
3861impl std::ops::Drop for WlanSoftmacBaseSetChannelResponder {
3865 fn drop(&mut self) {
3866 self.control_handle.shutdown();
3867 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3869 }
3870}
3871
3872impl fidl::endpoints::Responder for WlanSoftmacBaseSetChannelResponder {
3873 type ControlHandle = WlanSoftmacBaseControlHandle;
3874
3875 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3876 &self.control_handle
3877 }
3878
3879 fn drop_without_shutdown(mut self) {
3880 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3882 std::mem::forget(self);
3884 }
3885}
3886
3887impl WlanSoftmacBaseSetChannelResponder {
3888 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
3892 let _result = self.send_raw(result);
3893 if _result.is_err() {
3894 self.control_handle.shutdown();
3895 }
3896 self.drop_without_shutdown();
3897 _result
3898 }
3899
3900 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
3902 let _result = self.send_raw(result);
3903 self.drop_without_shutdown();
3904 _result
3905 }
3906
3907 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
3908 self.control_handle
3909 .inner
3910 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
3911 result,
3912 self.tx_id,
3913 0x12836b533cd63ece,
3914 fidl::encoding::DynamicFlags::empty(),
3915 )
3916 }
3917}
3918
3919#[must_use = "FIDL methods require a response to be sent"]
3920#[derive(Debug)]
3921pub struct WlanSoftmacBaseJoinBssResponder {
3922 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3923 tx_id: u32,
3924}
3925
3926impl std::ops::Drop for WlanSoftmacBaseJoinBssResponder {
3930 fn drop(&mut self) {
3931 self.control_handle.shutdown();
3932 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3934 }
3935}
3936
3937impl fidl::endpoints::Responder for WlanSoftmacBaseJoinBssResponder {
3938 type ControlHandle = WlanSoftmacBaseControlHandle;
3939
3940 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
3941 &self.control_handle
3942 }
3943
3944 fn drop_without_shutdown(mut self) {
3945 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3947 std::mem::forget(self);
3949 }
3950}
3951
3952impl WlanSoftmacBaseJoinBssResponder {
3953 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
3957 let _result = self.send_raw(result);
3958 if _result.is_err() {
3959 self.control_handle.shutdown();
3960 }
3961 self.drop_without_shutdown();
3962 _result
3963 }
3964
3965 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
3967 let _result = self.send_raw(result);
3968 self.drop_without_shutdown();
3969 _result
3970 }
3971
3972 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
3973 self.control_handle
3974 .inner
3975 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
3976 result,
3977 self.tx_id,
3978 0x1336fb5455b77a6e,
3979 fidl::encoding::DynamicFlags::empty(),
3980 )
3981 }
3982}
3983
3984#[must_use = "FIDL methods require a response to be sent"]
3985#[derive(Debug)]
3986pub struct WlanSoftmacBaseEnableBeaconingResponder {
3987 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
3988 tx_id: u32,
3989}
3990
3991impl std::ops::Drop for WlanSoftmacBaseEnableBeaconingResponder {
3995 fn drop(&mut self) {
3996 self.control_handle.shutdown();
3997 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3999 }
4000}
4001
4002impl fidl::endpoints::Responder for WlanSoftmacBaseEnableBeaconingResponder {
4003 type ControlHandle = WlanSoftmacBaseControlHandle;
4004
4005 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4006 &self.control_handle
4007 }
4008
4009 fn drop_without_shutdown(mut self) {
4010 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4012 std::mem::forget(self);
4014 }
4015}
4016
4017impl WlanSoftmacBaseEnableBeaconingResponder {
4018 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4022 let _result = self.send_raw(result);
4023 if _result.is_err() {
4024 self.control_handle.shutdown();
4025 }
4026 self.drop_without_shutdown();
4027 _result
4028 }
4029
4030 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4032 let _result = self.send_raw(result);
4033 self.drop_without_shutdown();
4034 _result
4035 }
4036
4037 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4038 self.control_handle
4039 .inner
4040 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4041 result,
4042 self.tx_id,
4043 0x6c35807632c64576,
4044 fidl::encoding::DynamicFlags::empty(),
4045 )
4046 }
4047}
4048
4049#[must_use = "FIDL methods require a response to be sent"]
4050#[derive(Debug)]
4051pub struct WlanSoftmacBaseDisableBeaconingResponder {
4052 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4053 tx_id: u32,
4054}
4055
4056impl std::ops::Drop for WlanSoftmacBaseDisableBeaconingResponder {
4060 fn drop(&mut self) {
4061 self.control_handle.shutdown();
4062 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4064 }
4065}
4066
4067impl fidl::endpoints::Responder for WlanSoftmacBaseDisableBeaconingResponder {
4068 type ControlHandle = WlanSoftmacBaseControlHandle;
4069
4070 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4071 &self.control_handle
4072 }
4073
4074 fn drop_without_shutdown(mut self) {
4075 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4077 std::mem::forget(self);
4079 }
4080}
4081
4082impl WlanSoftmacBaseDisableBeaconingResponder {
4083 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4087 let _result = self.send_raw(result);
4088 if _result.is_err() {
4089 self.control_handle.shutdown();
4090 }
4091 self.drop_without_shutdown();
4092 _result
4093 }
4094
4095 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4097 let _result = self.send_raw(result);
4098 self.drop_without_shutdown();
4099 _result
4100 }
4101
4102 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4103 self.control_handle
4104 .inner
4105 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4106 result,
4107 self.tx_id,
4108 0x3303b30f99dbb406,
4109 fidl::encoding::DynamicFlags::empty(),
4110 )
4111 }
4112}
4113
4114#[must_use = "FIDL methods require a response to be sent"]
4115#[derive(Debug)]
4116pub struct WlanSoftmacBaseInstallKeyResponder {
4117 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4118 tx_id: u32,
4119}
4120
4121impl std::ops::Drop for WlanSoftmacBaseInstallKeyResponder {
4125 fn drop(&mut self) {
4126 self.control_handle.shutdown();
4127 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4129 }
4130}
4131
4132impl fidl::endpoints::Responder for WlanSoftmacBaseInstallKeyResponder {
4133 type ControlHandle = WlanSoftmacBaseControlHandle;
4134
4135 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4136 &self.control_handle
4137 }
4138
4139 fn drop_without_shutdown(mut self) {
4140 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4142 std::mem::forget(self);
4144 }
4145}
4146
4147impl WlanSoftmacBaseInstallKeyResponder {
4148 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4152 let _result = self.send_raw(result);
4153 if _result.is_err() {
4154 self.control_handle.shutdown();
4155 }
4156 self.drop_without_shutdown();
4157 _result
4158 }
4159
4160 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4162 let _result = self.send_raw(result);
4163 self.drop_without_shutdown();
4164 _result
4165 }
4166
4167 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4168 self.control_handle
4169 .inner
4170 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4171 result,
4172 self.tx_id,
4173 0x7decf9b4200b9131,
4174 fidl::encoding::DynamicFlags::empty(),
4175 )
4176 }
4177}
4178
4179#[must_use = "FIDL methods require a response to be sent"]
4180#[derive(Debug)]
4181pub struct WlanSoftmacBaseNotifyAssociationCompleteResponder {
4182 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4183 tx_id: u32,
4184}
4185
4186impl std::ops::Drop for WlanSoftmacBaseNotifyAssociationCompleteResponder {
4190 fn drop(&mut self) {
4191 self.control_handle.shutdown();
4192 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4194 }
4195}
4196
4197impl fidl::endpoints::Responder for WlanSoftmacBaseNotifyAssociationCompleteResponder {
4198 type ControlHandle = WlanSoftmacBaseControlHandle;
4199
4200 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4201 &self.control_handle
4202 }
4203
4204 fn drop_without_shutdown(mut self) {
4205 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4207 std::mem::forget(self);
4209 }
4210}
4211
4212impl WlanSoftmacBaseNotifyAssociationCompleteResponder {
4213 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4217 let _result = self.send_raw(result);
4218 if _result.is_err() {
4219 self.control_handle.shutdown();
4220 }
4221 self.drop_without_shutdown();
4222 _result
4223 }
4224
4225 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4227 let _result = self.send_raw(result);
4228 self.drop_without_shutdown();
4229 _result
4230 }
4231
4232 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4233 self.control_handle
4234 .inner
4235 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4236 result,
4237 self.tx_id,
4238 0x436ffe3ba461d6cd,
4239 fidl::encoding::DynamicFlags::empty(),
4240 )
4241 }
4242}
4243
4244#[must_use = "FIDL methods require a response to be sent"]
4245#[derive(Debug)]
4246pub struct WlanSoftmacBaseClearAssociationResponder {
4247 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4248 tx_id: u32,
4249}
4250
4251impl std::ops::Drop for WlanSoftmacBaseClearAssociationResponder {
4255 fn drop(&mut self) {
4256 self.control_handle.shutdown();
4257 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4259 }
4260}
4261
4262impl fidl::endpoints::Responder for WlanSoftmacBaseClearAssociationResponder {
4263 type ControlHandle = WlanSoftmacBaseControlHandle;
4264
4265 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4266 &self.control_handle
4267 }
4268
4269 fn drop_without_shutdown(mut self) {
4270 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4272 std::mem::forget(self);
4274 }
4275}
4276
4277impl WlanSoftmacBaseClearAssociationResponder {
4278 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4282 let _result = self.send_raw(result);
4283 if _result.is_err() {
4284 self.control_handle.shutdown();
4285 }
4286 self.drop_without_shutdown();
4287 _result
4288 }
4289
4290 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4292 let _result = self.send_raw(result);
4293 self.drop_without_shutdown();
4294 _result
4295 }
4296
4297 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4298 self.control_handle
4299 .inner
4300 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4301 result,
4302 self.tx_id,
4303 0x581d76c39190a7dd,
4304 fidl::encoding::DynamicFlags::empty(),
4305 )
4306 }
4307}
4308
4309#[must_use = "FIDL methods require a response to be sent"]
4310#[derive(Debug)]
4311pub struct WlanSoftmacBaseStartPassiveScanResponder {
4312 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4313 tx_id: u32,
4314}
4315
4316impl std::ops::Drop for WlanSoftmacBaseStartPassiveScanResponder {
4320 fn drop(&mut self) {
4321 self.control_handle.shutdown();
4322 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4324 }
4325}
4326
4327impl fidl::endpoints::Responder for WlanSoftmacBaseStartPassiveScanResponder {
4328 type ControlHandle = WlanSoftmacBaseControlHandle;
4329
4330 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4331 &self.control_handle
4332 }
4333
4334 fn drop_without_shutdown(mut self) {
4335 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4337 std::mem::forget(self);
4339 }
4340}
4341
4342impl WlanSoftmacBaseStartPassiveScanResponder {
4343 pub fn send(
4347 self,
4348 mut result: Result<&WlanSoftmacBaseStartPassiveScanResponse, i32>,
4349 ) -> Result<(), fidl::Error> {
4350 let _result = self.send_raw(result);
4351 if _result.is_err() {
4352 self.control_handle.shutdown();
4353 }
4354 self.drop_without_shutdown();
4355 _result
4356 }
4357
4358 pub fn send_no_shutdown_on_err(
4360 self,
4361 mut result: Result<&WlanSoftmacBaseStartPassiveScanResponse, i32>,
4362 ) -> Result<(), fidl::Error> {
4363 let _result = self.send_raw(result);
4364 self.drop_without_shutdown();
4365 _result
4366 }
4367
4368 fn send_raw(
4369 &self,
4370 mut result: Result<&WlanSoftmacBaseStartPassiveScanResponse, i32>,
4371 ) -> Result<(), fidl::Error> {
4372 self.control_handle.inner.send::<fidl::encoding::ResultType<
4373 WlanSoftmacBaseStartPassiveScanResponse,
4374 i32,
4375 >>(
4376 result,
4377 self.tx_id,
4378 0x5662f989cb4083bb,
4379 fidl::encoding::DynamicFlags::empty(),
4380 )
4381 }
4382}
4383
4384#[must_use = "FIDL methods require a response to be sent"]
4385#[derive(Debug)]
4386pub struct WlanSoftmacBaseStartActiveScanResponder {
4387 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4388 tx_id: u32,
4389}
4390
4391impl std::ops::Drop for WlanSoftmacBaseStartActiveScanResponder {
4395 fn drop(&mut self) {
4396 self.control_handle.shutdown();
4397 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4399 }
4400}
4401
4402impl fidl::endpoints::Responder for WlanSoftmacBaseStartActiveScanResponder {
4403 type ControlHandle = WlanSoftmacBaseControlHandle;
4404
4405 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4406 &self.control_handle
4407 }
4408
4409 fn drop_without_shutdown(mut self) {
4410 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4412 std::mem::forget(self);
4414 }
4415}
4416
4417impl WlanSoftmacBaseStartActiveScanResponder {
4418 pub fn send(
4422 self,
4423 mut result: Result<&WlanSoftmacBaseStartActiveScanResponse, i32>,
4424 ) -> Result<(), fidl::Error> {
4425 let _result = self.send_raw(result);
4426 if _result.is_err() {
4427 self.control_handle.shutdown();
4428 }
4429 self.drop_without_shutdown();
4430 _result
4431 }
4432
4433 pub fn send_no_shutdown_on_err(
4435 self,
4436 mut result: Result<&WlanSoftmacBaseStartActiveScanResponse, i32>,
4437 ) -> Result<(), fidl::Error> {
4438 let _result = self.send_raw(result);
4439 self.drop_without_shutdown();
4440 _result
4441 }
4442
4443 fn send_raw(
4444 &self,
4445 mut result: Result<&WlanSoftmacBaseStartActiveScanResponse, i32>,
4446 ) -> Result<(), fidl::Error> {
4447 self.control_handle.inner.send::<fidl::encoding::ResultType<
4448 WlanSoftmacBaseStartActiveScanResponse,
4449 i32,
4450 >>(
4451 result,
4452 self.tx_id,
4453 0x4896eafa9937751e,
4454 fidl::encoding::DynamicFlags::empty(),
4455 )
4456 }
4457}
4458
4459#[must_use = "FIDL methods require a response to be sent"]
4460#[derive(Debug)]
4461pub struct WlanSoftmacBaseCancelScanResponder {
4462 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4463 tx_id: u32,
4464}
4465
4466impl std::ops::Drop for WlanSoftmacBaseCancelScanResponder {
4470 fn drop(&mut self) {
4471 self.control_handle.shutdown();
4472 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4474 }
4475}
4476
4477impl fidl::endpoints::Responder for WlanSoftmacBaseCancelScanResponder {
4478 type ControlHandle = WlanSoftmacBaseControlHandle;
4479
4480 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4481 &self.control_handle
4482 }
4483
4484 fn drop_without_shutdown(mut self) {
4485 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4487 std::mem::forget(self);
4489 }
4490}
4491
4492impl WlanSoftmacBaseCancelScanResponder {
4493 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4497 let _result = self.send_raw(result);
4498 if _result.is_err() {
4499 self.control_handle.shutdown();
4500 }
4501 self.drop_without_shutdown();
4502 _result
4503 }
4504
4505 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4507 let _result = self.send_raw(result);
4508 self.drop_without_shutdown();
4509 _result
4510 }
4511
4512 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4513 self.control_handle
4514 .inner
4515 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4516 result,
4517 self.tx_id,
4518 0xf7d859369764556,
4519 fidl::encoding::DynamicFlags::empty(),
4520 )
4521 }
4522}
4523
4524#[must_use = "FIDL methods require a response to be sent"]
4525#[derive(Debug)]
4526pub struct WlanSoftmacBaseUpdateWmmParametersResponder {
4527 control_handle: std::mem::ManuallyDrop<WlanSoftmacBaseControlHandle>,
4528 tx_id: u32,
4529}
4530
4531impl std::ops::Drop for WlanSoftmacBaseUpdateWmmParametersResponder {
4535 fn drop(&mut self) {
4536 self.control_handle.shutdown();
4537 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4539 }
4540}
4541
4542impl fidl::endpoints::Responder for WlanSoftmacBaseUpdateWmmParametersResponder {
4543 type ControlHandle = WlanSoftmacBaseControlHandle;
4544
4545 fn control_handle(&self) -> &WlanSoftmacBaseControlHandle {
4546 &self.control_handle
4547 }
4548
4549 fn drop_without_shutdown(mut self) {
4550 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
4552 std::mem::forget(self);
4554 }
4555}
4556
4557impl WlanSoftmacBaseUpdateWmmParametersResponder {
4558 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4562 let _result = self.send_raw(result);
4563 if _result.is_err() {
4564 self.control_handle.shutdown();
4565 }
4566 self.drop_without_shutdown();
4567 _result
4568 }
4569
4570 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4572 let _result = self.send_raw(result);
4573 self.drop_without_shutdown();
4574 _result
4575 }
4576
4577 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
4578 self.control_handle
4579 .inner
4580 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
4581 result,
4582 self.tx_id,
4583 0x68522c7122d5f78c,
4584 fidl::encoding::DynamicFlags::empty(),
4585 )
4586 }
4587}
4588
4589#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
4590pub struct WlanSoftmacBridgeMarker;
4591
4592impl fidl::endpoints::ProtocolMarker for WlanSoftmacBridgeMarker {
4593 type Proxy = WlanSoftmacBridgeProxy;
4594 type RequestStream = WlanSoftmacBridgeRequestStream;
4595 #[cfg(target_os = "fuchsia")]
4596 type SynchronousProxy = WlanSoftmacBridgeSynchronousProxy;
4597
4598 const DEBUG_NAME: &'static str = "(anonymous) WlanSoftmacBridge";
4599}
4600pub type WlanSoftmacBridgeStartResult = Result<fidl::Channel, i32>;
4601
4602pub trait WlanSoftmacBridgeProxyInterface: Send + Sync {
4603 type QueryResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseQueryResult, fidl::Error>>
4604 + Send;
4605 fn r#query(&self) -> Self::QueryResponseFut;
4606 type QueryDiscoverySupportResponseFut: std::future::Future<
4607 Output = Result<WlanSoftmacBaseQueryDiscoverySupportResult, fidl::Error>,
4608 > + Send;
4609 fn r#query_discovery_support(&self) -> Self::QueryDiscoverySupportResponseFut;
4610 type QueryMacSublayerSupportResponseFut: std::future::Future<
4611 Output = Result<WlanSoftmacBaseQueryMacSublayerSupportResult, fidl::Error>,
4612 > + Send;
4613 fn r#query_mac_sublayer_support(&self) -> Self::QueryMacSublayerSupportResponseFut;
4614 type QuerySecuritySupportResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseQuerySecuritySupportResult, fidl::Error>>
4615 + Send;
4616 fn r#query_security_support(&self) -> Self::QuerySecuritySupportResponseFut;
4617 type QuerySpectrumManagementSupportResponseFut: std::future::Future<
4618 Output = Result<WlanSoftmacBaseQuerySpectrumManagementSupportResult, fidl::Error>,
4619 > + Send;
4620 fn r#query_spectrum_management_support(
4621 &self,
4622 ) -> Self::QuerySpectrumManagementSupportResponseFut;
4623 type SetChannelResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseSetChannelResult, fidl::Error>>
4624 + Send;
4625 fn r#set_channel(
4626 &self,
4627 payload: &WlanSoftmacBaseSetChannelRequest,
4628 ) -> Self::SetChannelResponseFut;
4629 type JoinBssResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseJoinBssResult, fidl::Error>>
4630 + Send;
4631 fn r#join_bss(
4632 &self,
4633 join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
4634 ) -> Self::JoinBssResponseFut;
4635 type EnableBeaconingResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseEnableBeaconingResult, fidl::Error>>
4636 + Send;
4637 fn r#enable_beaconing(
4638 &self,
4639 payload: &WlanSoftmacBaseEnableBeaconingRequest,
4640 ) -> Self::EnableBeaconingResponseFut;
4641 type DisableBeaconingResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseDisableBeaconingResult, fidl::Error>>
4642 + Send;
4643 fn r#disable_beaconing(&self) -> Self::DisableBeaconingResponseFut;
4644 type InstallKeyResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseInstallKeyResult, fidl::Error>>
4645 + Send;
4646 fn r#install_key(&self, payload: &WlanKeyConfiguration) -> Self::InstallKeyResponseFut;
4647 type NotifyAssociationCompleteResponseFut: std::future::Future<
4648 Output = Result<WlanSoftmacBaseNotifyAssociationCompleteResult, fidl::Error>,
4649 > + Send;
4650 fn r#notify_association_complete(
4651 &self,
4652 assoc_cfg: &WlanAssociationConfig,
4653 ) -> Self::NotifyAssociationCompleteResponseFut;
4654 type ClearAssociationResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseClearAssociationResult, fidl::Error>>
4655 + Send;
4656 fn r#clear_association(
4657 &self,
4658 payload: &WlanSoftmacBaseClearAssociationRequest,
4659 ) -> Self::ClearAssociationResponseFut;
4660 type StartPassiveScanResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseStartPassiveScanResult, fidl::Error>>
4661 + Send;
4662 fn r#start_passive_scan(
4663 &self,
4664 payload: &WlanSoftmacBaseStartPassiveScanRequest,
4665 ) -> Self::StartPassiveScanResponseFut;
4666 type StartActiveScanResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseStartActiveScanResult, fidl::Error>>
4667 + Send;
4668 fn r#start_active_scan(
4669 &self,
4670 payload: &WlanSoftmacStartActiveScanRequest,
4671 ) -> Self::StartActiveScanResponseFut;
4672 type CancelScanResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseCancelScanResult, fidl::Error>>
4673 + Send;
4674 fn r#cancel_scan(
4675 &self,
4676 payload: &WlanSoftmacBaseCancelScanRequest,
4677 ) -> Self::CancelScanResponseFut;
4678 type UpdateWmmParametersResponseFut: std::future::Future<Output = Result<WlanSoftmacBaseUpdateWmmParametersResult, fidl::Error>>
4679 + Send;
4680 fn r#update_wmm_parameters(
4681 &self,
4682 payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
4683 ) -> Self::UpdateWmmParametersResponseFut;
4684 type StartResponseFut: std::future::Future<Output = Result<WlanSoftmacBridgeStartResult, fidl::Error>>
4685 + Send;
4686 fn r#start(
4687 &self,
4688 ifc_bridge: fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
4689 ethernet_tx: u64,
4690 wlan_rx: u64,
4691 ) -> Self::StartResponseFut;
4692 type SetEthernetStatusResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
4693 fn r#set_ethernet_status(&self, status: u32) -> Self::SetEthernetStatusResponseFut;
4694}
4695#[derive(Debug)]
4696#[cfg(target_os = "fuchsia")]
4697pub struct WlanSoftmacBridgeSynchronousProxy {
4698 client: fidl::client::sync::Client,
4699}
4700
4701#[cfg(target_os = "fuchsia")]
4702impl fidl::endpoints::SynchronousProxy for WlanSoftmacBridgeSynchronousProxy {
4703 type Proxy = WlanSoftmacBridgeProxy;
4704 type Protocol = WlanSoftmacBridgeMarker;
4705
4706 fn from_channel(inner: fidl::Channel) -> Self {
4707 Self::new(inner)
4708 }
4709
4710 fn into_channel(self) -> fidl::Channel {
4711 self.client.into_channel()
4712 }
4713
4714 fn as_channel(&self) -> &fidl::Channel {
4715 self.client.as_channel()
4716 }
4717}
4718
4719#[cfg(target_os = "fuchsia")]
4720impl WlanSoftmacBridgeSynchronousProxy {
4721 pub fn new(channel: fidl::Channel) -> Self {
4722 let protocol_name =
4723 <WlanSoftmacBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
4724 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
4725 }
4726
4727 pub fn into_channel(self) -> fidl::Channel {
4728 self.client.into_channel()
4729 }
4730
4731 pub fn wait_for_event(
4734 &self,
4735 deadline: zx::MonotonicInstant,
4736 ) -> Result<WlanSoftmacBridgeEvent, fidl::Error> {
4737 WlanSoftmacBridgeEvent::decode(self.client.wait_for_event(deadline)?)
4738 }
4739
4740 pub fn r#query(
4748 &self,
4749 ___deadline: zx::MonotonicInstant,
4750 ) -> Result<WlanSoftmacBaseQueryResult, fidl::Error> {
4751 let _response = self.client.send_query::<
4752 fidl::encoding::EmptyPayload,
4753 fidl::encoding::ResultType<WlanSoftmacQueryResponse, i32>,
4754 >(
4755 (),
4756 0x18231a638e508f9d,
4757 fidl::encoding::DynamicFlags::empty(),
4758 ___deadline,
4759 )?;
4760 Ok(_response.map(|x| x))
4761 }
4762
4763 pub fn r#query_discovery_support(
4767 &self,
4768 ___deadline: zx::MonotonicInstant,
4769 ) -> Result<WlanSoftmacBaseQueryDiscoverySupportResult, fidl::Error> {
4770 let _response =
4771 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
4772 WlanSoftmacBaseQueryDiscoverySupportResponse,
4773 i32,
4774 >>(
4775 (),
4776 0x16797affc0cb58ae,
4777 fidl::encoding::DynamicFlags::empty(),
4778 ___deadline,
4779 )?;
4780 Ok(_response.map(|x| x.resp))
4781 }
4782
4783 pub fn r#query_mac_sublayer_support(
4791 &self,
4792 ___deadline: zx::MonotonicInstant,
4793 ) -> Result<WlanSoftmacBaseQueryMacSublayerSupportResult, fidl::Error> {
4794 let _response =
4795 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
4796 WlanSoftmacBaseQueryMacSublayerSupportResponse,
4797 i32,
4798 >>(
4799 (),
4800 0x7302c3f8c131f075,
4801 fidl::encoding::DynamicFlags::empty(),
4802 ___deadline,
4803 )?;
4804 Ok(_response.map(|x| x.resp))
4805 }
4806
4807 pub fn r#query_security_support(
4810 &self,
4811 ___deadline: zx::MonotonicInstant,
4812 ) -> Result<WlanSoftmacBaseQuerySecuritySupportResult, fidl::Error> {
4813 let _response =
4814 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
4815 WlanSoftmacBaseQuerySecuritySupportResponse,
4816 i32,
4817 >>(
4818 (),
4819 0x3691bb75abf6354,
4820 fidl::encoding::DynamicFlags::empty(),
4821 ___deadline,
4822 )?;
4823 Ok(_response.map(|x| x.resp))
4824 }
4825
4826 pub fn r#query_spectrum_management_support(
4830 &self,
4831 ___deadline: zx::MonotonicInstant,
4832 ) -> Result<WlanSoftmacBaseQuerySpectrumManagementSupportResult, fidl::Error> {
4833 let _response = self
4834 .client
4835 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
4836 WlanSoftmacBaseQuerySpectrumManagementSupportResponse,
4837 i32,
4838 >>(
4839 (), 0x347d78dc1d4d27bf, fidl::encoding::DynamicFlags::empty(), ___deadline
4840 )?;
4841 Ok(_response.map(|x| x.resp))
4842 }
4843
4844 pub fn r#set_channel(
4852 &self,
4853 mut payload: &WlanSoftmacBaseSetChannelRequest,
4854 ___deadline: zx::MonotonicInstant,
4855 ) -> Result<WlanSoftmacBaseSetChannelResult, fidl::Error> {
4856 let _response = self.client.send_query::<
4857 WlanSoftmacBaseSetChannelRequest,
4858 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4859 >(
4860 payload,
4861 0x12836b533cd63ece,
4862 fidl::encoding::DynamicFlags::empty(),
4863 ___deadline,
4864 )?;
4865 Ok(_response.map(|x| x))
4866 }
4867
4868 pub fn r#join_bss(
4878 &self,
4879 mut join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
4880 ___deadline: zx::MonotonicInstant,
4881 ) -> Result<WlanSoftmacBaseJoinBssResult, fidl::Error> {
4882 let _response = self.client.send_query::<
4883 WlanSoftmacBaseJoinBssRequest,
4884 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4885 >(
4886 (join_request,),
4887 0x1336fb5455b77a6e,
4888 fidl::encoding::DynamicFlags::empty(),
4889 ___deadline,
4890 )?;
4891 Ok(_response.map(|x| x))
4892 }
4893
4894 pub fn r#enable_beaconing(
4909 &self,
4910 mut payload: &WlanSoftmacBaseEnableBeaconingRequest,
4911 ___deadline: zx::MonotonicInstant,
4912 ) -> Result<WlanSoftmacBaseEnableBeaconingResult, fidl::Error> {
4913 let _response = self.client.send_query::<
4914 WlanSoftmacBaseEnableBeaconingRequest,
4915 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4916 >(
4917 payload,
4918 0x6c35807632c64576,
4919 fidl::encoding::DynamicFlags::empty(),
4920 ___deadline,
4921 )?;
4922 Ok(_response.map(|x| x))
4923 }
4924
4925 pub fn r#disable_beaconing(
4927 &self,
4928 ___deadline: zx::MonotonicInstant,
4929 ) -> Result<WlanSoftmacBaseDisableBeaconingResult, fidl::Error> {
4930 let _response = self.client.send_query::<
4931 fidl::encoding::EmptyPayload,
4932 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4933 >(
4934 (),
4935 0x3303b30f99dbb406,
4936 fidl::encoding::DynamicFlags::empty(),
4937 ___deadline,
4938 )?;
4939 Ok(_response.map(|x| x))
4940 }
4941
4942 pub fn r#install_key(
4949 &self,
4950 mut payload: &WlanKeyConfiguration,
4951 ___deadline: zx::MonotonicInstant,
4952 ) -> Result<WlanSoftmacBaseInstallKeyResult, fidl::Error> {
4953 let _response = self.client.send_query::<
4954 WlanKeyConfiguration,
4955 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4956 >(
4957 payload,
4958 0x7decf9b4200b9131,
4959 fidl::encoding::DynamicFlags::empty(),
4960 ___deadline,
4961 )?;
4962 Ok(_response.map(|x| x))
4963 }
4964
4965 pub fn r#notify_association_complete(
4975 &self,
4976 mut assoc_cfg: &WlanAssociationConfig,
4977 ___deadline: zx::MonotonicInstant,
4978 ) -> Result<WlanSoftmacBaseNotifyAssociationCompleteResult, fidl::Error> {
4979 let _response = self.client.send_query::<
4980 WlanSoftmacBaseNotifyAssociationCompleteRequest,
4981 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4982 >(
4983 (assoc_cfg,),
4984 0x436ffe3ba461d6cd,
4985 fidl::encoding::DynamicFlags::empty(),
4986 ___deadline,
4987 )?;
4988 Ok(_response.map(|x| x))
4989 }
4990
4991 pub fn r#clear_association(
4993 &self,
4994 mut payload: &WlanSoftmacBaseClearAssociationRequest,
4995 ___deadline: zx::MonotonicInstant,
4996 ) -> Result<WlanSoftmacBaseClearAssociationResult, fidl::Error> {
4997 let _response = self.client.send_query::<
4998 WlanSoftmacBaseClearAssociationRequest,
4999 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5000 >(
5001 payload,
5002 0x581d76c39190a7dd,
5003 fidl::encoding::DynamicFlags::empty(),
5004 ___deadline,
5005 )?;
5006 Ok(_response.map(|x| x))
5007 }
5008
5009 pub fn r#start_passive_scan(
5023 &self,
5024 mut payload: &WlanSoftmacBaseStartPassiveScanRequest,
5025 ___deadline: zx::MonotonicInstant,
5026 ) -> Result<WlanSoftmacBaseStartPassiveScanResult, fidl::Error> {
5027 let _response = self.client.send_query::<
5028 WlanSoftmacBaseStartPassiveScanRequest,
5029 fidl::encoding::ResultType<WlanSoftmacBaseStartPassiveScanResponse, i32>,
5030 >(
5031 payload,
5032 0x5662f989cb4083bb,
5033 fidl::encoding::DynamicFlags::empty(),
5034 ___deadline,
5035 )?;
5036 Ok(_response.map(|x| x))
5037 }
5038
5039 pub fn r#start_active_scan(
5053 &self,
5054 mut payload: &WlanSoftmacStartActiveScanRequest,
5055 ___deadline: zx::MonotonicInstant,
5056 ) -> Result<WlanSoftmacBaseStartActiveScanResult, fidl::Error> {
5057 let _response = self.client.send_query::<
5058 WlanSoftmacStartActiveScanRequest,
5059 fidl::encoding::ResultType<WlanSoftmacBaseStartActiveScanResponse, i32>,
5060 >(
5061 payload,
5062 0x4896eafa9937751e,
5063 fidl::encoding::DynamicFlags::empty(),
5064 ___deadline,
5065 )?;
5066 Ok(_response.map(|x| x))
5067 }
5068
5069 pub fn r#cancel_scan(
5083 &self,
5084 mut payload: &WlanSoftmacBaseCancelScanRequest,
5085 ___deadline: zx::MonotonicInstant,
5086 ) -> Result<WlanSoftmacBaseCancelScanResult, fidl::Error> {
5087 let _response = self.client.send_query::<
5088 WlanSoftmacBaseCancelScanRequest,
5089 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5090 >(
5091 payload,
5092 0xf7d859369764556,
5093 fidl::encoding::DynamicFlags::empty(),
5094 ___deadline,
5095 )?;
5096 Ok(_response.map(|x| x))
5097 }
5098
5099 pub fn r#update_wmm_parameters(
5102 &self,
5103 mut payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
5104 ___deadline: zx::MonotonicInstant,
5105 ) -> Result<WlanSoftmacBaseUpdateWmmParametersResult, fidl::Error> {
5106 let _response = self.client.send_query::<
5107 WlanSoftmacBaseUpdateWmmParametersRequest,
5108 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5109 >(
5110 payload,
5111 0x68522c7122d5f78c,
5112 fidl::encoding::DynamicFlags::empty(),
5113 ___deadline,
5114 )?;
5115 Ok(_response.map(|x| x))
5116 }
5117
5118 pub fn r#start(
5158 &self,
5159 mut ifc_bridge: fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
5160 mut ethernet_tx: u64,
5161 mut wlan_rx: u64,
5162 ___deadline: zx::MonotonicInstant,
5163 ) -> Result<WlanSoftmacBridgeStartResult, fidl::Error> {
5164 let _response = self.client.send_query::<
5165 WlanSoftmacBridgeStartRequest,
5166 fidl::encoding::ResultType<WlanSoftmacBridgeStartResponse, i32>,
5167 >(
5168 (ifc_bridge, ethernet_tx, wlan_rx,),
5169 0x7b2c15a507020d4d,
5170 fidl::encoding::DynamicFlags::empty(),
5171 ___deadline,
5172 )?;
5173 Ok(_response.map(|x| x.sme_channel))
5174 }
5175
5176 pub fn r#set_ethernet_status(
5194 &self,
5195 mut status: u32,
5196 ___deadline: zx::MonotonicInstant,
5197 ) -> Result<(), fidl::Error> {
5198 let _response = self
5199 .client
5200 .send_query::<WlanSoftmacBridgeSetEthernetStatusRequest, fidl::encoding::EmptyPayload>(
5201 (status,),
5202 0x412503cb3aaa350b,
5203 fidl::encoding::DynamicFlags::empty(),
5204 ___deadline,
5205 )?;
5206 Ok(_response)
5207 }
5208}
5209
5210#[cfg(target_os = "fuchsia")]
5211impl From<WlanSoftmacBridgeSynchronousProxy> for zx::Handle {
5212 fn from(value: WlanSoftmacBridgeSynchronousProxy) -> Self {
5213 value.into_channel().into()
5214 }
5215}
5216
5217#[cfg(target_os = "fuchsia")]
5218impl From<fidl::Channel> for WlanSoftmacBridgeSynchronousProxy {
5219 fn from(value: fidl::Channel) -> Self {
5220 Self::new(value)
5221 }
5222}
5223
5224#[derive(Debug, Clone)]
5225pub struct WlanSoftmacBridgeProxy {
5226 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
5227}
5228
5229impl fidl::endpoints::Proxy for WlanSoftmacBridgeProxy {
5230 type Protocol = WlanSoftmacBridgeMarker;
5231
5232 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
5233 Self::new(inner)
5234 }
5235
5236 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
5237 self.client.into_channel().map_err(|client| Self { client })
5238 }
5239
5240 fn as_channel(&self) -> &::fidl::AsyncChannel {
5241 self.client.as_channel()
5242 }
5243}
5244
5245impl WlanSoftmacBridgeProxy {
5246 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
5248 let protocol_name =
5249 <WlanSoftmacBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
5250 Self { client: fidl::client::Client::new(channel, protocol_name) }
5251 }
5252
5253 pub fn take_event_stream(&self) -> WlanSoftmacBridgeEventStream {
5259 WlanSoftmacBridgeEventStream { event_receiver: self.client.take_event_receiver() }
5260 }
5261
5262 pub fn r#query(
5270 &self,
5271 ) -> fidl::client::QueryResponseFut<
5272 WlanSoftmacBaseQueryResult,
5273 fidl::encoding::DefaultFuchsiaResourceDialect,
5274 > {
5275 WlanSoftmacBridgeProxyInterface::r#query(self)
5276 }
5277
5278 pub fn r#query_discovery_support(
5282 &self,
5283 ) -> fidl::client::QueryResponseFut<
5284 WlanSoftmacBaseQueryDiscoverySupportResult,
5285 fidl::encoding::DefaultFuchsiaResourceDialect,
5286 > {
5287 WlanSoftmacBridgeProxyInterface::r#query_discovery_support(self)
5288 }
5289
5290 pub fn r#query_mac_sublayer_support(
5298 &self,
5299 ) -> fidl::client::QueryResponseFut<
5300 WlanSoftmacBaseQueryMacSublayerSupportResult,
5301 fidl::encoding::DefaultFuchsiaResourceDialect,
5302 > {
5303 WlanSoftmacBridgeProxyInterface::r#query_mac_sublayer_support(self)
5304 }
5305
5306 pub fn r#query_security_support(
5309 &self,
5310 ) -> fidl::client::QueryResponseFut<
5311 WlanSoftmacBaseQuerySecuritySupportResult,
5312 fidl::encoding::DefaultFuchsiaResourceDialect,
5313 > {
5314 WlanSoftmacBridgeProxyInterface::r#query_security_support(self)
5315 }
5316
5317 pub fn r#query_spectrum_management_support(
5321 &self,
5322 ) -> fidl::client::QueryResponseFut<
5323 WlanSoftmacBaseQuerySpectrumManagementSupportResult,
5324 fidl::encoding::DefaultFuchsiaResourceDialect,
5325 > {
5326 WlanSoftmacBridgeProxyInterface::r#query_spectrum_management_support(self)
5327 }
5328
5329 pub fn r#set_channel(
5337 &self,
5338 mut payload: &WlanSoftmacBaseSetChannelRequest,
5339 ) -> fidl::client::QueryResponseFut<
5340 WlanSoftmacBaseSetChannelResult,
5341 fidl::encoding::DefaultFuchsiaResourceDialect,
5342 > {
5343 WlanSoftmacBridgeProxyInterface::r#set_channel(self, payload)
5344 }
5345
5346 pub fn r#join_bss(
5356 &self,
5357 mut join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
5358 ) -> fidl::client::QueryResponseFut<
5359 WlanSoftmacBaseJoinBssResult,
5360 fidl::encoding::DefaultFuchsiaResourceDialect,
5361 > {
5362 WlanSoftmacBridgeProxyInterface::r#join_bss(self, join_request)
5363 }
5364
5365 pub fn r#enable_beaconing(
5380 &self,
5381 mut payload: &WlanSoftmacBaseEnableBeaconingRequest,
5382 ) -> fidl::client::QueryResponseFut<
5383 WlanSoftmacBaseEnableBeaconingResult,
5384 fidl::encoding::DefaultFuchsiaResourceDialect,
5385 > {
5386 WlanSoftmacBridgeProxyInterface::r#enable_beaconing(self, payload)
5387 }
5388
5389 pub fn r#disable_beaconing(
5391 &self,
5392 ) -> fidl::client::QueryResponseFut<
5393 WlanSoftmacBaseDisableBeaconingResult,
5394 fidl::encoding::DefaultFuchsiaResourceDialect,
5395 > {
5396 WlanSoftmacBridgeProxyInterface::r#disable_beaconing(self)
5397 }
5398
5399 pub fn r#install_key(
5406 &self,
5407 mut payload: &WlanKeyConfiguration,
5408 ) -> fidl::client::QueryResponseFut<
5409 WlanSoftmacBaseInstallKeyResult,
5410 fidl::encoding::DefaultFuchsiaResourceDialect,
5411 > {
5412 WlanSoftmacBridgeProxyInterface::r#install_key(self, payload)
5413 }
5414
5415 pub fn r#notify_association_complete(
5425 &self,
5426 mut assoc_cfg: &WlanAssociationConfig,
5427 ) -> fidl::client::QueryResponseFut<
5428 WlanSoftmacBaseNotifyAssociationCompleteResult,
5429 fidl::encoding::DefaultFuchsiaResourceDialect,
5430 > {
5431 WlanSoftmacBridgeProxyInterface::r#notify_association_complete(self, assoc_cfg)
5432 }
5433
5434 pub fn r#clear_association(
5436 &self,
5437 mut payload: &WlanSoftmacBaseClearAssociationRequest,
5438 ) -> fidl::client::QueryResponseFut<
5439 WlanSoftmacBaseClearAssociationResult,
5440 fidl::encoding::DefaultFuchsiaResourceDialect,
5441 > {
5442 WlanSoftmacBridgeProxyInterface::r#clear_association(self, payload)
5443 }
5444
5445 pub fn r#start_passive_scan(
5459 &self,
5460 mut payload: &WlanSoftmacBaseStartPassiveScanRequest,
5461 ) -> fidl::client::QueryResponseFut<
5462 WlanSoftmacBaseStartPassiveScanResult,
5463 fidl::encoding::DefaultFuchsiaResourceDialect,
5464 > {
5465 WlanSoftmacBridgeProxyInterface::r#start_passive_scan(self, payload)
5466 }
5467
5468 pub fn r#start_active_scan(
5482 &self,
5483 mut payload: &WlanSoftmacStartActiveScanRequest,
5484 ) -> fidl::client::QueryResponseFut<
5485 WlanSoftmacBaseStartActiveScanResult,
5486 fidl::encoding::DefaultFuchsiaResourceDialect,
5487 > {
5488 WlanSoftmacBridgeProxyInterface::r#start_active_scan(self, payload)
5489 }
5490
5491 pub fn r#cancel_scan(
5505 &self,
5506 mut payload: &WlanSoftmacBaseCancelScanRequest,
5507 ) -> fidl::client::QueryResponseFut<
5508 WlanSoftmacBaseCancelScanResult,
5509 fidl::encoding::DefaultFuchsiaResourceDialect,
5510 > {
5511 WlanSoftmacBridgeProxyInterface::r#cancel_scan(self, payload)
5512 }
5513
5514 pub fn r#update_wmm_parameters(
5517 &self,
5518 mut payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
5519 ) -> fidl::client::QueryResponseFut<
5520 WlanSoftmacBaseUpdateWmmParametersResult,
5521 fidl::encoding::DefaultFuchsiaResourceDialect,
5522 > {
5523 WlanSoftmacBridgeProxyInterface::r#update_wmm_parameters(self, payload)
5524 }
5525
5526 pub fn r#start(
5566 &self,
5567 mut ifc_bridge: fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
5568 mut ethernet_tx: u64,
5569 mut wlan_rx: u64,
5570 ) -> fidl::client::QueryResponseFut<
5571 WlanSoftmacBridgeStartResult,
5572 fidl::encoding::DefaultFuchsiaResourceDialect,
5573 > {
5574 WlanSoftmacBridgeProxyInterface::r#start(self, ifc_bridge, ethernet_tx, wlan_rx)
5575 }
5576
5577 pub fn r#set_ethernet_status(
5595 &self,
5596 mut status: u32,
5597 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
5598 WlanSoftmacBridgeProxyInterface::r#set_ethernet_status(self, status)
5599 }
5600}
5601
5602impl WlanSoftmacBridgeProxyInterface for WlanSoftmacBridgeProxy {
5603 type QueryResponseFut = fidl::client::QueryResponseFut<
5604 WlanSoftmacBaseQueryResult,
5605 fidl::encoding::DefaultFuchsiaResourceDialect,
5606 >;
5607 fn r#query(&self) -> Self::QueryResponseFut {
5608 fn _decode(
5609 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5610 ) -> Result<WlanSoftmacBaseQueryResult, fidl::Error> {
5611 let _response = fidl::client::decode_transaction_body::<
5612 fidl::encoding::ResultType<WlanSoftmacQueryResponse, i32>,
5613 fidl::encoding::DefaultFuchsiaResourceDialect,
5614 0x18231a638e508f9d,
5615 >(_buf?)?;
5616 Ok(_response.map(|x| x))
5617 }
5618 self.client
5619 .send_query_and_decode::<fidl::encoding::EmptyPayload, WlanSoftmacBaseQueryResult>(
5620 (),
5621 0x18231a638e508f9d,
5622 fidl::encoding::DynamicFlags::empty(),
5623 _decode,
5624 )
5625 }
5626
5627 type QueryDiscoverySupportResponseFut = fidl::client::QueryResponseFut<
5628 WlanSoftmacBaseQueryDiscoverySupportResult,
5629 fidl::encoding::DefaultFuchsiaResourceDialect,
5630 >;
5631 fn r#query_discovery_support(&self) -> Self::QueryDiscoverySupportResponseFut {
5632 fn _decode(
5633 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5634 ) -> Result<WlanSoftmacBaseQueryDiscoverySupportResult, fidl::Error> {
5635 let _response = fidl::client::decode_transaction_body::<
5636 fidl::encoding::ResultType<WlanSoftmacBaseQueryDiscoverySupportResponse, i32>,
5637 fidl::encoding::DefaultFuchsiaResourceDialect,
5638 0x16797affc0cb58ae,
5639 >(_buf?)?;
5640 Ok(_response.map(|x| x.resp))
5641 }
5642 self.client.send_query_and_decode::<
5643 fidl::encoding::EmptyPayload,
5644 WlanSoftmacBaseQueryDiscoverySupportResult,
5645 >(
5646 (),
5647 0x16797affc0cb58ae,
5648 fidl::encoding::DynamicFlags::empty(),
5649 _decode,
5650 )
5651 }
5652
5653 type QueryMacSublayerSupportResponseFut = fidl::client::QueryResponseFut<
5654 WlanSoftmacBaseQueryMacSublayerSupportResult,
5655 fidl::encoding::DefaultFuchsiaResourceDialect,
5656 >;
5657 fn r#query_mac_sublayer_support(&self) -> Self::QueryMacSublayerSupportResponseFut {
5658 fn _decode(
5659 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5660 ) -> Result<WlanSoftmacBaseQueryMacSublayerSupportResult, fidl::Error> {
5661 let _response = fidl::client::decode_transaction_body::<
5662 fidl::encoding::ResultType<WlanSoftmacBaseQueryMacSublayerSupportResponse, i32>,
5663 fidl::encoding::DefaultFuchsiaResourceDialect,
5664 0x7302c3f8c131f075,
5665 >(_buf?)?;
5666 Ok(_response.map(|x| x.resp))
5667 }
5668 self.client.send_query_and_decode::<
5669 fidl::encoding::EmptyPayload,
5670 WlanSoftmacBaseQueryMacSublayerSupportResult,
5671 >(
5672 (),
5673 0x7302c3f8c131f075,
5674 fidl::encoding::DynamicFlags::empty(),
5675 _decode,
5676 )
5677 }
5678
5679 type QuerySecuritySupportResponseFut = fidl::client::QueryResponseFut<
5680 WlanSoftmacBaseQuerySecuritySupportResult,
5681 fidl::encoding::DefaultFuchsiaResourceDialect,
5682 >;
5683 fn r#query_security_support(&self) -> Self::QuerySecuritySupportResponseFut {
5684 fn _decode(
5685 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5686 ) -> Result<WlanSoftmacBaseQuerySecuritySupportResult, fidl::Error> {
5687 let _response = fidl::client::decode_transaction_body::<
5688 fidl::encoding::ResultType<WlanSoftmacBaseQuerySecuritySupportResponse, i32>,
5689 fidl::encoding::DefaultFuchsiaResourceDialect,
5690 0x3691bb75abf6354,
5691 >(_buf?)?;
5692 Ok(_response.map(|x| x.resp))
5693 }
5694 self.client.send_query_and_decode::<
5695 fidl::encoding::EmptyPayload,
5696 WlanSoftmacBaseQuerySecuritySupportResult,
5697 >(
5698 (),
5699 0x3691bb75abf6354,
5700 fidl::encoding::DynamicFlags::empty(),
5701 _decode,
5702 )
5703 }
5704
5705 type QuerySpectrumManagementSupportResponseFut = fidl::client::QueryResponseFut<
5706 WlanSoftmacBaseQuerySpectrumManagementSupportResult,
5707 fidl::encoding::DefaultFuchsiaResourceDialect,
5708 >;
5709 fn r#query_spectrum_management_support(
5710 &self,
5711 ) -> Self::QuerySpectrumManagementSupportResponseFut {
5712 fn _decode(
5713 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5714 ) -> Result<WlanSoftmacBaseQuerySpectrumManagementSupportResult, fidl::Error> {
5715 let _response = fidl::client::decode_transaction_body::<
5716 fidl::encoding::ResultType<
5717 WlanSoftmacBaseQuerySpectrumManagementSupportResponse,
5718 i32,
5719 >,
5720 fidl::encoding::DefaultFuchsiaResourceDialect,
5721 0x347d78dc1d4d27bf,
5722 >(_buf?)?;
5723 Ok(_response.map(|x| x.resp))
5724 }
5725 self.client.send_query_and_decode::<
5726 fidl::encoding::EmptyPayload,
5727 WlanSoftmacBaseQuerySpectrumManagementSupportResult,
5728 >(
5729 (),
5730 0x347d78dc1d4d27bf,
5731 fidl::encoding::DynamicFlags::empty(),
5732 _decode,
5733 )
5734 }
5735
5736 type SetChannelResponseFut = fidl::client::QueryResponseFut<
5737 WlanSoftmacBaseSetChannelResult,
5738 fidl::encoding::DefaultFuchsiaResourceDialect,
5739 >;
5740 fn r#set_channel(
5741 &self,
5742 mut payload: &WlanSoftmacBaseSetChannelRequest,
5743 ) -> Self::SetChannelResponseFut {
5744 fn _decode(
5745 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5746 ) -> Result<WlanSoftmacBaseSetChannelResult, fidl::Error> {
5747 let _response = fidl::client::decode_transaction_body::<
5748 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5749 fidl::encoding::DefaultFuchsiaResourceDialect,
5750 0x12836b533cd63ece,
5751 >(_buf?)?;
5752 Ok(_response.map(|x| x))
5753 }
5754 self.client.send_query_and_decode::<
5755 WlanSoftmacBaseSetChannelRequest,
5756 WlanSoftmacBaseSetChannelResult,
5757 >(
5758 payload,
5759 0x12836b533cd63ece,
5760 fidl::encoding::DynamicFlags::empty(),
5761 _decode,
5762 )
5763 }
5764
5765 type JoinBssResponseFut = fidl::client::QueryResponseFut<
5766 WlanSoftmacBaseJoinBssResult,
5767 fidl::encoding::DefaultFuchsiaResourceDialect,
5768 >;
5769 fn r#join_bss(
5770 &self,
5771 mut join_request: &fidl_fuchsia_wlan_common::JoinBssRequest,
5772 ) -> Self::JoinBssResponseFut {
5773 fn _decode(
5774 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5775 ) -> Result<WlanSoftmacBaseJoinBssResult, fidl::Error> {
5776 let _response = fidl::client::decode_transaction_body::<
5777 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5778 fidl::encoding::DefaultFuchsiaResourceDialect,
5779 0x1336fb5455b77a6e,
5780 >(_buf?)?;
5781 Ok(_response.map(|x| x))
5782 }
5783 self.client
5784 .send_query_and_decode::<WlanSoftmacBaseJoinBssRequest, WlanSoftmacBaseJoinBssResult>(
5785 (join_request,),
5786 0x1336fb5455b77a6e,
5787 fidl::encoding::DynamicFlags::empty(),
5788 _decode,
5789 )
5790 }
5791
5792 type EnableBeaconingResponseFut = fidl::client::QueryResponseFut<
5793 WlanSoftmacBaseEnableBeaconingResult,
5794 fidl::encoding::DefaultFuchsiaResourceDialect,
5795 >;
5796 fn r#enable_beaconing(
5797 &self,
5798 mut payload: &WlanSoftmacBaseEnableBeaconingRequest,
5799 ) -> Self::EnableBeaconingResponseFut {
5800 fn _decode(
5801 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5802 ) -> Result<WlanSoftmacBaseEnableBeaconingResult, fidl::Error> {
5803 let _response = fidl::client::decode_transaction_body::<
5804 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5805 fidl::encoding::DefaultFuchsiaResourceDialect,
5806 0x6c35807632c64576,
5807 >(_buf?)?;
5808 Ok(_response.map(|x| x))
5809 }
5810 self.client.send_query_and_decode::<
5811 WlanSoftmacBaseEnableBeaconingRequest,
5812 WlanSoftmacBaseEnableBeaconingResult,
5813 >(
5814 payload,
5815 0x6c35807632c64576,
5816 fidl::encoding::DynamicFlags::empty(),
5817 _decode,
5818 )
5819 }
5820
5821 type DisableBeaconingResponseFut = fidl::client::QueryResponseFut<
5822 WlanSoftmacBaseDisableBeaconingResult,
5823 fidl::encoding::DefaultFuchsiaResourceDialect,
5824 >;
5825 fn r#disable_beaconing(&self) -> Self::DisableBeaconingResponseFut {
5826 fn _decode(
5827 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5828 ) -> Result<WlanSoftmacBaseDisableBeaconingResult, fidl::Error> {
5829 let _response = fidl::client::decode_transaction_body::<
5830 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5831 fidl::encoding::DefaultFuchsiaResourceDialect,
5832 0x3303b30f99dbb406,
5833 >(_buf?)?;
5834 Ok(_response.map(|x| x))
5835 }
5836 self.client.send_query_and_decode::<
5837 fidl::encoding::EmptyPayload,
5838 WlanSoftmacBaseDisableBeaconingResult,
5839 >(
5840 (),
5841 0x3303b30f99dbb406,
5842 fidl::encoding::DynamicFlags::empty(),
5843 _decode,
5844 )
5845 }
5846
5847 type InstallKeyResponseFut = fidl::client::QueryResponseFut<
5848 WlanSoftmacBaseInstallKeyResult,
5849 fidl::encoding::DefaultFuchsiaResourceDialect,
5850 >;
5851 fn r#install_key(&self, mut payload: &WlanKeyConfiguration) -> Self::InstallKeyResponseFut {
5852 fn _decode(
5853 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5854 ) -> Result<WlanSoftmacBaseInstallKeyResult, fidl::Error> {
5855 let _response = fidl::client::decode_transaction_body::<
5856 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5857 fidl::encoding::DefaultFuchsiaResourceDialect,
5858 0x7decf9b4200b9131,
5859 >(_buf?)?;
5860 Ok(_response.map(|x| x))
5861 }
5862 self.client.send_query_and_decode::<WlanKeyConfiguration, WlanSoftmacBaseInstallKeyResult>(
5863 payload,
5864 0x7decf9b4200b9131,
5865 fidl::encoding::DynamicFlags::empty(),
5866 _decode,
5867 )
5868 }
5869
5870 type NotifyAssociationCompleteResponseFut = fidl::client::QueryResponseFut<
5871 WlanSoftmacBaseNotifyAssociationCompleteResult,
5872 fidl::encoding::DefaultFuchsiaResourceDialect,
5873 >;
5874 fn r#notify_association_complete(
5875 &self,
5876 mut assoc_cfg: &WlanAssociationConfig,
5877 ) -> Self::NotifyAssociationCompleteResponseFut {
5878 fn _decode(
5879 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5880 ) -> Result<WlanSoftmacBaseNotifyAssociationCompleteResult, fidl::Error> {
5881 let _response = fidl::client::decode_transaction_body::<
5882 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5883 fidl::encoding::DefaultFuchsiaResourceDialect,
5884 0x436ffe3ba461d6cd,
5885 >(_buf?)?;
5886 Ok(_response.map(|x| x))
5887 }
5888 self.client.send_query_and_decode::<
5889 WlanSoftmacBaseNotifyAssociationCompleteRequest,
5890 WlanSoftmacBaseNotifyAssociationCompleteResult,
5891 >(
5892 (assoc_cfg,),
5893 0x436ffe3ba461d6cd,
5894 fidl::encoding::DynamicFlags::empty(),
5895 _decode,
5896 )
5897 }
5898
5899 type ClearAssociationResponseFut = fidl::client::QueryResponseFut<
5900 WlanSoftmacBaseClearAssociationResult,
5901 fidl::encoding::DefaultFuchsiaResourceDialect,
5902 >;
5903 fn r#clear_association(
5904 &self,
5905 mut payload: &WlanSoftmacBaseClearAssociationRequest,
5906 ) -> Self::ClearAssociationResponseFut {
5907 fn _decode(
5908 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5909 ) -> Result<WlanSoftmacBaseClearAssociationResult, fidl::Error> {
5910 let _response = fidl::client::decode_transaction_body::<
5911 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5912 fidl::encoding::DefaultFuchsiaResourceDialect,
5913 0x581d76c39190a7dd,
5914 >(_buf?)?;
5915 Ok(_response.map(|x| x))
5916 }
5917 self.client.send_query_and_decode::<
5918 WlanSoftmacBaseClearAssociationRequest,
5919 WlanSoftmacBaseClearAssociationResult,
5920 >(
5921 payload,
5922 0x581d76c39190a7dd,
5923 fidl::encoding::DynamicFlags::empty(),
5924 _decode,
5925 )
5926 }
5927
5928 type StartPassiveScanResponseFut = fidl::client::QueryResponseFut<
5929 WlanSoftmacBaseStartPassiveScanResult,
5930 fidl::encoding::DefaultFuchsiaResourceDialect,
5931 >;
5932 fn r#start_passive_scan(
5933 &self,
5934 mut payload: &WlanSoftmacBaseStartPassiveScanRequest,
5935 ) -> Self::StartPassiveScanResponseFut {
5936 fn _decode(
5937 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5938 ) -> Result<WlanSoftmacBaseStartPassiveScanResult, fidl::Error> {
5939 let _response = fidl::client::decode_transaction_body::<
5940 fidl::encoding::ResultType<WlanSoftmacBaseStartPassiveScanResponse, i32>,
5941 fidl::encoding::DefaultFuchsiaResourceDialect,
5942 0x5662f989cb4083bb,
5943 >(_buf?)?;
5944 Ok(_response.map(|x| x))
5945 }
5946 self.client.send_query_and_decode::<
5947 WlanSoftmacBaseStartPassiveScanRequest,
5948 WlanSoftmacBaseStartPassiveScanResult,
5949 >(
5950 payload,
5951 0x5662f989cb4083bb,
5952 fidl::encoding::DynamicFlags::empty(),
5953 _decode,
5954 )
5955 }
5956
5957 type StartActiveScanResponseFut = fidl::client::QueryResponseFut<
5958 WlanSoftmacBaseStartActiveScanResult,
5959 fidl::encoding::DefaultFuchsiaResourceDialect,
5960 >;
5961 fn r#start_active_scan(
5962 &self,
5963 mut payload: &WlanSoftmacStartActiveScanRequest,
5964 ) -> Self::StartActiveScanResponseFut {
5965 fn _decode(
5966 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5967 ) -> Result<WlanSoftmacBaseStartActiveScanResult, fidl::Error> {
5968 let _response = fidl::client::decode_transaction_body::<
5969 fidl::encoding::ResultType<WlanSoftmacBaseStartActiveScanResponse, i32>,
5970 fidl::encoding::DefaultFuchsiaResourceDialect,
5971 0x4896eafa9937751e,
5972 >(_buf?)?;
5973 Ok(_response.map(|x| x))
5974 }
5975 self.client.send_query_and_decode::<
5976 WlanSoftmacStartActiveScanRequest,
5977 WlanSoftmacBaseStartActiveScanResult,
5978 >(
5979 payload,
5980 0x4896eafa9937751e,
5981 fidl::encoding::DynamicFlags::empty(),
5982 _decode,
5983 )
5984 }
5985
5986 type CancelScanResponseFut = fidl::client::QueryResponseFut<
5987 WlanSoftmacBaseCancelScanResult,
5988 fidl::encoding::DefaultFuchsiaResourceDialect,
5989 >;
5990 fn r#cancel_scan(
5991 &self,
5992 mut payload: &WlanSoftmacBaseCancelScanRequest,
5993 ) -> Self::CancelScanResponseFut {
5994 fn _decode(
5995 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5996 ) -> Result<WlanSoftmacBaseCancelScanResult, fidl::Error> {
5997 let _response = fidl::client::decode_transaction_body::<
5998 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
5999 fidl::encoding::DefaultFuchsiaResourceDialect,
6000 0xf7d859369764556,
6001 >(_buf?)?;
6002 Ok(_response.map(|x| x))
6003 }
6004 self.client.send_query_and_decode::<
6005 WlanSoftmacBaseCancelScanRequest,
6006 WlanSoftmacBaseCancelScanResult,
6007 >(
6008 payload,
6009 0xf7d859369764556,
6010 fidl::encoding::DynamicFlags::empty(),
6011 _decode,
6012 )
6013 }
6014
6015 type UpdateWmmParametersResponseFut = fidl::client::QueryResponseFut<
6016 WlanSoftmacBaseUpdateWmmParametersResult,
6017 fidl::encoding::DefaultFuchsiaResourceDialect,
6018 >;
6019 fn r#update_wmm_parameters(
6020 &self,
6021 mut payload: &WlanSoftmacBaseUpdateWmmParametersRequest,
6022 ) -> Self::UpdateWmmParametersResponseFut {
6023 fn _decode(
6024 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6025 ) -> Result<WlanSoftmacBaseUpdateWmmParametersResult, fidl::Error> {
6026 let _response = fidl::client::decode_transaction_body::<
6027 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
6028 fidl::encoding::DefaultFuchsiaResourceDialect,
6029 0x68522c7122d5f78c,
6030 >(_buf?)?;
6031 Ok(_response.map(|x| x))
6032 }
6033 self.client.send_query_and_decode::<
6034 WlanSoftmacBaseUpdateWmmParametersRequest,
6035 WlanSoftmacBaseUpdateWmmParametersResult,
6036 >(
6037 payload,
6038 0x68522c7122d5f78c,
6039 fidl::encoding::DynamicFlags::empty(),
6040 _decode,
6041 )
6042 }
6043
6044 type StartResponseFut = fidl::client::QueryResponseFut<
6045 WlanSoftmacBridgeStartResult,
6046 fidl::encoding::DefaultFuchsiaResourceDialect,
6047 >;
6048 fn r#start(
6049 &self,
6050 mut ifc_bridge: fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
6051 mut ethernet_tx: u64,
6052 mut wlan_rx: u64,
6053 ) -> Self::StartResponseFut {
6054 fn _decode(
6055 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6056 ) -> Result<WlanSoftmacBridgeStartResult, fidl::Error> {
6057 let _response = fidl::client::decode_transaction_body::<
6058 fidl::encoding::ResultType<WlanSoftmacBridgeStartResponse, i32>,
6059 fidl::encoding::DefaultFuchsiaResourceDialect,
6060 0x7b2c15a507020d4d,
6061 >(_buf?)?;
6062 Ok(_response.map(|x| x.sme_channel))
6063 }
6064 self.client
6065 .send_query_and_decode::<WlanSoftmacBridgeStartRequest, WlanSoftmacBridgeStartResult>(
6066 (ifc_bridge, ethernet_tx, wlan_rx),
6067 0x7b2c15a507020d4d,
6068 fidl::encoding::DynamicFlags::empty(),
6069 _decode,
6070 )
6071 }
6072
6073 type SetEthernetStatusResponseFut =
6074 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
6075 fn r#set_ethernet_status(&self, mut status: u32) -> Self::SetEthernetStatusResponseFut {
6076 fn _decode(
6077 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6078 ) -> Result<(), fidl::Error> {
6079 let _response = fidl::client::decode_transaction_body::<
6080 fidl::encoding::EmptyPayload,
6081 fidl::encoding::DefaultFuchsiaResourceDialect,
6082 0x412503cb3aaa350b,
6083 >(_buf?)?;
6084 Ok(_response)
6085 }
6086 self.client.send_query_and_decode::<WlanSoftmacBridgeSetEthernetStatusRequest, ()>(
6087 (status,),
6088 0x412503cb3aaa350b,
6089 fidl::encoding::DynamicFlags::empty(),
6090 _decode,
6091 )
6092 }
6093}
6094
6095pub struct WlanSoftmacBridgeEventStream {
6096 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
6097}
6098
6099impl std::marker::Unpin for WlanSoftmacBridgeEventStream {}
6100
6101impl futures::stream::FusedStream for WlanSoftmacBridgeEventStream {
6102 fn is_terminated(&self) -> bool {
6103 self.event_receiver.is_terminated()
6104 }
6105}
6106
6107impl futures::Stream for WlanSoftmacBridgeEventStream {
6108 type Item = Result<WlanSoftmacBridgeEvent, fidl::Error>;
6109
6110 fn poll_next(
6111 mut self: std::pin::Pin<&mut Self>,
6112 cx: &mut std::task::Context<'_>,
6113 ) -> std::task::Poll<Option<Self::Item>> {
6114 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
6115 &mut self.event_receiver,
6116 cx
6117 )?) {
6118 Some(buf) => std::task::Poll::Ready(Some(WlanSoftmacBridgeEvent::decode(buf))),
6119 None => std::task::Poll::Ready(None),
6120 }
6121 }
6122}
6123
6124#[derive(Debug)]
6125pub enum WlanSoftmacBridgeEvent {}
6126
6127impl WlanSoftmacBridgeEvent {
6128 fn decode(
6130 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
6131 ) -> Result<WlanSoftmacBridgeEvent, fidl::Error> {
6132 let (bytes, _handles) = buf.split_mut();
6133 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
6134 debug_assert_eq!(tx_header.tx_id, 0);
6135 match tx_header.ordinal {
6136 _ => Err(fidl::Error::UnknownOrdinal {
6137 ordinal: tx_header.ordinal,
6138 protocol_name:
6139 <WlanSoftmacBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
6140 }),
6141 }
6142 }
6143}
6144
6145pub struct WlanSoftmacBridgeRequestStream {
6147 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
6148 is_terminated: bool,
6149}
6150
6151impl std::marker::Unpin for WlanSoftmacBridgeRequestStream {}
6152
6153impl futures::stream::FusedStream for WlanSoftmacBridgeRequestStream {
6154 fn is_terminated(&self) -> bool {
6155 self.is_terminated
6156 }
6157}
6158
6159impl fidl::endpoints::RequestStream for WlanSoftmacBridgeRequestStream {
6160 type Protocol = WlanSoftmacBridgeMarker;
6161 type ControlHandle = WlanSoftmacBridgeControlHandle;
6162
6163 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
6164 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
6165 }
6166
6167 fn control_handle(&self) -> Self::ControlHandle {
6168 WlanSoftmacBridgeControlHandle { inner: self.inner.clone() }
6169 }
6170
6171 fn into_inner(
6172 self,
6173 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
6174 {
6175 (self.inner, self.is_terminated)
6176 }
6177
6178 fn from_inner(
6179 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
6180 is_terminated: bool,
6181 ) -> Self {
6182 Self { inner, is_terminated }
6183 }
6184}
6185
6186impl futures::Stream for WlanSoftmacBridgeRequestStream {
6187 type Item = Result<WlanSoftmacBridgeRequest, fidl::Error>;
6188
6189 fn poll_next(
6190 mut self: std::pin::Pin<&mut Self>,
6191 cx: &mut std::task::Context<'_>,
6192 ) -> std::task::Poll<Option<Self::Item>> {
6193 let this = &mut *self;
6194 if this.inner.check_shutdown(cx) {
6195 this.is_terminated = true;
6196 return std::task::Poll::Ready(None);
6197 }
6198 if this.is_terminated {
6199 panic!("polled WlanSoftmacBridgeRequestStream after completion");
6200 }
6201 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
6202 |bytes, handles| {
6203 match this.inner.channel().read_etc(cx, bytes, handles) {
6204 std::task::Poll::Ready(Ok(())) => {}
6205 std::task::Poll::Pending => return std::task::Poll::Pending,
6206 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
6207 this.is_terminated = true;
6208 return std::task::Poll::Ready(None);
6209 }
6210 std::task::Poll::Ready(Err(e)) => {
6211 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
6212 e.into(),
6213 ))))
6214 }
6215 }
6216
6217 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
6219
6220 std::task::Poll::Ready(Some(match header.ordinal {
6221 0x18231a638e508f9d => {
6222 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6223 let mut req = fidl::new_empty!(
6224 fidl::encoding::EmptyPayload,
6225 fidl::encoding::DefaultFuchsiaResourceDialect
6226 );
6227 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6228 let control_handle =
6229 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6230 Ok(WlanSoftmacBridgeRequest::Query {
6231 responder: WlanSoftmacBridgeQueryResponder {
6232 control_handle: std::mem::ManuallyDrop::new(control_handle),
6233 tx_id: header.tx_id,
6234 },
6235 })
6236 }
6237 0x16797affc0cb58ae => {
6238 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6239 let mut req = fidl::new_empty!(
6240 fidl::encoding::EmptyPayload,
6241 fidl::encoding::DefaultFuchsiaResourceDialect
6242 );
6243 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6244 let control_handle =
6245 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6246 Ok(WlanSoftmacBridgeRequest::QueryDiscoverySupport {
6247 responder: WlanSoftmacBridgeQueryDiscoverySupportResponder {
6248 control_handle: std::mem::ManuallyDrop::new(control_handle),
6249 tx_id: header.tx_id,
6250 },
6251 })
6252 }
6253 0x7302c3f8c131f075 => {
6254 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6255 let mut req = fidl::new_empty!(
6256 fidl::encoding::EmptyPayload,
6257 fidl::encoding::DefaultFuchsiaResourceDialect
6258 );
6259 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6260 let control_handle =
6261 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6262 Ok(WlanSoftmacBridgeRequest::QueryMacSublayerSupport {
6263 responder: WlanSoftmacBridgeQueryMacSublayerSupportResponder {
6264 control_handle: std::mem::ManuallyDrop::new(control_handle),
6265 tx_id: header.tx_id,
6266 },
6267 })
6268 }
6269 0x3691bb75abf6354 => {
6270 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6271 let mut req = fidl::new_empty!(
6272 fidl::encoding::EmptyPayload,
6273 fidl::encoding::DefaultFuchsiaResourceDialect
6274 );
6275 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6276 let control_handle =
6277 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6278 Ok(WlanSoftmacBridgeRequest::QuerySecuritySupport {
6279 responder: WlanSoftmacBridgeQuerySecuritySupportResponder {
6280 control_handle: std::mem::ManuallyDrop::new(control_handle),
6281 tx_id: header.tx_id,
6282 },
6283 })
6284 }
6285 0x347d78dc1d4d27bf => {
6286 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6287 let mut req = fidl::new_empty!(
6288 fidl::encoding::EmptyPayload,
6289 fidl::encoding::DefaultFuchsiaResourceDialect
6290 );
6291 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6292 let control_handle =
6293 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6294 Ok(WlanSoftmacBridgeRequest::QuerySpectrumManagementSupport {
6295 responder: WlanSoftmacBridgeQuerySpectrumManagementSupportResponder {
6296 control_handle: std::mem::ManuallyDrop::new(control_handle),
6297 tx_id: header.tx_id,
6298 },
6299 })
6300 }
6301 0x12836b533cd63ece => {
6302 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6303 let mut req = fidl::new_empty!(
6304 WlanSoftmacBaseSetChannelRequest,
6305 fidl::encoding::DefaultFuchsiaResourceDialect
6306 );
6307 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseSetChannelRequest>(&header, _body_bytes, handles, &mut req)?;
6308 let control_handle =
6309 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6310 Ok(WlanSoftmacBridgeRequest::SetChannel {
6311 payload: req,
6312 responder: WlanSoftmacBridgeSetChannelResponder {
6313 control_handle: std::mem::ManuallyDrop::new(control_handle),
6314 tx_id: header.tx_id,
6315 },
6316 })
6317 }
6318 0x1336fb5455b77a6e => {
6319 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6320 let mut req = fidl::new_empty!(
6321 WlanSoftmacBaseJoinBssRequest,
6322 fidl::encoding::DefaultFuchsiaResourceDialect
6323 );
6324 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseJoinBssRequest>(&header, _body_bytes, handles, &mut req)?;
6325 let control_handle =
6326 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6327 Ok(WlanSoftmacBridgeRequest::JoinBss {
6328 join_request: req.join_request,
6329
6330 responder: WlanSoftmacBridgeJoinBssResponder {
6331 control_handle: std::mem::ManuallyDrop::new(control_handle),
6332 tx_id: header.tx_id,
6333 },
6334 })
6335 }
6336 0x6c35807632c64576 => {
6337 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6338 let mut req = fidl::new_empty!(
6339 WlanSoftmacBaseEnableBeaconingRequest,
6340 fidl::encoding::DefaultFuchsiaResourceDialect
6341 );
6342 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseEnableBeaconingRequest>(&header, _body_bytes, handles, &mut req)?;
6343 let control_handle =
6344 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6345 Ok(WlanSoftmacBridgeRequest::EnableBeaconing {
6346 payload: req,
6347 responder: WlanSoftmacBridgeEnableBeaconingResponder {
6348 control_handle: std::mem::ManuallyDrop::new(control_handle),
6349 tx_id: header.tx_id,
6350 },
6351 })
6352 }
6353 0x3303b30f99dbb406 => {
6354 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6355 let mut req = fidl::new_empty!(
6356 fidl::encoding::EmptyPayload,
6357 fidl::encoding::DefaultFuchsiaResourceDialect
6358 );
6359 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6360 let control_handle =
6361 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6362 Ok(WlanSoftmacBridgeRequest::DisableBeaconing {
6363 responder: WlanSoftmacBridgeDisableBeaconingResponder {
6364 control_handle: std::mem::ManuallyDrop::new(control_handle),
6365 tx_id: header.tx_id,
6366 },
6367 })
6368 }
6369 0x7decf9b4200b9131 => {
6370 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6371 let mut req = fidl::new_empty!(
6372 WlanKeyConfiguration,
6373 fidl::encoding::DefaultFuchsiaResourceDialect
6374 );
6375 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanKeyConfiguration>(&header, _body_bytes, handles, &mut req)?;
6376 let control_handle =
6377 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6378 Ok(WlanSoftmacBridgeRequest::InstallKey {
6379 payload: req,
6380 responder: WlanSoftmacBridgeInstallKeyResponder {
6381 control_handle: std::mem::ManuallyDrop::new(control_handle),
6382 tx_id: header.tx_id,
6383 },
6384 })
6385 }
6386 0x436ffe3ba461d6cd => {
6387 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6388 let mut req = fidl::new_empty!(
6389 WlanSoftmacBaseNotifyAssociationCompleteRequest,
6390 fidl::encoding::DefaultFuchsiaResourceDialect
6391 );
6392 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseNotifyAssociationCompleteRequest>(&header, _body_bytes, handles, &mut req)?;
6393 let control_handle =
6394 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6395 Ok(WlanSoftmacBridgeRequest::NotifyAssociationComplete {
6396 assoc_cfg: req.assoc_cfg,
6397
6398 responder: WlanSoftmacBridgeNotifyAssociationCompleteResponder {
6399 control_handle: std::mem::ManuallyDrop::new(control_handle),
6400 tx_id: header.tx_id,
6401 },
6402 })
6403 }
6404 0x581d76c39190a7dd => {
6405 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6406 let mut req = fidl::new_empty!(
6407 WlanSoftmacBaseClearAssociationRequest,
6408 fidl::encoding::DefaultFuchsiaResourceDialect
6409 );
6410 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseClearAssociationRequest>(&header, _body_bytes, handles, &mut req)?;
6411 let control_handle =
6412 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6413 Ok(WlanSoftmacBridgeRequest::ClearAssociation {
6414 payload: req,
6415 responder: WlanSoftmacBridgeClearAssociationResponder {
6416 control_handle: std::mem::ManuallyDrop::new(control_handle),
6417 tx_id: header.tx_id,
6418 },
6419 })
6420 }
6421 0x5662f989cb4083bb => {
6422 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6423 let mut req = fidl::new_empty!(
6424 WlanSoftmacBaseStartPassiveScanRequest,
6425 fidl::encoding::DefaultFuchsiaResourceDialect
6426 );
6427 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseStartPassiveScanRequest>(&header, _body_bytes, handles, &mut req)?;
6428 let control_handle =
6429 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6430 Ok(WlanSoftmacBridgeRequest::StartPassiveScan {
6431 payload: req,
6432 responder: WlanSoftmacBridgeStartPassiveScanResponder {
6433 control_handle: std::mem::ManuallyDrop::new(control_handle),
6434 tx_id: header.tx_id,
6435 },
6436 })
6437 }
6438 0x4896eafa9937751e => {
6439 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6440 let mut req = fidl::new_empty!(
6441 WlanSoftmacStartActiveScanRequest,
6442 fidl::encoding::DefaultFuchsiaResourceDialect
6443 );
6444 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacStartActiveScanRequest>(&header, _body_bytes, handles, &mut req)?;
6445 let control_handle =
6446 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6447 Ok(WlanSoftmacBridgeRequest::StartActiveScan {
6448 payload: req,
6449 responder: WlanSoftmacBridgeStartActiveScanResponder {
6450 control_handle: std::mem::ManuallyDrop::new(control_handle),
6451 tx_id: header.tx_id,
6452 },
6453 })
6454 }
6455 0xf7d859369764556 => {
6456 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6457 let mut req = fidl::new_empty!(
6458 WlanSoftmacBaseCancelScanRequest,
6459 fidl::encoding::DefaultFuchsiaResourceDialect
6460 );
6461 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseCancelScanRequest>(&header, _body_bytes, handles, &mut req)?;
6462 let control_handle =
6463 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6464 Ok(WlanSoftmacBridgeRequest::CancelScan {
6465 payload: req,
6466 responder: WlanSoftmacBridgeCancelScanResponder {
6467 control_handle: std::mem::ManuallyDrop::new(control_handle),
6468 tx_id: header.tx_id,
6469 },
6470 })
6471 }
6472 0x68522c7122d5f78c => {
6473 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6474 let mut req = fidl::new_empty!(
6475 WlanSoftmacBaseUpdateWmmParametersRequest,
6476 fidl::encoding::DefaultFuchsiaResourceDialect
6477 );
6478 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBaseUpdateWmmParametersRequest>(&header, _body_bytes, handles, &mut req)?;
6479 let control_handle =
6480 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6481 Ok(WlanSoftmacBridgeRequest::UpdateWmmParameters {
6482 payload: req,
6483 responder: WlanSoftmacBridgeUpdateWmmParametersResponder {
6484 control_handle: std::mem::ManuallyDrop::new(control_handle),
6485 tx_id: header.tx_id,
6486 },
6487 })
6488 }
6489 0x7b2c15a507020d4d => {
6490 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6491 let mut req = fidl::new_empty!(
6492 WlanSoftmacBridgeStartRequest,
6493 fidl::encoding::DefaultFuchsiaResourceDialect
6494 );
6495 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBridgeStartRequest>(&header, _body_bytes, handles, &mut req)?;
6496 let control_handle =
6497 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6498 Ok(WlanSoftmacBridgeRequest::Start {
6499 ifc_bridge: req.ifc_bridge,
6500 ethernet_tx: req.ethernet_tx,
6501 wlan_rx: req.wlan_rx,
6502
6503 responder: WlanSoftmacBridgeStartResponder {
6504 control_handle: std::mem::ManuallyDrop::new(control_handle),
6505 tx_id: header.tx_id,
6506 },
6507 })
6508 }
6509 0x412503cb3aaa350b => {
6510 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6511 let mut req = fidl::new_empty!(
6512 WlanSoftmacBridgeSetEthernetStatusRequest,
6513 fidl::encoding::DefaultFuchsiaResourceDialect
6514 );
6515 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacBridgeSetEthernetStatusRequest>(&header, _body_bytes, handles, &mut req)?;
6516 let control_handle =
6517 WlanSoftmacBridgeControlHandle { inner: this.inner.clone() };
6518 Ok(WlanSoftmacBridgeRequest::SetEthernetStatus {
6519 status: req.status,
6520
6521 responder: WlanSoftmacBridgeSetEthernetStatusResponder {
6522 control_handle: std::mem::ManuallyDrop::new(control_handle),
6523 tx_id: header.tx_id,
6524 },
6525 })
6526 }
6527 _ => Err(fidl::Error::UnknownOrdinal {
6528 ordinal: header.ordinal,
6529 protocol_name:
6530 <WlanSoftmacBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
6531 }),
6532 }))
6533 },
6534 )
6535 }
6536}
6537
6538#[derive(Debug)]
6542pub enum WlanSoftmacBridgeRequest {
6543 Query { responder: WlanSoftmacBridgeQueryResponder },
6551 QueryDiscoverySupport { responder: WlanSoftmacBridgeQueryDiscoverySupportResponder },
6555 QueryMacSublayerSupport { responder: WlanSoftmacBridgeQueryMacSublayerSupportResponder },
6563 QuerySecuritySupport { responder: WlanSoftmacBridgeQuerySecuritySupportResponder },
6566 QuerySpectrumManagementSupport {
6570 responder: WlanSoftmacBridgeQuerySpectrumManagementSupportResponder,
6571 },
6572 SetChannel {
6580 payload: WlanSoftmacBaseSetChannelRequest,
6581 responder: WlanSoftmacBridgeSetChannelResponder,
6582 },
6583 JoinBss {
6593 join_request: fidl_fuchsia_wlan_common::JoinBssRequest,
6594 responder: WlanSoftmacBridgeJoinBssResponder,
6595 },
6596 EnableBeaconing {
6611 payload: WlanSoftmacBaseEnableBeaconingRequest,
6612 responder: WlanSoftmacBridgeEnableBeaconingResponder,
6613 },
6614 DisableBeaconing { responder: WlanSoftmacBridgeDisableBeaconingResponder },
6616 InstallKey { payload: WlanKeyConfiguration, responder: WlanSoftmacBridgeInstallKeyResponder },
6623 NotifyAssociationComplete {
6633 assoc_cfg: WlanAssociationConfig,
6634 responder: WlanSoftmacBridgeNotifyAssociationCompleteResponder,
6635 },
6636 ClearAssociation {
6638 payload: WlanSoftmacBaseClearAssociationRequest,
6639 responder: WlanSoftmacBridgeClearAssociationResponder,
6640 },
6641 StartPassiveScan {
6655 payload: WlanSoftmacBaseStartPassiveScanRequest,
6656 responder: WlanSoftmacBridgeStartPassiveScanResponder,
6657 },
6658 StartActiveScan {
6672 payload: WlanSoftmacStartActiveScanRequest,
6673 responder: WlanSoftmacBridgeStartActiveScanResponder,
6674 },
6675 CancelScan {
6689 payload: WlanSoftmacBaseCancelScanRequest,
6690 responder: WlanSoftmacBridgeCancelScanResponder,
6691 },
6692 UpdateWmmParameters {
6695 payload: WlanSoftmacBaseUpdateWmmParametersRequest,
6696 responder: WlanSoftmacBridgeUpdateWmmParametersResponder,
6697 },
6698 Start {
6738 ifc_bridge: fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
6739 ethernet_tx: u64,
6740 wlan_rx: u64,
6741 responder: WlanSoftmacBridgeStartResponder,
6742 },
6743 SetEthernetStatus { status: u32, responder: WlanSoftmacBridgeSetEthernetStatusResponder },
6761}
6762
6763impl WlanSoftmacBridgeRequest {
6764 #[allow(irrefutable_let_patterns)]
6765 pub fn into_query(self) -> Option<(WlanSoftmacBridgeQueryResponder)> {
6766 if let WlanSoftmacBridgeRequest::Query { responder } = self {
6767 Some((responder))
6768 } else {
6769 None
6770 }
6771 }
6772
6773 #[allow(irrefutable_let_patterns)]
6774 pub fn into_query_discovery_support(
6775 self,
6776 ) -> Option<(WlanSoftmacBridgeQueryDiscoverySupportResponder)> {
6777 if let WlanSoftmacBridgeRequest::QueryDiscoverySupport { responder } = self {
6778 Some((responder))
6779 } else {
6780 None
6781 }
6782 }
6783
6784 #[allow(irrefutable_let_patterns)]
6785 pub fn into_query_mac_sublayer_support(
6786 self,
6787 ) -> Option<(WlanSoftmacBridgeQueryMacSublayerSupportResponder)> {
6788 if let WlanSoftmacBridgeRequest::QueryMacSublayerSupport { responder } = self {
6789 Some((responder))
6790 } else {
6791 None
6792 }
6793 }
6794
6795 #[allow(irrefutable_let_patterns)]
6796 pub fn into_query_security_support(
6797 self,
6798 ) -> Option<(WlanSoftmacBridgeQuerySecuritySupportResponder)> {
6799 if let WlanSoftmacBridgeRequest::QuerySecuritySupport { responder } = self {
6800 Some((responder))
6801 } else {
6802 None
6803 }
6804 }
6805
6806 #[allow(irrefutable_let_patterns)]
6807 pub fn into_query_spectrum_management_support(
6808 self,
6809 ) -> Option<(WlanSoftmacBridgeQuerySpectrumManagementSupportResponder)> {
6810 if let WlanSoftmacBridgeRequest::QuerySpectrumManagementSupport { responder } = self {
6811 Some((responder))
6812 } else {
6813 None
6814 }
6815 }
6816
6817 #[allow(irrefutable_let_patterns)]
6818 pub fn into_set_channel(
6819 self,
6820 ) -> Option<(WlanSoftmacBaseSetChannelRequest, WlanSoftmacBridgeSetChannelResponder)> {
6821 if let WlanSoftmacBridgeRequest::SetChannel { payload, responder } = self {
6822 Some((payload, responder))
6823 } else {
6824 None
6825 }
6826 }
6827
6828 #[allow(irrefutable_let_patterns)]
6829 pub fn into_join_bss(
6830 self,
6831 ) -> Option<(fidl_fuchsia_wlan_common::JoinBssRequest, WlanSoftmacBridgeJoinBssResponder)> {
6832 if let WlanSoftmacBridgeRequest::JoinBss { join_request, responder } = self {
6833 Some((join_request, responder))
6834 } else {
6835 None
6836 }
6837 }
6838
6839 #[allow(irrefutable_let_patterns)]
6840 pub fn into_enable_beaconing(
6841 self,
6842 ) -> Option<(WlanSoftmacBaseEnableBeaconingRequest, WlanSoftmacBridgeEnableBeaconingResponder)>
6843 {
6844 if let WlanSoftmacBridgeRequest::EnableBeaconing { payload, responder } = self {
6845 Some((payload, responder))
6846 } else {
6847 None
6848 }
6849 }
6850
6851 #[allow(irrefutable_let_patterns)]
6852 pub fn into_disable_beaconing(self) -> Option<(WlanSoftmacBridgeDisableBeaconingResponder)> {
6853 if let WlanSoftmacBridgeRequest::DisableBeaconing { responder } = self {
6854 Some((responder))
6855 } else {
6856 None
6857 }
6858 }
6859
6860 #[allow(irrefutable_let_patterns)]
6861 pub fn into_install_key(
6862 self,
6863 ) -> Option<(WlanKeyConfiguration, WlanSoftmacBridgeInstallKeyResponder)> {
6864 if let WlanSoftmacBridgeRequest::InstallKey { payload, responder } = self {
6865 Some((payload, responder))
6866 } else {
6867 None
6868 }
6869 }
6870
6871 #[allow(irrefutable_let_patterns)]
6872 pub fn into_notify_association_complete(
6873 self,
6874 ) -> Option<(WlanAssociationConfig, WlanSoftmacBridgeNotifyAssociationCompleteResponder)> {
6875 if let WlanSoftmacBridgeRequest::NotifyAssociationComplete { assoc_cfg, responder } = self {
6876 Some((assoc_cfg, responder))
6877 } else {
6878 None
6879 }
6880 }
6881
6882 #[allow(irrefutable_let_patterns)]
6883 pub fn into_clear_association(
6884 self,
6885 ) -> Option<(WlanSoftmacBaseClearAssociationRequest, WlanSoftmacBridgeClearAssociationResponder)>
6886 {
6887 if let WlanSoftmacBridgeRequest::ClearAssociation { payload, responder } = self {
6888 Some((payload, responder))
6889 } else {
6890 None
6891 }
6892 }
6893
6894 #[allow(irrefutable_let_patterns)]
6895 pub fn into_start_passive_scan(
6896 self,
6897 ) -> Option<(WlanSoftmacBaseStartPassiveScanRequest, WlanSoftmacBridgeStartPassiveScanResponder)>
6898 {
6899 if let WlanSoftmacBridgeRequest::StartPassiveScan { payload, responder } = self {
6900 Some((payload, responder))
6901 } else {
6902 None
6903 }
6904 }
6905
6906 #[allow(irrefutable_let_patterns)]
6907 pub fn into_start_active_scan(
6908 self,
6909 ) -> Option<(WlanSoftmacStartActiveScanRequest, WlanSoftmacBridgeStartActiveScanResponder)>
6910 {
6911 if let WlanSoftmacBridgeRequest::StartActiveScan { payload, responder } = self {
6912 Some((payload, responder))
6913 } else {
6914 None
6915 }
6916 }
6917
6918 #[allow(irrefutable_let_patterns)]
6919 pub fn into_cancel_scan(
6920 self,
6921 ) -> Option<(WlanSoftmacBaseCancelScanRequest, WlanSoftmacBridgeCancelScanResponder)> {
6922 if let WlanSoftmacBridgeRequest::CancelScan { payload, responder } = self {
6923 Some((payload, responder))
6924 } else {
6925 None
6926 }
6927 }
6928
6929 #[allow(irrefutable_let_patterns)]
6930 pub fn into_update_wmm_parameters(
6931 self,
6932 ) -> Option<(
6933 WlanSoftmacBaseUpdateWmmParametersRequest,
6934 WlanSoftmacBridgeUpdateWmmParametersResponder,
6935 )> {
6936 if let WlanSoftmacBridgeRequest::UpdateWmmParameters { payload, responder } = self {
6937 Some((payload, responder))
6938 } else {
6939 None
6940 }
6941 }
6942
6943 #[allow(irrefutable_let_patterns)]
6944 pub fn into_start(
6945 self,
6946 ) -> Option<(
6947 fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
6948 u64,
6949 u64,
6950 WlanSoftmacBridgeStartResponder,
6951 )> {
6952 if let WlanSoftmacBridgeRequest::Start { ifc_bridge, ethernet_tx, wlan_rx, responder } =
6953 self
6954 {
6955 Some((ifc_bridge, ethernet_tx, wlan_rx, responder))
6956 } else {
6957 None
6958 }
6959 }
6960
6961 #[allow(irrefutable_let_patterns)]
6962 pub fn into_set_ethernet_status(
6963 self,
6964 ) -> Option<(u32, WlanSoftmacBridgeSetEthernetStatusResponder)> {
6965 if let WlanSoftmacBridgeRequest::SetEthernetStatus { status, responder } = self {
6966 Some((status, responder))
6967 } else {
6968 None
6969 }
6970 }
6971
6972 pub fn method_name(&self) -> &'static str {
6974 match *self {
6975 WlanSoftmacBridgeRequest::Query { .. } => "query",
6976 WlanSoftmacBridgeRequest::QueryDiscoverySupport { .. } => "query_discovery_support",
6977 WlanSoftmacBridgeRequest::QueryMacSublayerSupport { .. } => {
6978 "query_mac_sublayer_support"
6979 }
6980 WlanSoftmacBridgeRequest::QuerySecuritySupport { .. } => "query_security_support",
6981 WlanSoftmacBridgeRequest::QuerySpectrumManagementSupport { .. } => {
6982 "query_spectrum_management_support"
6983 }
6984 WlanSoftmacBridgeRequest::SetChannel { .. } => "set_channel",
6985 WlanSoftmacBridgeRequest::JoinBss { .. } => "join_bss",
6986 WlanSoftmacBridgeRequest::EnableBeaconing { .. } => "enable_beaconing",
6987 WlanSoftmacBridgeRequest::DisableBeaconing { .. } => "disable_beaconing",
6988 WlanSoftmacBridgeRequest::InstallKey { .. } => "install_key",
6989 WlanSoftmacBridgeRequest::NotifyAssociationComplete { .. } => {
6990 "notify_association_complete"
6991 }
6992 WlanSoftmacBridgeRequest::ClearAssociation { .. } => "clear_association",
6993 WlanSoftmacBridgeRequest::StartPassiveScan { .. } => "start_passive_scan",
6994 WlanSoftmacBridgeRequest::StartActiveScan { .. } => "start_active_scan",
6995 WlanSoftmacBridgeRequest::CancelScan { .. } => "cancel_scan",
6996 WlanSoftmacBridgeRequest::UpdateWmmParameters { .. } => "update_wmm_parameters",
6997 WlanSoftmacBridgeRequest::Start { .. } => "start",
6998 WlanSoftmacBridgeRequest::SetEthernetStatus { .. } => "set_ethernet_status",
6999 }
7000 }
7001}
7002
7003#[derive(Debug, Clone)]
7004pub struct WlanSoftmacBridgeControlHandle {
7005 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
7006}
7007
7008impl fidl::endpoints::ControlHandle for WlanSoftmacBridgeControlHandle {
7009 fn shutdown(&self) {
7010 self.inner.shutdown()
7011 }
7012 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
7013 self.inner.shutdown_with_epitaph(status)
7014 }
7015
7016 fn is_closed(&self) -> bool {
7017 self.inner.channel().is_closed()
7018 }
7019 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
7020 self.inner.channel().on_closed()
7021 }
7022
7023 #[cfg(target_os = "fuchsia")]
7024 fn signal_peer(
7025 &self,
7026 clear_mask: zx::Signals,
7027 set_mask: zx::Signals,
7028 ) -> Result<(), zx_status::Status> {
7029 use fidl::Peered;
7030 self.inner.channel().signal_peer(clear_mask, set_mask)
7031 }
7032}
7033
7034impl WlanSoftmacBridgeControlHandle {}
7035
7036#[must_use = "FIDL methods require a response to be sent"]
7037#[derive(Debug)]
7038pub struct WlanSoftmacBridgeQueryResponder {
7039 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7040 tx_id: u32,
7041}
7042
7043impl std::ops::Drop for WlanSoftmacBridgeQueryResponder {
7047 fn drop(&mut self) {
7048 self.control_handle.shutdown();
7049 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7051 }
7052}
7053
7054impl fidl::endpoints::Responder for WlanSoftmacBridgeQueryResponder {
7055 type ControlHandle = WlanSoftmacBridgeControlHandle;
7056
7057 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7058 &self.control_handle
7059 }
7060
7061 fn drop_without_shutdown(mut self) {
7062 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7064 std::mem::forget(self);
7066 }
7067}
7068
7069impl WlanSoftmacBridgeQueryResponder {
7070 pub fn send(
7074 self,
7075 mut result: Result<&WlanSoftmacQueryResponse, i32>,
7076 ) -> Result<(), fidl::Error> {
7077 let _result = self.send_raw(result);
7078 if _result.is_err() {
7079 self.control_handle.shutdown();
7080 }
7081 self.drop_without_shutdown();
7082 _result
7083 }
7084
7085 pub fn send_no_shutdown_on_err(
7087 self,
7088 mut result: Result<&WlanSoftmacQueryResponse, i32>,
7089 ) -> Result<(), fidl::Error> {
7090 let _result = self.send_raw(result);
7091 self.drop_without_shutdown();
7092 _result
7093 }
7094
7095 fn send_raw(
7096 &self,
7097 mut result: Result<&WlanSoftmacQueryResponse, i32>,
7098 ) -> Result<(), fidl::Error> {
7099 self.control_handle.inner.send::<fidl::encoding::ResultType<WlanSoftmacQueryResponse, i32>>(
7100 result,
7101 self.tx_id,
7102 0x18231a638e508f9d,
7103 fidl::encoding::DynamicFlags::empty(),
7104 )
7105 }
7106}
7107
7108#[must_use = "FIDL methods require a response to be sent"]
7109#[derive(Debug)]
7110pub struct WlanSoftmacBridgeQueryDiscoverySupportResponder {
7111 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7112 tx_id: u32,
7113}
7114
7115impl std::ops::Drop for WlanSoftmacBridgeQueryDiscoverySupportResponder {
7119 fn drop(&mut self) {
7120 self.control_handle.shutdown();
7121 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7123 }
7124}
7125
7126impl fidl::endpoints::Responder for WlanSoftmacBridgeQueryDiscoverySupportResponder {
7127 type ControlHandle = WlanSoftmacBridgeControlHandle;
7128
7129 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7130 &self.control_handle
7131 }
7132
7133 fn drop_without_shutdown(mut self) {
7134 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7136 std::mem::forget(self);
7138 }
7139}
7140
7141impl WlanSoftmacBridgeQueryDiscoverySupportResponder {
7142 pub fn send(self, mut result: Result<&DiscoverySupport, i32>) -> Result<(), fidl::Error> {
7146 let _result = self.send_raw(result);
7147 if _result.is_err() {
7148 self.control_handle.shutdown();
7149 }
7150 self.drop_without_shutdown();
7151 _result
7152 }
7153
7154 pub fn send_no_shutdown_on_err(
7156 self,
7157 mut result: Result<&DiscoverySupport, i32>,
7158 ) -> Result<(), fidl::Error> {
7159 let _result = self.send_raw(result);
7160 self.drop_without_shutdown();
7161 _result
7162 }
7163
7164 fn send_raw(&self, mut result: Result<&DiscoverySupport, i32>) -> Result<(), fidl::Error> {
7165 self.control_handle.inner.send::<fidl::encoding::ResultType<
7166 WlanSoftmacBaseQueryDiscoverySupportResponse,
7167 i32,
7168 >>(
7169 result.map(|resp| (resp,)),
7170 self.tx_id,
7171 0x16797affc0cb58ae,
7172 fidl::encoding::DynamicFlags::empty(),
7173 )
7174 }
7175}
7176
7177#[must_use = "FIDL methods require a response to be sent"]
7178#[derive(Debug)]
7179pub struct WlanSoftmacBridgeQueryMacSublayerSupportResponder {
7180 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7181 tx_id: u32,
7182}
7183
7184impl std::ops::Drop for WlanSoftmacBridgeQueryMacSublayerSupportResponder {
7188 fn drop(&mut self) {
7189 self.control_handle.shutdown();
7190 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7192 }
7193}
7194
7195impl fidl::endpoints::Responder for WlanSoftmacBridgeQueryMacSublayerSupportResponder {
7196 type ControlHandle = WlanSoftmacBridgeControlHandle;
7197
7198 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7199 &self.control_handle
7200 }
7201
7202 fn drop_without_shutdown(mut self) {
7203 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7205 std::mem::forget(self);
7207 }
7208}
7209
7210impl WlanSoftmacBridgeQueryMacSublayerSupportResponder {
7211 pub fn send(
7215 self,
7216 mut result: Result<&fidl_fuchsia_wlan_common::MacSublayerSupport, i32>,
7217 ) -> Result<(), fidl::Error> {
7218 let _result = self.send_raw(result);
7219 if _result.is_err() {
7220 self.control_handle.shutdown();
7221 }
7222 self.drop_without_shutdown();
7223 _result
7224 }
7225
7226 pub fn send_no_shutdown_on_err(
7228 self,
7229 mut result: Result<&fidl_fuchsia_wlan_common::MacSublayerSupport, i32>,
7230 ) -> Result<(), fidl::Error> {
7231 let _result = self.send_raw(result);
7232 self.drop_without_shutdown();
7233 _result
7234 }
7235
7236 fn send_raw(
7237 &self,
7238 mut result: Result<&fidl_fuchsia_wlan_common::MacSublayerSupport, i32>,
7239 ) -> Result<(), fidl::Error> {
7240 self.control_handle.inner.send::<fidl::encoding::ResultType<
7241 WlanSoftmacBaseQueryMacSublayerSupportResponse,
7242 i32,
7243 >>(
7244 result.map(|resp| (resp,)),
7245 self.tx_id,
7246 0x7302c3f8c131f075,
7247 fidl::encoding::DynamicFlags::empty(),
7248 )
7249 }
7250}
7251
7252#[must_use = "FIDL methods require a response to be sent"]
7253#[derive(Debug)]
7254pub struct WlanSoftmacBridgeQuerySecuritySupportResponder {
7255 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7256 tx_id: u32,
7257}
7258
7259impl std::ops::Drop for WlanSoftmacBridgeQuerySecuritySupportResponder {
7263 fn drop(&mut self) {
7264 self.control_handle.shutdown();
7265 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7267 }
7268}
7269
7270impl fidl::endpoints::Responder for WlanSoftmacBridgeQuerySecuritySupportResponder {
7271 type ControlHandle = WlanSoftmacBridgeControlHandle;
7272
7273 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7274 &self.control_handle
7275 }
7276
7277 fn drop_without_shutdown(mut self) {
7278 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7280 std::mem::forget(self);
7282 }
7283}
7284
7285impl WlanSoftmacBridgeQuerySecuritySupportResponder {
7286 pub fn send(
7290 self,
7291 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
7292 ) -> Result<(), fidl::Error> {
7293 let _result = self.send_raw(result);
7294 if _result.is_err() {
7295 self.control_handle.shutdown();
7296 }
7297 self.drop_without_shutdown();
7298 _result
7299 }
7300
7301 pub fn send_no_shutdown_on_err(
7303 self,
7304 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
7305 ) -> Result<(), fidl::Error> {
7306 let _result = self.send_raw(result);
7307 self.drop_without_shutdown();
7308 _result
7309 }
7310
7311 fn send_raw(
7312 &self,
7313 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
7314 ) -> Result<(), fidl::Error> {
7315 self.control_handle.inner.send::<fidl::encoding::ResultType<
7316 WlanSoftmacBaseQuerySecuritySupportResponse,
7317 i32,
7318 >>(
7319 result.map(|resp| (resp,)),
7320 self.tx_id,
7321 0x3691bb75abf6354,
7322 fidl::encoding::DynamicFlags::empty(),
7323 )
7324 }
7325}
7326
7327#[must_use = "FIDL methods require a response to be sent"]
7328#[derive(Debug)]
7329pub struct WlanSoftmacBridgeQuerySpectrumManagementSupportResponder {
7330 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7331 tx_id: u32,
7332}
7333
7334impl std::ops::Drop for WlanSoftmacBridgeQuerySpectrumManagementSupportResponder {
7338 fn drop(&mut self) {
7339 self.control_handle.shutdown();
7340 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7342 }
7343}
7344
7345impl fidl::endpoints::Responder for WlanSoftmacBridgeQuerySpectrumManagementSupportResponder {
7346 type ControlHandle = WlanSoftmacBridgeControlHandle;
7347
7348 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7349 &self.control_handle
7350 }
7351
7352 fn drop_without_shutdown(mut self) {
7353 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7355 std::mem::forget(self);
7357 }
7358}
7359
7360impl WlanSoftmacBridgeQuerySpectrumManagementSupportResponder {
7361 pub fn send(
7365 self,
7366 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
7367 ) -> Result<(), fidl::Error> {
7368 let _result = self.send_raw(result);
7369 if _result.is_err() {
7370 self.control_handle.shutdown();
7371 }
7372 self.drop_without_shutdown();
7373 _result
7374 }
7375
7376 pub fn send_no_shutdown_on_err(
7378 self,
7379 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
7380 ) -> Result<(), fidl::Error> {
7381 let _result = self.send_raw(result);
7382 self.drop_without_shutdown();
7383 _result
7384 }
7385
7386 fn send_raw(
7387 &self,
7388 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
7389 ) -> Result<(), fidl::Error> {
7390 self.control_handle.inner.send::<fidl::encoding::ResultType<
7391 WlanSoftmacBaseQuerySpectrumManagementSupportResponse,
7392 i32,
7393 >>(
7394 result.map(|resp| (resp,)),
7395 self.tx_id,
7396 0x347d78dc1d4d27bf,
7397 fidl::encoding::DynamicFlags::empty(),
7398 )
7399 }
7400}
7401
7402#[must_use = "FIDL methods require a response to be sent"]
7403#[derive(Debug)]
7404pub struct WlanSoftmacBridgeSetChannelResponder {
7405 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7406 tx_id: u32,
7407}
7408
7409impl std::ops::Drop for WlanSoftmacBridgeSetChannelResponder {
7413 fn drop(&mut self) {
7414 self.control_handle.shutdown();
7415 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7417 }
7418}
7419
7420impl fidl::endpoints::Responder for WlanSoftmacBridgeSetChannelResponder {
7421 type ControlHandle = WlanSoftmacBridgeControlHandle;
7422
7423 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7424 &self.control_handle
7425 }
7426
7427 fn drop_without_shutdown(mut self) {
7428 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7430 std::mem::forget(self);
7432 }
7433}
7434
7435impl WlanSoftmacBridgeSetChannelResponder {
7436 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7440 let _result = self.send_raw(result);
7441 if _result.is_err() {
7442 self.control_handle.shutdown();
7443 }
7444 self.drop_without_shutdown();
7445 _result
7446 }
7447
7448 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7450 let _result = self.send_raw(result);
7451 self.drop_without_shutdown();
7452 _result
7453 }
7454
7455 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7456 self.control_handle
7457 .inner
7458 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7459 result,
7460 self.tx_id,
7461 0x12836b533cd63ece,
7462 fidl::encoding::DynamicFlags::empty(),
7463 )
7464 }
7465}
7466
7467#[must_use = "FIDL methods require a response to be sent"]
7468#[derive(Debug)]
7469pub struct WlanSoftmacBridgeJoinBssResponder {
7470 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7471 tx_id: u32,
7472}
7473
7474impl std::ops::Drop for WlanSoftmacBridgeJoinBssResponder {
7478 fn drop(&mut self) {
7479 self.control_handle.shutdown();
7480 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7482 }
7483}
7484
7485impl fidl::endpoints::Responder for WlanSoftmacBridgeJoinBssResponder {
7486 type ControlHandle = WlanSoftmacBridgeControlHandle;
7487
7488 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7489 &self.control_handle
7490 }
7491
7492 fn drop_without_shutdown(mut self) {
7493 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7495 std::mem::forget(self);
7497 }
7498}
7499
7500impl WlanSoftmacBridgeJoinBssResponder {
7501 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7505 let _result = self.send_raw(result);
7506 if _result.is_err() {
7507 self.control_handle.shutdown();
7508 }
7509 self.drop_without_shutdown();
7510 _result
7511 }
7512
7513 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7515 let _result = self.send_raw(result);
7516 self.drop_without_shutdown();
7517 _result
7518 }
7519
7520 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7521 self.control_handle
7522 .inner
7523 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7524 result,
7525 self.tx_id,
7526 0x1336fb5455b77a6e,
7527 fidl::encoding::DynamicFlags::empty(),
7528 )
7529 }
7530}
7531
7532#[must_use = "FIDL methods require a response to be sent"]
7533#[derive(Debug)]
7534pub struct WlanSoftmacBridgeEnableBeaconingResponder {
7535 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7536 tx_id: u32,
7537}
7538
7539impl std::ops::Drop for WlanSoftmacBridgeEnableBeaconingResponder {
7543 fn drop(&mut self) {
7544 self.control_handle.shutdown();
7545 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7547 }
7548}
7549
7550impl fidl::endpoints::Responder for WlanSoftmacBridgeEnableBeaconingResponder {
7551 type ControlHandle = WlanSoftmacBridgeControlHandle;
7552
7553 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7554 &self.control_handle
7555 }
7556
7557 fn drop_without_shutdown(mut self) {
7558 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7560 std::mem::forget(self);
7562 }
7563}
7564
7565impl WlanSoftmacBridgeEnableBeaconingResponder {
7566 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7570 let _result = self.send_raw(result);
7571 if _result.is_err() {
7572 self.control_handle.shutdown();
7573 }
7574 self.drop_without_shutdown();
7575 _result
7576 }
7577
7578 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7580 let _result = self.send_raw(result);
7581 self.drop_without_shutdown();
7582 _result
7583 }
7584
7585 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7586 self.control_handle
7587 .inner
7588 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7589 result,
7590 self.tx_id,
7591 0x6c35807632c64576,
7592 fidl::encoding::DynamicFlags::empty(),
7593 )
7594 }
7595}
7596
7597#[must_use = "FIDL methods require a response to be sent"]
7598#[derive(Debug)]
7599pub struct WlanSoftmacBridgeDisableBeaconingResponder {
7600 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7601 tx_id: u32,
7602}
7603
7604impl std::ops::Drop for WlanSoftmacBridgeDisableBeaconingResponder {
7608 fn drop(&mut self) {
7609 self.control_handle.shutdown();
7610 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7612 }
7613}
7614
7615impl fidl::endpoints::Responder for WlanSoftmacBridgeDisableBeaconingResponder {
7616 type ControlHandle = WlanSoftmacBridgeControlHandle;
7617
7618 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7619 &self.control_handle
7620 }
7621
7622 fn drop_without_shutdown(mut self) {
7623 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7625 std::mem::forget(self);
7627 }
7628}
7629
7630impl WlanSoftmacBridgeDisableBeaconingResponder {
7631 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7635 let _result = self.send_raw(result);
7636 if _result.is_err() {
7637 self.control_handle.shutdown();
7638 }
7639 self.drop_without_shutdown();
7640 _result
7641 }
7642
7643 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7645 let _result = self.send_raw(result);
7646 self.drop_without_shutdown();
7647 _result
7648 }
7649
7650 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7651 self.control_handle
7652 .inner
7653 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7654 result,
7655 self.tx_id,
7656 0x3303b30f99dbb406,
7657 fidl::encoding::DynamicFlags::empty(),
7658 )
7659 }
7660}
7661
7662#[must_use = "FIDL methods require a response to be sent"]
7663#[derive(Debug)]
7664pub struct WlanSoftmacBridgeInstallKeyResponder {
7665 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7666 tx_id: u32,
7667}
7668
7669impl std::ops::Drop for WlanSoftmacBridgeInstallKeyResponder {
7673 fn drop(&mut self) {
7674 self.control_handle.shutdown();
7675 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7677 }
7678}
7679
7680impl fidl::endpoints::Responder for WlanSoftmacBridgeInstallKeyResponder {
7681 type ControlHandle = WlanSoftmacBridgeControlHandle;
7682
7683 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7684 &self.control_handle
7685 }
7686
7687 fn drop_without_shutdown(mut self) {
7688 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7690 std::mem::forget(self);
7692 }
7693}
7694
7695impl WlanSoftmacBridgeInstallKeyResponder {
7696 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7700 let _result = self.send_raw(result);
7701 if _result.is_err() {
7702 self.control_handle.shutdown();
7703 }
7704 self.drop_without_shutdown();
7705 _result
7706 }
7707
7708 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7710 let _result = self.send_raw(result);
7711 self.drop_without_shutdown();
7712 _result
7713 }
7714
7715 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7716 self.control_handle
7717 .inner
7718 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7719 result,
7720 self.tx_id,
7721 0x7decf9b4200b9131,
7722 fidl::encoding::DynamicFlags::empty(),
7723 )
7724 }
7725}
7726
7727#[must_use = "FIDL methods require a response to be sent"]
7728#[derive(Debug)]
7729pub struct WlanSoftmacBridgeNotifyAssociationCompleteResponder {
7730 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7731 tx_id: u32,
7732}
7733
7734impl std::ops::Drop for WlanSoftmacBridgeNotifyAssociationCompleteResponder {
7738 fn drop(&mut self) {
7739 self.control_handle.shutdown();
7740 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7742 }
7743}
7744
7745impl fidl::endpoints::Responder for WlanSoftmacBridgeNotifyAssociationCompleteResponder {
7746 type ControlHandle = WlanSoftmacBridgeControlHandle;
7747
7748 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7749 &self.control_handle
7750 }
7751
7752 fn drop_without_shutdown(mut self) {
7753 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7755 std::mem::forget(self);
7757 }
7758}
7759
7760impl WlanSoftmacBridgeNotifyAssociationCompleteResponder {
7761 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7765 let _result = self.send_raw(result);
7766 if _result.is_err() {
7767 self.control_handle.shutdown();
7768 }
7769 self.drop_without_shutdown();
7770 _result
7771 }
7772
7773 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7775 let _result = self.send_raw(result);
7776 self.drop_without_shutdown();
7777 _result
7778 }
7779
7780 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7781 self.control_handle
7782 .inner
7783 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7784 result,
7785 self.tx_id,
7786 0x436ffe3ba461d6cd,
7787 fidl::encoding::DynamicFlags::empty(),
7788 )
7789 }
7790}
7791
7792#[must_use = "FIDL methods require a response to be sent"]
7793#[derive(Debug)]
7794pub struct WlanSoftmacBridgeClearAssociationResponder {
7795 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7796 tx_id: u32,
7797}
7798
7799impl std::ops::Drop for WlanSoftmacBridgeClearAssociationResponder {
7803 fn drop(&mut self) {
7804 self.control_handle.shutdown();
7805 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7807 }
7808}
7809
7810impl fidl::endpoints::Responder for WlanSoftmacBridgeClearAssociationResponder {
7811 type ControlHandle = WlanSoftmacBridgeControlHandle;
7812
7813 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7814 &self.control_handle
7815 }
7816
7817 fn drop_without_shutdown(mut self) {
7818 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7820 std::mem::forget(self);
7822 }
7823}
7824
7825impl WlanSoftmacBridgeClearAssociationResponder {
7826 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7830 let _result = self.send_raw(result);
7831 if _result.is_err() {
7832 self.control_handle.shutdown();
7833 }
7834 self.drop_without_shutdown();
7835 _result
7836 }
7837
7838 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7840 let _result = self.send_raw(result);
7841 self.drop_without_shutdown();
7842 _result
7843 }
7844
7845 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
7846 self.control_handle
7847 .inner
7848 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
7849 result,
7850 self.tx_id,
7851 0x581d76c39190a7dd,
7852 fidl::encoding::DynamicFlags::empty(),
7853 )
7854 }
7855}
7856
7857#[must_use = "FIDL methods require a response to be sent"]
7858#[derive(Debug)]
7859pub struct WlanSoftmacBridgeStartPassiveScanResponder {
7860 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7861 tx_id: u32,
7862}
7863
7864impl std::ops::Drop for WlanSoftmacBridgeStartPassiveScanResponder {
7868 fn drop(&mut self) {
7869 self.control_handle.shutdown();
7870 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7872 }
7873}
7874
7875impl fidl::endpoints::Responder for WlanSoftmacBridgeStartPassiveScanResponder {
7876 type ControlHandle = WlanSoftmacBridgeControlHandle;
7877
7878 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7879 &self.control_handle
7880 }
7881
7882 fn drop_without_shutdown(mut self) {
7883 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7885 std::mem::forget(self);
7887 }
7888}
7889
7890impl WlanSoftmacBridgeStartPassiveScanResponder {
7891 pub fn send(
7895 self,
7896 mut result: Result<&WlanSoftmacBaseStartPassiveScanResponse, i32>,
7897 ) -> Result<(), fidl::Error> {
7898 let _result = self.send_raw(result);
7899 if _result.is_err() {
7900 self.control_handle.shutdown();
7901 }
7902 self.drop_without_shutdown();
7903 _result
7904 }
7905
7906 pub fn send_no_shutdown_on_err(
7908 self,
7909 mut result: Result<&WlanSoftmacBaseStartPassiveScanResponse, i32>,
7910 ) -> Result<(), fidl::Error> {
7911 let _result = self.send_raw(result);
7912 self.drop_without_shutdown();
7913 _result
7914 }
7915
7916 fn send_raw(
7917 &self,
7918 mut result: Result<&WlanSoftmacBaseStartPassiveScanResponse, i32>,
7919 ) -> Result<(), fidl::Error> {
7920 self.control_handle.inner.send::<fidl::encoding::ResultType<
7921 WlanSoftmacBaseStartPassiveScanResponse,
7922 i32,
7923 >>(
7924 result,
7925 self.tx_id,
7926 0x5662f989cb4083bb,
7927 fidl::encoding::DynamicFlags::empty(),
7928 )
7929 }
7930}
7931
7932#[must_use = "FIDL methods require a response to be sent"]
7933#[derive(Debug)]
7934pub struct WlanSoftmacBridgeStartActiveScanResponder {
7935 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
7936 tx_id: u32,
7937}
7938
7939impl std::ops::Drop for WlanSoftmacBridgeStartActiveScanResponder {
7943 fn drop(&mut self) {
7944 self.control_handle.shutdown();
7945 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7947 }
7948}
7949
7950impl fidl::endpoints::Responder for WlanSoftmacBridgeStartActiveScanResponder {
7951 type ControlHandle = WlanSoftmacBridgeControlHandle;
7952
7953 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
7954 &self.control_handle
7955 }
7956
7957 fn drop_without_shutdown(mut self) {
7958 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7960 std::mem::forget(self);
7962 }
7963}
7964
7965impl WlanSoftmacBridgeStartActiveScanResponder {
7966 pub fn send(
7970 self,
7971 mut result: Result<&WlanSoftmacBaseStartActiveScanResponse, i32>,
7972 ) -> Result<(), fidl::Error> {
7973 let _result = self.send_raw(result);
7974 if _result.is_err() {
7975 self.control_handle.shutdown();
7976 }
7977 self.drop_without_shutdown();
7978 _result
7979 }
7980
7981 pub fn send_no_shutdown_on_err(
7983 self,
7984 mut result: Result<&WlanSoftmacBaseStartActiveScanResponse, i32>,
7985 ) -> Result<(), fidl::Error> {
7986 let _result = self.send_raw(result);
7987 self.drop_without_shutdown();
7988 _result
7989 }
7990
7991 fn send_raw(
7992 &self,
7993 mut result: Result<&WlanSoftmacBaseStartActiveScanResponse, i32>,
7994 ) -> Result<(), fidl::Error> {
7995 self.control_handle.inner.send::<fidl::encoding::ResultType<
7996 WlanSoftmacBaseStartActiveScanResponse,
7997 i32,
7998 >>(
7999 result,
8000 self.tx_id,
8001 0x4896eafa9937751e,
8002 fidl::encoding::DynamicFlags::empty(),
8003 )
8004 }
8005}
8006
8007#[must_use = "FIDL methods require a response to be sent"]
8008#[derive(Debug)]
8009pub struct WlanSoftmacBridgeCancelScanResponder {
8010 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
8011 tx_id: u32,
8012}
8013
8014impl std::ops::Drop for WlanSoftmacBridgeCancelScanResponder {
8018 fn drop(&mut self) {
8019 self.control_handle.shutdown();
8020 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8022 }
8023}
8024
8025impl fidl::endpoints::Responder for WlanSoftmacBridgeCancelScanResponder {
8026 type ControlHandle = WlanSoftmacBridgeControlHandle;
8027
8028 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
8029 &self.control_handle
8030 }
8031
8032 fn drop_without_shutdown(mut self) {
8033 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8035 std::mem::forget(self);
8037 }
8038}
8039
8040impl WlanSoftmacBridgeCancelScanResponder {
8041 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
8045 let _result = self.send_raw(result);
8046 if _result.is_err() {
8047 self.control_handle.shutdown();
8048 }
8049 self.drop_without_shutdown();
8050 _result
8051 }
8052
8053 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
8055 let _result = self.send_raw(result);
8056 self.drop_without_shutdown();
8057 _result
8058 }
8059
8060 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
8061 self.control_handle
8062 .inner
8063 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
8064 result,
8065 self.tx_id,
8066 0xf7d859369764556,
8067 fidl::encoding::DynamicFlags::empty(),
8068 )
8069 }
8070}
8071
8072#[must_use = "FIDL methods require a response to be sent"]
8073#[derive(Debug)]
8074pub struct WlanSoftmacBridgeUpdateWmmParametersResponder {
8075 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
8076 tx_id: u32,
8077}
8078
8079impl std::ops::Drop for WlanSoftmacBridgeUpdateWmmParametersResponder {
8083 fn drop(&mut self) {
8084 self.control_handle.shutdown();
8085 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8087 }
8088}
8089
8090impl fidl::endpoints::Responder for WlanSoftmacBridgeUpdateWmmParametersResponder {
8091 type ControlHandle = WlanSoftmacBridgeControlHandle;
8092
8093 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
8094 &self.control_handle
8095 }
8096
8097 fn drop_without_shutdown(mut self) {
8098 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8100 std::mem::forget(self);
8102 }
8103}
8104
8105impl WlanSoftmacBridgeUpdateWmmParametersResponder {
8106 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
8110 let _result = self.send_raw(result);
8111 if _result.is_err() {
8112 self.control_handle.shutdown();
8113 }
8114 self.drop_without_shutdown();
8115 _result
8116 }
8117
8118 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
8120 let _result = self.send_raw(result);
8121 self.drop_without_shutdown();
8122 _result
8123 }
8124
8125 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
8126 self.control_handle
8127 .inner
8128 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
8129 result,
8130 self.tx_id,
8131 0x68522c7122d5f78c,
8132 fidl::encoding::DynamicFlags::empty(),
8133 )
8134 }
8135}
8136
8137#[must_use = "FIDL methods require a response to be sent"]
8138#[derive(Debug)]
8139pub struct WlanSoftmacBridgeStartResponder {
8140 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
8141 tx_id: u32,
8142}
8143
8144impl std::ops::Drop for WlanSoftmacBridgeStartResponder {
8148 fn drop(&mut self) {
8149 self.control_handle.shutdown();
8150 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8152 }
8153}
8154
8155impl fidl::endpoints::Responder for WlanSoftmacBridgeStartResponder {
8156 type ControlHandle = WlanSoftmacBridgeControlHandle;
8157
8158 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
8159 &self.control_handle
8160 }
8161
8162 fn drop_without_shutdown(mut self) {
8163 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8165 std::mem::forget(self);
8167 }
8168}
8169
8170impl WlanSoftmacBridgeStartResponder {
8171 pub fn send(self, mut result: Result<fidl::Channel, i32>) -> Result<(), fidl::Error> {
8175 let _result = self.send_raw(result);
8176 if _result.is_err() {
8177 self.control_handle.shutdown();
8178 }
8179 self.drop_without_shutdown();
8180 _result
8181 }
8182
8183 pub fn send_no_shutdown_on_err(
8185 self,
8186 mut result: Result<fidl::Channel, i32>,
8187 ) -> Result<(), fidl::Error> {
8188 let _result = self.send_raw(result);
8189 self.drop_without_shutdown();
8190 _result
8191 }
8192
8193 fn send_raw(&self, mut result: Result<fidl::Channel, i32>) -> Result<(), fidl::Error> {
8194 self.control_handle
8195 .inner
8196 .send::<fidl::encoding::ResultType<WlanSoftmacBridgeStartResponse, i32>>(
8197 result.map(|sme_channel| (sme_channel,)),
8198 self.tx_id,
8199 0x7b2c15a507020d4d,
8200 fidl::encoding::DynamicFlags::empty(),
8201 )
8202 }
8203}
8204
8205#[must_use = "FIDL methods require a response to be sent"]
8206#[derive(Debug)]
8207pub struct WlanSoftmacBridgeSetEthernetStatusResponder {
8208 control_handle: std::mem::ManuallyDrop<WlanSoftmacBridgeControlHandle>,
8209 tx_id: u32,
8210}
8211
8212impl std::ops::Drop for WlanSoftmacBridgeSetEthernetStatusResponder {
8216 fn drop(&mut self) {
8217 self.control_handle.shutdown();
8218 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8220 }
8221}
8222
8223impl fidl::endpoints::Responder for WlanSoftmacBridgeSetEthernetStatusResponder {
8224 type ControlHandle = WlanSoftmacBridgeControlHandle;
8225
8226 fn control_handle(&self) -> &WlanSoftmacBridgeControlHandle {
8227 &self.control_handle
8228 }
8229
8230 fn drop_without_shutdown(mut self) {
8231 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8233 std::mem::forget(self);
8235 }
8236}
8237
8238impl WlanSoftmacBridgeSetEthernetStatusResponder {
8239 pub fn send(self) -> Result<(), fidl::Error> {
8243 let _result = self.send_raw();
8244 if _result.is_err() {
8245 self.control_handle.shutdown();
8246 }
8247 self.drop_without_shutdown();
8248 _result
8249 }
8250
8251 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
8253 let _result = self.send_raw();
8254 self.drop_without_shutdown();
8255 _result
8256 }
8257
8258 fn send_raw(&self) -> Result<(), fidl::Error> {
8259 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
8260 (),
8261 self.tx_id,
8262 0x412503cb3aaa350b,
8263 fidl::encoding::DynamicFlags::empty(),
8264 )
8265 }
8266}
8267
8268#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
8269pub struct WlanSoftmacIfcBaseMarker;
8270
8271impl fidl::endpoints::ProtocolMarker for WlanSoftmacIfcBaseMarker {
8272 type Proxy = WlanSoftmacIfcBaseProxy;
8273 type RequestStream = WlanSoftmacIfcBaseRequestStream;
8274 #[cfg(target_os = "fuchsia")]
8275 type SynchronousProxy = WlanSoftmacIfcBaseSynchronousProxy;
8276
8277 const DEBUG_NAME: &'static str = "(anonymous) WlanSoftmacIfcBase";
8278}
8279
8280pub trait WlanSoftmacIfcBaseProxyInterface: Send + Sync {
8281 type ReportTxResultResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
8282 fn r#report_tx_result(
8283 &self,
8284 tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
8285 ) -> Self::ReportTxResultResponseFut;
8286 type NotifyScanCompleteResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
8287 fn r#notify_scan_complete(
8288 &self,
8289 payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8290 ) -> Self::NotifyScanCompleteResponseFut;
8291}
8292#[derive(Debug)]
8293#[cfg(target_os = "fuchsia")]
8294pub struct WlanSoftmacIfcBaseSynchronousProxy {
8295 client: fidl::client::sync::Client,
8296}
8297
8298#[cfg(target_os = "fuchsia")]
8299impl fidl::endpoints::SynchronousProxy for WlanSoftmacIfcBaseSynchronousProxy {
8300 type Proxy = WlanSoftmacIfcBaseProxy;
8301 type Protocol = WlanSoftmacIfcBaseMarker;
8302
8303 fn from_channel(inner: fidl::Channel) -> Self {
8304 Self::new(inner)
8305 }
8306
8307 fn into_channel(self) -> fidl::Channel {
8308 self.client.into_channel()
8309 }
8310
8311 fn as_channel(&self) -> &fidl::Channel {
8312 self.client.as_channel()
8313 }
8314}
8315
8316#[cfg(target_os = "fuchsia")]
8317impl WlanSoftmacIfcBaseSynchronousProxy {
8318 pub fn new(channel: fidl::Channel) -> Self {
8319 let protocol_name =
8320 <WlanSoftmacIfcBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
8321 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
8322 }
8323
8324 pub fn into_channel(self) -> fidl::Channel {
8325 self.client.into_channel()
8326 }
8327
8328 pub fn wait_for_event(
8331 &self,
8332 deadline: zx::MonotonicInstant,
8333 ) -> Result<WlanSoftmacIfcBaseEvent, fidl::Error> {
8334 WlanSoftmacIfcBaseEvent::decode(self.client.wait_for_event(deadline)?)
8335 }
8336
8337 pub fn r#report_tx_result(
8342 &self,
8343 mut tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
8344 ___deadline: zx::MonotonicInstant,
8345 ) -> Result<(), fidl::Error> {
8346 let _response = self
8347 .client
8348 .send_query::<WlanSoftmacIfcBaseReportTxResultRequest, fidl::encoding::EmptyPayload>(
8349 (tx_result,),
8350 0x5835c2f13d94e09a,
8351 fidl::encoding::DynamicFlags::empty(),
8352 ___deadline,
8353 )?;
8354 Ok(_response)
8355 }
8356
8357 pub fn r#notify_scan_complete(
8369 &self,
8370 mut payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8371 ___deadline: zx::MonotonicInstant,
8372 ) -> Result<(), fidl::Error> {
8373 let _response = self.client.send_query::<
8374 WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8375 fidl::encoding::EmptyPayload,
8376 >(
8377 payload,
8378 0x7045e3cd460dc42c,
8379 fidl::encoding::DynamicFlags::empty(),
8380 ___deadline,
8381 )?;
8382 Ok(_response)
8383 }
8384}
8385
8386#[cfg(target_os = "fuchsia")]
8387impl From<WlanSoftmacIfcBaseSynchronousProxy> for zx::Handle {
8388 fn from(value: WlanSoftmacIfcBaseSynchronousProxy) -> Self {
8389 value.into_channel().into()
8390 }
8391}
8392
8393#[cfg(target_os = "fuchsia")]
8394impl From<fidl::Channel> for WlanSoftmacIfcBaseSynchronousProxy {
8395 fn from(value: fidl::Channel) -> Self {
8396 Self::new(value)
8397 }
8398}
8399
8400#[derive(Debug, Clone)]
8401pub struct WlanSoftmacIfcBaseProxy {
8402 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
8403}
8404
8405impl fidl::endpoints::Proxy for WlanSoftmacIfcBaseProxy {
8406 type Protocol = WlanSoftmacIfcBaseMarker;
8407
8408 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
8409 Self::new(inner)
8410 }
8411
8412 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
8413 self.client.into_channel().map_err(|client| Self { client })
8414 }
8415
8416 fn as_channel(&self) -> &::fidl::AsyncChannel {
8417 self.client.as_channel()
8418 }
8419}
8420
8421impl WlanSoftmacIfcBaseProxy {
8422 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
8424 let protocol_name =
8425 <WlanSoftmacIfcBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
8426 Self { client: fidl::client::Client::new(channel, protocol_name) }
8427 }
8428
8429 pub fn take_event_stream(&self) -> WlanSoftmacIfcBaseEventStream {
8435 WlanSoftmacIfcBaseEventStream { event_receiver: self.client.take_event_receiver() }
8436 }
8437
8438 pub fn r#report_tx_result(
8443 &self,
8444 mut tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
8445 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
8446 WlanSoftmacIfcBaseProxyInterface::r#report_tx_result(self, tx_result)
8447 }
8448
8449 pub fn r#notify_scan_complete(
8461 &self,
8462 mut payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8463 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
8464 WlanSoftmacIfcBaseProxyInterface::r#notify_scan_complete(self, payload)
8465 }
8466}
8467
8468impl WlanSoftmacIfcBaseProxyInterface for WlanSoftmacIfcBaseProxy {
8469 type ReportTxResultResponseFut =
8470 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
8471 fn r#report_tx_result(
8472 &self,
8473 mut tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
8474 ) -> Self::ReportTxResultResponseFut {
8475 fn _decode(
8476 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
8477 ) -> Result<(), fidl::Error> {
8478 let _response = fidl::client::decode_transaction_body::<
8479 fidl::encoding::EmptyPayload,
8480 fidl::encoding::DefaultFuchsiaResourceDialect,
8481 0x5835c2f13d94e09a,
8482 >(_buf?)?;
8483 Ok(_response)
8484 }
8485 self.client.send_query_and_decode::<WlanSoftmacIfcBaseReportTxResultRequest, ()>(
8486 (tx_result,),
8487 0x5835c2f13d94e09a,
8488 fidl::encoding::DynamicFlags::empty(),
8489 _decode,
8490 )
8491 }
8492
8493 type NotifyScanCompleteResponseFut =
8494 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
8495 fn r#notify_scan_complete(
8496 &self,
8497 mut payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8498 ) -> Self::NotifyScanCompleteResponseFut {
8499 fn _decode(
8500 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
8501 ) -> Result<(), fidl::Error> {
8502 let _response = fidl::client::decode_transaction_body::<
8503 fidl::encoding::EmptyPayload,
8504 fidl::encoding::DefaultFuchsiaResourceDialect,
8505 0x7045e3cd460dc42c,
8506 >(_buf?)?;
8507 Ok(_response)
8508 }
8509 self.client.send_query_and_decode::<WlanSoftmacIfcBaseNotifyScanCompleteRequest, ()>(
8510 payload,
8511 0x7045e3cd460dc42c,
8512 fidl::encoding::DynamicFlags::empty(),
8513 _decode,
8514 )
8515 }
8516}
8517
8518pub struct WlanSoftmacIfcBaseEventStream {
8519 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
8520}
8521
8522impl std::marker::Unpin for WlanSoftmacIfcBaseEventStream {}
8523
8524impl futures::stream::FusedStream for WlanSoftmacIfcBaseEventStream {
8525 fn is_terminated(&self) -> bool {
8526 self.event_receiver.is_terminated()
8527 }
8528}
8529
8530impl futures::Stream for WlanSoftmacIfcBaseEventStream {
8531 type Item = Result<WlanSoftmacIfcBaseEvent, fidl::Error>;
8532
8533 fn poll_next(
8534 mut self: std::pin::Pin<&mut Self>,
8535 cx: &mut std::task::Context<'_>,
8536 ) -> std::task::Poll<Option<Self::Item>> {
8537 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
8538 &mut self.event_receiver,
8539 cx
8540 )?) {
8541 Some(buf) => std::task::Poll::Ready(Some(WlanSoftmacIfcBaseEvent::decode(buf))),
8542 None => std::task::Poll::Ready(None),
8543 }
8544 }
8545}
8546
8547#[derive(Debug)]
8548pub enum WlanSoftmacIfcBaseEvent {}
8549
8550impl WlanSoftmacIfcBaseEvent {
8551 fn decode(
8553 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
8554 ) -> Result<WlanSoftmacIfcBaseEvent, fidl::Error> {
8555 let (bytes, _handles) = buf.split_mut();
8556 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
8557 debug_assert_eq!(tx_header.tx_id, 0);
8558 match tx_header.ordinal {
8559 _ => Err(fidl::Error::UnknownOrdinal {
8560 ordinal: tx_header.ordinal,
8561 protocol_name:
8562 <WlanSoftmacIfcBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
8563 }),
8564 }
8565 }
8566}
8567
8568pub struct WlanSoftmacIfcBaseRequestStream {
8570 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
8571 is_terminated: bool,
8572}
8573
8574impl std::marker::Unpin for WlanSoftmacIfcBaseRequestStream {}
8575
8576impl futures::stream::FusedStream for WlanSoftmacIfcBaseRequestStream {
8577 fn is_terminated(&self) -> bool {
8578 self.is_terminated
8579 }
8580}
8581
8582impl fidl::endpoints::RequestStream for WlanSoftmacIfcBaseRequestStream {
8583 type Protocol = WlanSoftmacIfcBaseMarker;
8584 type ControlHandle = WlanSoftmacIfcBaseControlHandle;
8585
8586 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
8587 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
8588 }
8589
8590 fn control_handle(&self) -> Self::ControlHandle {
8591 WlanSoftmacIfcBaseControlHandle { inner: self.inner.clone() }
8592 }
8593
8594 fn into_inner(
8595 self,
8596 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
8597 {
8598 (self.inner, self.is_terminated)
8599 }
8600
8601 fn from_inner(
8602 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
8603 is_terminated: bool,
8604 ) -> Self {
8605 Self { inner, is_terminated }
8606 }
8607}
8608
8609impl futures::Stream for WlanSoftmacIfcBaseRequestStream {
8610 type Item = Result<WlanSoftmacIfcBaseRequest, fidl::Error>;
8611
8612 fn poll_next(
8613 mut self: std::pin::Pin<&mut Self>,
8614 cx: &mut std::task::Context<'_>,
8615 ) -> std::task::Poll<Option<Self::Item>> {
8616 let this = &mut *self;
8617 if this.inner.check_shutdown(cx) {
8618 this.is_terminated = true;
8619 return std::task::Poll::Ready(None);
8620 }
8621 if this.is_terminated {
8622 panic!("polled WlanSoftmacIfcBaseRequestStream after completion");
8623 }
8624 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
8625 |bytes, handles| {
8626 match this.inner.channel().read_etc(cx, bytes, handles) {
8627 std::task::Poll::Ready(Ok(())) => {}
8628 std::task::Poll::Pending => return std::task::Poll::Pending,
8629 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
8630 this.is_terminated = true;
8631 return std::task::Poll::Ready(None);
8632 }
8633 std::task::Poll::Ready(Err(e)) => {
8634 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
8635 e.into(),
8636 ))))
8637 }
8638 }
8639
8640 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
8642
8643 std::task::Poll::Ready(Some(match header.ordinal {
8644 0x5835c2f13d94e09a => {
8645 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8646 let mut req = fidl::new_empty!(WlanSoftmacIfcBaseReportTxResultRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
8647 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacIfcBaseReportTxResultRequest>(&header, _body_bytes, handles, &mut req)?;
8648 let control_handle = WlanSoftmacIfcBaseControlHandle {
8649 inner: this.inner.clone(),
8650 };
8651 Ok(WlanSoftmacIfcBaseRequest::ReportTxResult {tx_result: req.tx_result,
8652
8653 responder: WlanSoftmacIfcBaseReportTxResultResponder {
8654 control_handle: std::mem::ManuallyDrop::new(control_handle),
8655 tx_id: header.tx_id,
8656 },
8657 })
8658 }
8659 0x7045e3cd460dc42c => {
8660 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8661 let mut req = fidl::new_empty!(WlanSoftmacIfcBaseNotifyScanCompleteRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
8662 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacIfcBaseNotifyScanCompleteRequest>(&header, _body_bytes, handles, &mut req)?;
8663 let control_handle = WlanSoftmacIfcBaseControlHandle {
8664 inner: this.inner.clone(),
8665 };
8666 Ok(WlanSoftmacIfcBaseRequest::NotifyScanComplete {payload: req,
8667 responder: WlanSoftmacIfcBaseNotifyScanCompleteResponder {
8668 control_handle: std::mem::ManuallyDrop::new(control_handle),
8669 tx_id: header.tx_id,
8670 },
8671 })
8672 }
8673 _ => Err(fidl::Error::UnknownOrdinal {
8674 ordinal: header.ordinal,
8675 protocol_name: <WlanSoftmacIfcBaseMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
8676 }),
8677 }))
8678 },
8679 )
8680 }
8681}
8682
8683#[derive(Debug)]
8694pub enum WlanSoftmacIfcBaseRequest {
8695 ReportTxResult {
8700 tx_result: fidl_fuchsia_wlan_common::WlanTxResult,
8701 responder: WlanSoftmacIfcBaseReportTxResultResponder,
8702 },
8703 NotifyScanComplete {
8715 payload: WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8716 responder: WlanSoftmacIfcBaseNotifyScanCompleteResponder,
8717 },
8718}
8719
8720impl WlanSoftmacIfcBaseRequest {
8721 #[allow(irrefutable_let_patterns)]
8722 pub fn into_report_tx_result(
8723 self,
8724 ) -> Option<(fidl_fuchsia_wlan_common::WlanTxResult, WlanSoftmacIfcBaseReportTxResultResponder)>
8725 {
8726 if let WlanSoftmacIfcBaseRequest::ReportTxResult { tx_result, responder } = self {
8727 Some((tx_result, responder))
8728 } else {
8729 None
8730 }
8731 }
8732
8733 #[allow(irrefutable_let_patterns)]
8734 pub fn into_notify_scan_complete(
8735 self,
8736 ) -> Option<(
8737 WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8738 WlanSoftmacIfcBaseNotifyScanCompleteResponder,
8739 )> {
8740 if let WlanSoftmacIfcBaseRequest::NotifyScanComplete { payload, responder } = self {
8741 Some((payload, responder))
8742 } else {
8743 None
8744 }
8745 }
8746
8747 pub fn method_name(&self) -> &'static str {
8749 match *self {
8750 WlanSoftmacIfcBaseRequest::ReportTxResult { .. } => "report_tx_result",
8751 WlanSoftmacIfcBaseRequest::NotifyScanComplete { .. } => "notify_scan_complete",
8752 }
8753 }
8754}
8755
8756#[derive(Debug, Clone)]
8757pub struct WlanSoftmacIfcBaseControlHandle {
8758 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
8759}
8760
8761impl fidl::endpoints::ControlHandle for WlanSoftmacIfcBaseControlHandle {
8762 fn shutdown(&self) {
8763 self.inner.shutdown()
8764 }
8765 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
8766 self.inner.shutdown_with_epitaph(status)
8767 }
8768
8769 fn is_closed(&self) -> bool {
8770 self.inner.channel().is_closed()
8771 }
8772 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
8773 self.inner.channel().on_closed()
8774 }
8775
8776 #[cfg(target_os = "fuchsia")]
8777 fn signal_peer(
8778 &self,
8779 clear_mask: zx::Signals,
8780 set_mask: zx::Signals,
8781 ) -> Result<(), zx_status::Status> {
8782 use fidl::Peered;
8783 self.inner.channel().signal_peer(clear_mask, set_mask)
8784 }
8785}
8786
8787impl WlanSoftmacIfcBaseControlHandle {}
8788
8789#[must_use = "FIDL methods require a response to be sent"]
8790#[derive(Debug)]
8791pub struct WlanSoftmacIfcBaseReportTxResultResponder {
8792 control_handle: std::mem::ManuallyDrop<WlanSoftmacIfcBaseControlHandle>,
8793 tx_id: u32,
8794}
8795
8796impl std::ops::Drop for WlanSoftmacIfcBaseReportTxResultResponder {
8800 fn drop(&mut self) {
8801 self.control_handle.shutdown();
8802 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8804 }
8805}
8806
8807impl fidl::endpoints::Responder for WlanSoftmacIfcBaseReportTxResultResponder {
8808 type ControlHandle = WlanSoftmacIfcBaseControlHandle;
8809
8810 fn control_handle(&self) -> &WlanSoftmacIfcBaseControlHandle {
8811 &self.control_handle
8812 }
8813
8814 fn drop_without_shutdown(mut self) {
8815 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8817 std::mem::forget(self);
8819 }
8820}
8821
8822impl WlanSoftmacIfcBaseReportTxResultResponder {
8823 pub fn send(self) -> Result<(), fidl::Error> {
8827 let _result = self.send_raw();
8828 if _result.is_err() {
8829 self.control_handle.shutdown();
8830 }
8831 self.drop_without_shutdown();
8832 _result
8833 }
8834
8835 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
8837 let _result = self.send_raw();
8838 self.drop_without_shutdown();
8839 _result
8840 }
8841
8842 fn send_raw(&self) -> Result<(), fidl::Error> {
8843 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
8844 (),
8845 self.tx_id,
8846 0x5835c2f13d94e09a,
8847 fidl::encoding::DynamicFlags::empty(),
8848 )
8849 }
8850}
8851
8852#[must_use = "FIDL methods require a response to be sent"]
8853#[derive(Debug)]
8854pub struct WlanSoftmacIfcBaseNotifyScanCompleteResponder {
8855 control_handle: std::mem::ManuallyDrop<WlanSoftmacIfcBaseControlHandle>,
8856 tx_id: u32,
8857}
8858
8859impl std::ops::Drop for WlanSoftmacIfcBaseNotifyScanCompleteResponder {
8863 fn drop(&mut self) {
8864 self.control_handle.shutdown();
8865 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8867 }
8868}
8869
8870impl fidl::endpoints::Responder for WlanSoftmacIfcBaseNotifyScanCompleteResponder {
8871 type ControlHandle = WlanSoftmacIfcBaseControlHandle;
8872
8873 fn control_handle(&self) -> &WlanSoftmacIfcBaseControlHandle {
8874 &self.control_handle
8875 }
8876
8877 fn drop_without_shutdown(mut self) {
8878 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
8880 std::mem::forget(self);
8882 }
8883}
8884
8885impl WlanSoftmacIfcBaseNotifyScanCompleteResponder {
8886 pub fn send(self) -> Result<(), fidl::Error> {
8890 let _result = self.send_raw();
8891 if _result.is_err() {
8892 self.control_handle.shutdown();
8893 }
8894 self.drop_without_shutdown();
8895 _result
8896 }
8897
8898 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
8900 let _result = self.send_raw();
8901 self.drop_without_shutdown();
8902 _result
8903 }
8904
8905 fn send_raw(&self) -> Result<(), fidl::Error> {
8906 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
8907 (),
8908 self.tx_id,
8909 0x7045e3cd460dc42c,
8910 fidl::encoding::DynamicFlags::empty(),
8911 )
8912 }
8913}
8914
8915#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
8916pub struct WlanSoftmacIfcBridgeMarker;
8917
8918impl fidl::endpoints::ProtocolMarker for WlanSoftmacIfcBridgeMarker {
8919 type Proxy = WlanSoftmacIfcBridgeProxy;
8920 type RequestStream = WlanSoftmacIfcBridgeRequestStream;
8921 #[cfg(target_os = "fuchsia")]
8922 type SynchronousProxy = WlanSoftmacIfcBridgeSynchronousProxy;
8923
8924 const DEBUG_NAME: &'static str = "(anonymous) WlanSoftmacIfcBridge";
8925}
8926
8927pub trait WlanSoftmacIfcBridgeProxyInterface: Send + Sync {
8928 type ReportTxResultResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
8929 fn r#report_tx_result(
8930 &self,
8931 tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
8932 ) -> Self::ReportTxResultResponseFut;
8933 type NotifyScanCompleteResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
8934 fn r#notify_scan_complete(
8935 &self,
8936 payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
8937 ) -> Self::NotifyScanCompleteResponseFut;
8938 type StopBridgedDriverResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
8939 fn r#stop_bridged_driver(&self) -> Self::StopBridgedDriverResponseFut;
8940}
8941#[derive(Debug)]
8942#[cfg(target_os = "fuchsia")]
8943pub struct WlanSoftmacIfcBridgeSynchronousProxy {
8944 client: fidl::client::sync::Client,
8945}
8946
8947#[cfg(target_os = "fuchsia")]
8948impl fidl::endpoints::SynchronousProxy for WlanSoftmacIfcBridgeSynchronousProxy {
8949 type Proxy = WlanSoftmacIfcBridgeProxy;
8950 type Protocol = WlanSoftmacIfcBridgeMarker;
8951
8952 fn from_channel(inner: fidl::Channel) -> Self {
8953 Self::new(inner)
8954 }
8955
8956 fn into_channel(self) -> fidl::Channel {
8957 self.client.into_channel()
8958 }
8959
8960 fn as_channel(&self) -> &fidl::Channel {
8961 self.client.as_channel()
8962 }
8963}
8964
8965#[cfg(target_os = "fuchsia")]
8966impl WlanSoftmacIfcBridgeSynchronousProxy {
8967 pub fn new(channel: fidl::Channel) -> Self {
8968 let protocol_name =
8969 <WlanSoftmacIfcBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
8970 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
8971 }
8972
8973 pub fn into_channel(self) -> fidl::Channel {
8974 self.client.into_channel()
8975 }
8976
8977 pub fn wait_for_event(
8980 &self,
8981 deadline: zx::MonotonicInstant,
8982 ) -> Result<WlanSoftmacIfcBridgeEvent, fidl::Error> {
8983 WlanSoftmacIfcBridgeEvent::decode(self.client.wait_for_event(deadline)?)
8984 }
8985
8986 pub fn r#report_tx_result(
8991 &self,
8992 mut tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
8993 ___deadline: zx::MonotonicInstant,
8994 ) -> Result<(), fidl::Error> {
8995 let _response = self
8996 .client
8997 .send_query::<WlanSoftmacIfcBaseReportTxResultRequest, fidl::encoding::EmptyPayload>(
8998 (tx_result,),
8999 0x5835c2f13d94e09a,
9000 fidl::encoding::DynamicFlags::empty(),
9001 ___deadline,
9002 )?;
9003 Ok(_response)
9004 }
9005
9006 pub fn r#notify_scan_complete(
9018 &self,
9019 mut payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
9020 ___deadline: zx::MonotonicInstant,
9021 ) -> Result<(), fidl::Error> {
9022 let _response = self.client.send_query::<
9023 WlanSoftmacIfcBaseNotifyScanCompleteRequest,
9024 fidl::encoding::EmptyPayload,
9025 >(
9026 payload,
9027 0x7045e3cd460dc42c,
9028 fidl::encoding::DynamicFlags::empty(),
9029 ___deadline,
9030 )?;
9031 Ok(_response)
9032 }
9033
9034 pub fn r#stop_bridged_driver(
9042 &self,
9043 ___deadline: zx::MonotonicInstant,
9044 ) -> Result<(), fidl::Error> {
9045 let _response =
9046 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::EmptyPayload>(
9047 (),
9048 0x112dbd0cc2251151,
9049 fidl::encoding::DynamicFlags::empty(),
9050 ___deadline,
9051 )?;
9052 Ok(_response)
9053 }
9054}
9055
9056#[cfg(target_os = "fuchsia")]
9057impl From<WlanSoftmacIfcBridgeSynchronousProxy> for zx::Handle {
9058 fn from(value: WlanSoftmacIfcBridgeSynchronousProxy) -> Self {
9059 value.into_channel().into()
9060 }
9061}
9062
9063#[cfg(target_os = "fuchsia")]
9064impl From<fidl::Channel> for WlanSoftmacIfcBridgeSynchronousProxy {
9065 fn from(value: fidl::Channel) -> Self {
9066 Self::new(value)
9067 }
9068}
9069
9070#[derive(Debug, Clone)]
9071pub struct WlanSoftmacIfcBridgeProxy {
9072 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
9073}
9074
9075impl fidl::endpoints::Proxy for WlanSoftmacIfcBridgeProxy {
9076 type Protocol = WlanSoftmacIfcBridgeMarker;
9077
9078 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
9079 Self::new(inner)
9080 }
9081
9082 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
9083 self.client.into_channel().map_err(|client| Self { client })
9084 }
9085
9086 fn as_channel(&self) -> &::fidl::AsyncChannel {
9087 self.client.as_channel()
9088 }
9089}
9090
9091impl WlanSoftmacIfcBridgeProxy {
9092 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
9094 let protocol_name =
9095 <WlanSoftmacIfcBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
9096 Self { client: fidl::client::Client::new(channel, protocol_name) }
9097 }
9098
9099 pub fn take_event_stream(&self) -> WlanSoftmacIfcBridgeEventStream {
9105 WlanSoftmacIfcBridgeEventStream { event_receiver: self.client.take_event_receiver() }
9106 }
9107
9108 pub fn r#report_tx_result(
9113 &self,
9114 mut tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
9115 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
9116 WlanSoftmacIfcBridgeProxyInterface::r#report_tx_result(self, tx_result)
9117 }
9118
9119 pub fn r#notify_scan_complete(
9131 &self,
9132 mut payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
9133 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
9134 WlanSoftmacIfcBridgeProxyInterface::r#notify_scan_complete(self, payload)
9135 }
9136
9137 pub fn r#stop_bridged_driver(
9145 &self,
9146 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
9147 WlanSoftmacIfcBridgeProxyInterface::r#stop_bridged_driver(self)
9148 }
9149}
9150
9151impl WlanSoftmacIfcBridgeProxyInterface for WlanSoftmacIfcBridgeProxy {
9152 type ReportTxResultResponseFut =
9153 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
9154 fn r#report_tx_result(
9155 &self,
9156 mut tx_result: &fidl_fuchsia_wlan_common::WlanTxResult,
9157 ) -> Self::ReportTxResultResponseFut {
9158 fn _decode(
9159 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
9160 ) -> Result<(), fidl::Error> {
9161 let _response = fidl::client::decode_transaction_body::<
9162 fidl::encoding::EmptyPayload,
9163 fidl::encoding::DefaultFuchsiaResourceDialect,
9164 0x5835c2f13d94e09a,
9165 >(_buf?)?;
9166 Ok(_response)
9167 }
9168 self.client.send_query_and_decode::<WlanSoftmacIfcBaseReportTxResultRequest, ()>(
9169 (tx_result,),
9170 0x5835c2f13d94e09a,
9171 fidl::encoding::DynamicFlags::empty(),
9172 _decode,
9173 )
9174 }
9175
9176 type NotifyScanCompleteResponseFut =
9177 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
9178 fn r#notify_scan_complete(
9179 &self,
9180 mut payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
9181 ) -> Self::NotifyScanCompleteResponseFut {
9182 fn _decode(
9183 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
9184 ) -> Result<(), fidl::Error> {
9185 let _response = fidl::client::decode_transaction_body::<
9186 fidl::encoding::EmptyPayload,
9187 fidl::encoding::DefaultFuchsiaResourceDialect,
9188 0x7045e3cd460dc42c,
9189 >(_buf?)?;
9190 Ok(_response)
9191 }
9192 self.client.send_query_and_decode::<WlanSoftmacIfcBaseNotifyScanCompleteRequest, ()>(
9193 payload,
9194 0x7045e3cd460dc42c,
9195 fidl::encoding::DynamicFlags::empty(),
9196 _decode,
9197 )
9198 }
9199
9200 type StopBridgedDriverResponseFut =
9201 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
9202 fn r#stop_bridged_driver(&self) -> Self::StopBridgedDriverResponseFut {
9203 fn _decode(
9204 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
9205 ) -> Result<(), fidl::Error> {
9206 let _response = fidl::client::decode_transaction_body::<
9207 fidl::encoding::EmptyPayload,
9208 fidl::encoding::DefaultFuchsiaResourceDialect,
9209 0x112dbd0cc2251151,
9210 >(_buf?)?;
9211 Ok(_response)
9212 }
9213 self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, ()>(
9214 (),
9215 0x112dbd0cc2251151,
9216 fidl::encoding::DynamicFlags::empty(),
9217 _decode,
9218 )
9219 }
9220}
9221
9222pub struct WlanSoftmacIfcBridgeEventStream {
9223 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
9224}
9225
9226impl std::marker::Unpin for WlanSoftmacIfcBridgeEventStream {}
9227
9228impl futures::stream::FusedStream for WlanSoftmacIfcBridgeEventStream {
9229 fn is_terminated(&self) -> bool {
9230 self.event_receiver.is_terminated()
9231 }
9232}
9233
9234impl futures::Stream for WlanSoftmacIfcBridgeEventStream {
9235 type Item = Result<WlanSoftmacIfcBridgeEvent, fidl::Error>;
9236
9237 fn poll_next(
9238 mut self: std::pin::Pin<&mut Self>,
9239 cx: &mut std::task::Context<'_>,
9240 ) -> std::task::Poll<Option<Self::Item>> {
9241 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
9242 &mut self.event_receiver,
9243 cx
9244 )?) {
9245 Some(buf) => std::task::Poll::Ready(Some(WlanSoftmacIfcBridgeEvent::decode(buf))),
9246 None => std::task::Poll::Ready(None),
9247 }
9248 }
9249}
9250
9251#[derive(Debug)]
9252pub enum WlanSoftmacIfcBridgeEvent {}
9253
9254impl WlanSoftmacIfcBridgeEvent {
9255 fn decode(
9257 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
9258 ) -> Result<WlanSoftmacIfcBridgeEvent, fidl::Error> {
9259 let (bytes, _handles) = buf.split_mut();
9260 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
9261 debug_assert_eq!(tx_header.tx_id, 0);
9262 match tx_header.ordinal {
9263 _ => Err(fidl::Error::UnknownOrdinal {
9264 ordinal: tx_header.ordinal,
9265 protocol_name:
9266 <WlanSoftmacIfcBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
9267 }),
9268 }
9269 }
9270}
9271
9272pub struct WlanSoftmacIfcBridgeRequestStream {
9274 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
9275 is_terminated: bool,
9276}
9277
9278impl std::marker::Unpin for WlanSoftmacIfcBridgeRequestStream {}
9279
9280impl futures::stream::FusedStream for WlanSoftmacIfcBridgeRequestStream {
9281 fn is_terminated(&self) -> bool {
9282 self.is_terminated
9283 }
9284}
9285
9286impl fidl::endpoints::RequestStream for WlanSoftmacIfcBridgeRequestStream {
9287 type Protocol = WlanSoftmacIfcBridgeMarker;
9288 type ControlHandle = WlanSoftmacIfcBridgeControlHandle;
9289
9290 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
9291 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
9292 }
9293
9294 fn control_handle(&self) -> Self::ControlHandle {
9295 WlanSoftmacIfcBridgeControlHandle { inner: self.inner.clone() }
9296 }
9297
9298 fn into_inner(
9299 self,
9300 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
9301 {
9302 (self.inner, self.is_terminated)
9303 }
9304
9305 fn from_inner(
9306 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
9307 is_terminated: bool,
9308 ) -> Self {
9309 Self { inner, is_terminated }
9310 }
9311}
9312
9313impl futures::Stream for WlanSoftmacIfcBridgeRequestStream {
9314 type Item = Result<WlanSoftmacIfcBridgeRequest, fidl::Error>;
9315
9316 fn poll_next(
9317 mut self: std::pin::Pin<&mut Self>,
9318 cx: &mut std::task::Context<'_>,
9319 ) -> std::task::Poll<Option<Self::Item>> {
9320 let this = &mut *self;
9321 if this.inner.check_shutdown(cx) {
9322 this.is_terminated = true;
9323 return std::task::Poll::Ready(None);
9324 }
9325 if this.is_terminated {
9326 panic!("polled WlanSoftmacIfcBridgeRequestStream after completion");
9327 }
9328 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
9329 |bytes, handles| {
9330 match this.inner.channel().read_etc(cx, bytes, handles) {
9331 std::task::Poll::Ready(Ok(())) => {}
9332 std::task::Poll::Pending => return std::task::Poll::Pending,
9333 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
9334 this.is_terminated = true;
9335 return std::task::Poll::Ready(None);
9336 }
9337 std::task::Poll::Ready(Err(e)) => {
9338 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
9339 e.into(),
9340 ))))
9341 }
9342 }
9343
9344 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
9346
9347 std::task::Poll::Ready(Some(match header.ordinal {
9348 0x5835c2f13d94e09a => {
9349 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
9350 let mut req = fidl::new_empty!(WlanSoftmacIfcBaseReportTxResultRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
9351 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacIfcBaseReportTxResultRequest>(&header, _body_bytes, handles, &mut req)?;
9352 let control_handle = WlanSoftmacIfcBridgeControlHandle {
9353 inner: this.inner.clone(),
9354 };
9355 Ok(WlanSoftmacIfcBridgeRequest::ReportTxResult {tx_result: req.tx_result,
9356
9357 responder: WlanSoftmacIfcBridgeReportTxResultResponder {
9358 control_handle: std::mem::ManuallyDrop::new(control_handle),
9359 tx_id: header.tx_id,
9360 },
9361 })
9362 }
9363 0x7045e3cd460dc42c => {
9364 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
9365 let mut req = fidl::new_empty!(WlanSoftmacIfcBaseNotifyScanCompleteRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
9366 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanSoftmacIfcBaseNotifyScanCompleteRequest>(&header, _body_bytes, handles, &mut req)?;
9367 let control_handle = WlanSoftmacIfcBridgeControlHandle {
9368 inner: this.inner.clone(),
9369 };
9370 Ok(WlanSoftmacIfcBridgeRequest::NotifyScanComplete {payload: req,
9371 responder: WlanSoftmacIfcBridgeNotifyScanCompleteResponder {
9372 control_handle: std::mem::ManuallyDrop::new(control_handle),
9373 tx_id: header.tx_id,
9374 },
9375 })
9376 }
9377 0x112dbd0cc2251151 => {
9378 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
9379 let mut req = fidl::new_empty!(fidl::encoding::EmptyPayload, fidl::encoding::DefaultFuchsiaResourceDialect);
9380 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
9381 let control_handle = WlanSoftmacIfcBridgeControlHandle {
9382 inner: this.inner.clone(),
9383 };
9384 Ok(WlanSoftmacIfcBridgeRequest::StopBridgedDriver {
9385 responder: WlanSoftmacIfcBridgeStopBridgedDriverResponder {
9386 control_handle: std::mem::ManuallyDrop::new(control_handle),
9387 tx_id: header.tx_id,
9388 },
9389 })
9390 }
9391 _ => Err(fidl::Error::UnknownOrdinal {
9392 ordinal: header.ordinal,
9393 protocol_name: <WlanSoftmacIfcBridgeMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
9394 }),
9395 }))
9396 },
9397 )
9398 }
9399}
9400
9401#[derive(Debug)]
9408pub enum WlanSoftmacIfcBridgeRequest {
9409 ReportTxResult {
9414 tx_result: fidl_fuchsia_wlan_common::WlanTxResult,
9415 responder: WlanSoftmacIfcBridgeReportTxResultResponder,
9416 },
9417 NotifyScanComplete {
9429 payload: WlanSoftmacIfcBaseNotifyScanCompleteRequest,
9430 responder: WlanSoftmacIfcBridgeNotifyScanCompleteResponder,
9431 },
9432 StopBridgedDriver { responder: WlanSoftmacIfcBridgeStopBridgedDriverResponder },
9440}
9441
9442impl WlanSoftmacIfcBridgeRequest {
9443 #[allow(irrefutable_let_patterns)]
9444 pub fn into_report_tx_result(
9445 self,
9446 ) -> Option<(fidl_fuchsia_wlan_common::WlanTxResult, WlanSoftmacIfcBridgeReportTxResultResponder)>
9447 {
9448 if let WlanSoftmacIfcBridgeRequest::ReportTxResult { tx_result, responder } = self {
9449 Some((tx_result, responder))
9450 } else {
9451 None
9452 }
9453 }
9454
9455 #[allow(irrefutable_let_patterns)]
9456 pub fn into_notify_scan_complete(
9457 self,
9458 ) -> Option<(
9459 WlanSoftmacIfcBaseNotifyScanCompleteRequest,
9460 WlanSoftmacIfcBridgeNotifyScanCompleteResponder,
9461 )> {
9462 if let WlanSoftmacIfcBridgeRequest::NotifyScanComplete { payload, responder } = self {
9463 Some((payload, responder))
9464 } else {
9465 None
9466 }
9467 }
9468
9469 #[allow(irrefutable_let_patterns)]
9470 pub fn into_stop_bridged_driver(
9471 self,
9472 ) -> Option<(WlanSoftmacIfcBridgeStopBridgedDriverResponder)> {
9473 if let WlanSoftmacIfcBridgeRequest::StopBridgedDriver { responder } = self {
9474 Some((responder))
9475 } else {
9476 None
9477 }
9478 }
9479
9480 pub fn method_name(&self) -> &'static str {
9482 match *self {
9483 WlanSoftmacIfcBridgeRequest::ReportTxResult { .. } => "report_tx_result",
9484 WlanSoftmacIfcBridgeRequest::NotifyScanComplete { .. } => "notify_scan_complete",
9485 WlanSoftmacIfcBridgeRequest::StopBridgedDriver { .. } => "stop_bridged_driver",
9486 }
9487 }
9488}
9489
9490#[derive(Debug, Clone)]
9491pub struct WlanSoftmacIfcBridgeControlHandle {
9492 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
9493}
9494
9495impl fidl::endpoints::ControlHandle for WlanSoftmacIfcBridgeControlHandle {
9496 fn shutdown(&self) {
9497 self.inner.shutdown()
9498 }
9499 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
9500 self.inner.shutdown_with_epitaph(status)
9501 }
9502
9503 fn is_closed(&self) -> bool {
9504 self.inner.channel().is_closed()
9505 }
9506 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
9507 self.inner.channel().on_closed()
9508 }
9509
9510 #[cfg(target_os = "fuchsia")]
9511 fn signal_peer(
9512 &self,
9513 clear_mask: zx::Signals,
9514 set_mask: zx::Signals,
9515 ) -> Result<(), zx_status::Status> {
9516 use fidl::Peered;
9517 self.inner.channel().signal_peer(clear_mask, set_mask)
9518 }
9519}
9520
9521impl WlanSoftmacIfcBridgeControlHandle {}
9522
9523#[must_use = "FIDL methods require a response to be sent"]
9524#[derive(Debug)]
9525pub struct WlanSoftmacIfcBridgeReportTxResultResponder {
9526 control_handle: std::mem::ManuallyDrop<WlanSoftmacIfcBridgeControlHandle>,
9527 tx_id: u32,
9528}
9529
9530impl std::ops::Drop for WlanSoftmacIfcBridgeReportTxResultResponder {
9534 fn drop(&mut self) {
9535 self.control_handle.shutdown();
9536 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9538 }
9539}
9540
9541impl fidl::endpoints::Responder for WlanSoftmacIfcBridgeReportTxResultResponder {
9542 type ControlHandle = WlanSoftmacIfcBridgeControlHandle;
9543
9544 fn control_handle(&self) -> &WlanSoftmacIfcBridgeControlHandle {
9545 &self.control_handle
9546 }
9547
9548 fn drop_without_shutdown(mut self) {
9549 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9551 std::mem::forget(self);
9553 }
9554}
9555
9556impl WlanSoftmacIfcBridgeReportTxResultResponder {
9557 pub fn send(self) -> Result<(), fidl::Error> {
9561 let _result = self.send_raw();
9562 if _result.is_err() {
9563 self.control_handle.shutdown();
9564 }
9565 self.drop_without_shutdown();
9566 _result
9567 }
9568
9569 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
9571 let _result = self.send_raw();
9572 self.drop_without_shutdown();
9573 _result
9574 }
9575
9576 fn send_raw(&self) -> Result<(), fidl::Error> {
9577 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
9578 (),
9579 self.tx_id,
9580 0x5835c2f13d94e09a,
9581 fidl::encoding::DynamicFlags::empty(),
9582 )
9583 }
9584}
9585
9586#[must_use = "FIDL methods require a response to be sent"]
9587#[derive(Debug)]
9588pub struct WlanSoftmacIfcBridgeNotifyScanCompleteResponder {
9589 control_handle: std::mem::ManuallyDrop<WlanSoftmacIfcBridgeControlHandle>,
9590 tx_id: u32,
9591}
9592
9593impl std::ops::Drop for WlanSoftmacIfcBridgeNotifyScanCompleteResponder {
9597 fn drop(&mut self) {
9598 self.control_handle.shutdown();
9599 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9601 }
9602}
9603
9604impl fidl::endpoints::Responder for WlanSoftmacIfcBridgeNotifyScanCompleteResponder {
9605 type ControlHandle = WlanSoftmacIfcBridgeControlHandle;
9606
9607 fn control_handle(&self) -> &WlanSoftmacIfcBridgeControlHandle {
9608 &self.control_handle
9609 }
9610
9611 fn drop_without_shutdown(mut self) {
9612 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9614 std::mem::forget(self);
9616 }
9617}
9618
9619impl WlanSoftmacIfcBridgeNotifyScanCompleteResponder {
9620 pub fn send(self) -> Result<(), fidl::Error> {
9624 let _result = self.send_raw();
9625 if _result.is_err() {
9626 self.control_handle.shutdown();
9627 }
9628 self.drop_without_shutdown();
9629 _result
9630 }
9631
9632 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
9634 let _result = self.send_raw();
9635 self.drop_without_shutdown();
9636 _result
9637 }
9638
9639 fn send_raw(&self) -> Result<(), fidl::Error> {
9640 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
9641 (),
9642 self.tx_id,
9643 0x7045e3cd460dc42c,
9644 fidl::encoding::DynamicFlags::empty(),
9645 )
9646 }
9647}
9648
9649#[must_use = "FIDL methods require a response to be sent"]
9650#[derive(Debug)]
9651pub struct WlanSoftmacIfcBridgeStopBridgedDriverResponder {
9652 control_handle: std::mem::ManuallyDrop<WlanSoftmacIfcBridgeControlHandle>,
9653 tx_id: u32,
9654}
9655
9656impl std::ops::Drop for WlanSoftmacIfcBridgeStopBridgedDriverResponder {
9660 fn drop(&mut self) {
9661 self.control_handle.shutdown();
9662 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9664 }
9665}
9666
9667impl fidl::endpoints::Responder for WlanSoftmacIfcBridgeStopBridgedDriverResponder {
9668 type ControlHandle = WlanSoftmacIfcBridgeControlHandle;
9669
9670 fn control_handle(&self) -> &WlanSoftmacIfcBridgeControlHandle {
9671 &self.control_handle
9672 }
9673
9674 fn drop_without_shutdown(mut self) {
9675 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9677 std::mem::forget(self);
9679 }
9680}
9681
9682impl WlanSoftmacIfcBridgeStopBridgedDriverResponder {
9683 pub fn send(self) -> Result<(), fidl::Error> {
9687 let _result = self.send_raw();
9688 if _result.is_err() {
9689 self.control_handle.shutdown();
9690 }
9691 self.drop_without_shutdown();
9692 _result
9693 }
9694
9695 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
9697 let _result = self.send_raw();
9698 self.drop_without_shutdown();
9699 _result
9700 }
9701
9702 fn send_raw(&self) -> Result<(), fidl::Error> {
9703 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
9704 (),
9705 self.tx_id,
9706 0x112dbd0cc2251151,
9707 fidl::encoding::DynamicFlags::empty(),
9708 )
9709 }
9710}
9711
9712#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
9713pub struct WlanTxMarker;
9714
9715impl fidl::endpoints::ProtocolMarker for WlanTxMarker {
9716 type Proxy = WlanTxProxy;
9717 type RequestStream = WlanTxRequestStream;
9718 #[cfg(target_os = "fuchsia")]
9719 type SynchronousProxy = WlanTxSynchronousProxy;
9720
9721 const DEBUG_NAME: &'static str = "(anonymous) WlanTx";
9722}
9723pub type WlanTxTransferResult = Result<(), i32>;
9724
9725pub trait WlanTxProxyInterface: Send + Sync {
9726 type TransferResponseFut: std::future::Future<Output = Result<WlanTxTransferResult, fidl::Error>>
9727 + Send;
9728 fn r#transfer(&self, payload: &WlanTxTransferRequest) -> Self::TransferResponseFut;
9729}
9730#[derive(Debug)]
9731#[cfg(target_os = "fuchsia")]
9732pub struct WlanTxSynchronousProxy {
9733 client: fidl::client::sync::Client,
9734}
9735
9736#[cfg(target_os = "fuchsia")]
9737impl fidl::endpoints::SynchronousProxy for WlanTxSynchronousProxy {
9738 type Proxy = WlanTxProxy;
9739 type Protocol = WlanTxMarker;
9740
9741 fn from_channel(inner: fidl::Channel) -> Self {
9742 Self::new(inner)
9743 }
9744
9745 fn into_channel(self) -> fidl::Channel {
9746 self.client.into_channel()
9747 }
9748
9749 fn as_channel(&self) -> &fidl::Channel {
9750 self.client.as_channel()
9751 }
9752}
9753
9754#[cfg(target_os = "fuchsia")]
9755impl WlanTxSynchronousProxy {
9756 pub fn new(channel: fidl::Channel) -> Self {
9757 let protocol_name = <WlanTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
9758 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
9759 }
9760
9761 pub fn into_channel(self) -> fidl::Channel {
9762 self.client.into_channel()
9763 }
9764
9765 pub fn wait_for_event(
9768 &self,
9769 deadline: zx::MonotonicInstant,
9770 ) -> Result<WlanTxEvent, fidl::Error> {
9771 WlanTxEvent::decode(self.client.wait_for_event(deadline)?)
9772 }
9773
9774 pub fn r#transfer(
9775 &self,
9776 mut payload: &WlanTxTransferRequest,
9777 ___deadline: zx::MonotonicInstant,
9778 ) -> Result<WlanTxTransferResult, fidl::Error> {
9779 let _response = self.client.send_query::<
9780 WlanTxTransferRequest,
9781 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
9782 >(
9783 payload,
9784 0x19f8ff7a8b910ab3,
9785 fidl::encoding::DynamicFlags::empty(),
9786 ___deadline,
9787 )?;
9788 Ok(_response.map(|x| x))
9789 }
9790}
9791
9792#[cfg(target_os = "fuchsia")]
9793impl From<WlanTxSynchronousProxy> for zx::Handle {
9794 fn from(value: WlanTxSynchronousProxy) -> Self {
9795 value.into_channel().into()
9796 }
9797}
9798
9799#[cfg(target_os = "fuchsia")]
9800impl From<fidl::Channel> for WlanTxSynchronousProxy {
9801 fn from(value: fidl::Channel) -> Self {
9802 Self::new(value)
9803 }
9804}
9805
9806#[derive(Debug, Clone)]
9807pub struct WlanTxProxy {
9808 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
9809}
9810
9811impl fidl::endpoints::Proxy for WlanTxProxy {
9812 type Protocol = WlanTxMarker;
9813
9814 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
9815 Self::new(inner)
9816 }
9817
9818 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
9819 self.client.into_channel().map_err(|client| Self { client })
9820 }
9821
9822 fn as_channel(&self) -> &::fidl::AsyncChannel {
9823 self.client.as_channel()
9824 }
9825}
9826
9827impl WlanTxProxy {
9828 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
9830 let protocol_name = <WlanTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
9831 Self { client: fidl::client::Client::new(channel, protocol_name) }
9832 }
9833
9834 pub fn take_event_stream(&self) -> WlanTxEventStream {
9840 WlanTxEventStream { event_receiver: self.client.take_event_receiver() }
9841 }
9842
9843 pub fn r#transfer(
9844 &self,
9845 mut payload: &WlanTxTransferRequest,
9846 ) -> fidl::client::QueryResponseFut<
9847 WlanTxTransferResult,
9848 fidl::encoding::DefaultFuchsiaResourceDialect,
9849 > {
9850 WlanTxProxyInterface::r#transfer(self, payload)
9851 }
9852}
9853
9854impl WlanTxProxyInterface for WlanTxProxy {
9855 type TransferResponseFut = fidl::client::QueryResponseFut<
9856 WlanTxTransferResult,
9857 fidl::encoding::DefaultFuchsiaResourceDialect,
9858 >;
9859 fn r#transfer(&self, mut payload: &WlanTxTransferRequest) -> Self::TransferResponseFut {
9860 fn _decode(
9861 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
9862 ) -> Result<WlanTxTransferResult, fidl::Error> {
9863 let _response = fidl::client::decode_transaction_body::<
9864 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
9865 fidl::encoding::DefaultFuchsiaResourceDialect,
9866 0x19f8ff7a8b910ab3,
9867 >(_buf?)?;
9868 Ok(_response.map(|x| x))
9869 }
9870 self.client.send_query_and_decode::<WlanTxTransferRequest, WlanTxTransferResult>(
9871 payload,
9872 0x19f8ff7a8b910ab3,
9873 fidl::encoding::DynamicFlags::empty(),
9874 _decode,
9875 )
9876 }
9877}
9878
9879pub struct WlanTxEventStream {
9880 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
9881}
9882
9883impl std::marker::Unpin for WlanTxEventStream {}
9884
9885impl futures::stream::FusedStream for WlanTxEventStream {
9886 fn is_terminated(&self) -> bool {
9887 self.event_receiver.is_terminated()
9888 }
9889}
9890
9891impl futures::Stream for WlanTxEventStream {
9892 type Item = Result<WlanTxEvent, fidl::Error>;
9893
9894 fn poll_next(
9895 mut self: std::pin::Pin<&mut Self>,
9896 cx: &mut std::task::Context<'_>,
9897 ) -> std::task::Poll<Option<Self::Item>> {
9898 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
9899 &mut self.event_receiver,
9900 cx
9901 )?) {
9902 Some(buf) => std::task::Poll::Ready(Some(WlanTxEvent::decode(buf))),
9903 None => std::task::Poll::Ready(None),
9904 }
9905 }
9906}
9907
9908#[derive(Debug)]
9909pub enum WlanTxEvent {}
9910
9911impl WlanTxEvent {
9912 fn decode(
9914 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
9915 ) -> Result<WlanTxEvent, fidl::Error> {
9916 let (bytes, _handles) = buf.split_mut();
9917 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
9918 debug_assert_eq!(tx_header.tx_id, 0);
9919 match tx_header.ordinal {
9920 _ => Err(fidl::Error::UnknownOrdinal {
9921 ordinal: tx_header.ordinal,
9922 protocol_name: <WlanTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
9923 }),
9924 }
9925 }
9926}
9927
9928pub struct WlanTxRequestStream {
9930 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
9931 is_terminated: bool,
9932}
9933
9934impl std::marker::Unpin for WlanTxRequestStream {}
9935
9936impl futures::stream::FusedStream for WlanTxRequestStream {
9937 fn is_terminated(&self) -> bool {
9938 self.is_terminated
9939 }
9940}
9941
9942impl fidl::endpoints::RequestStream for WlanTxRequestStream {
9943 type Protocol = WlanTxMarker;
9944 type ControlHandle = WlanTxControlHandle;
9945
9946 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
9947 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
9948 }
9949
9950 fn control_handle(&self) -> Self::ControlHandle {
9951 WlanTxControlHandle { inner: self.inner.clone() }
9952 }
9953
9954 fn into_inner(
9955 self,
9956 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
9957 {
9958 (self.inner, self.is_terminated)
9959 }
9960
9961 fn from_inner(
9962 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
9963 is_terminated: bool,
9964 ) -> Self {
9965 Self { inner, is_terminated }
9966 }
9967}
9968
9969impl futures::Stream for WlanTxRequestStream {
9970 type Item = Result<WlanTxRequest, fidl::Error>;
9971
9972 fn poll_next(
9973 mut self: std::pin::Pin<&mut Self>,
9974 cx: &mut std::task::Context<'_>,
9975 ) -> std::task::Poll<Option<Self::Item>> {
9976 let this = &mut *self;
9977 if this.inner.check_shutdown(cx) {
9978 this.is_terminated = true;
9979 return std::task::Poll::Ready(None);
9980 }
9981 if this.is_terminated {
9982 panic!("polled WlanTxRequestStream after completion");
9983 }
9984 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
9985 |bytes, handles| {
9986 match this.inner.channel().read_etc(cx, bytes, handles) {
9987 std::task::Poll::Ready(Ok(())) => {}
9988 std::task::Poll::Pending => return std::task::Poll::Pending,
9989 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
9990 this.is_terminated = true;
9991 return std::task::Poll::Ready(None);
9992 }
9993 std::task::Poll::Ready(Err(e)) => {
9994 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
9995 e.into(),
9996 ))))
9997 }
9998 }
9999
10000 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
10002
10003 std::task::Poll::Ready(Some(match header.ordinal {
10004 0x19f8ff7a8b910ab3 => {
10005 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
10006 let mut req = fidl::new_empty!(
10007 WlanTxTransferRequest,
10008 fidl::encoding::DefaultFuchsiaResourceDialect
10009 );
10010 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanTxTransferRequest>(&header, _body_bytes, handles, &mut req)?;
10011 let control_handle = WlanTxControlHandle { inner: this.inner.clone() };
10012 Ok(WlanTxRequest::Transfer {
10013 payload: req,
10014 responder: WlanTxTransferResponder {
10015 control_handle: std::mem::ManuallyDrop::new(control_handle),
10016 tx_id: header.tx_id,
10017 },
10018 })
10019 }
10020 _ => Err(fidl::Error::UnknownOrdinal {
10021 ordinal: header.ordinal,
10022 protocol_name:
10023 <WlanTxMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
10024 }),
10025 }))
10026 },
10027 )
10028 }
10029}
10030
10031#[derive(Debug)]
10040pub enum WlanTxRequest {
10041 Transfer { payload: WlanTxTransferRequest, responder: WlanTxTransferResponder },
10042}
10043
10044impl WlanTxRequest {
10045 #[allow(irrefutable_let_patterns)]
10046 pub fn into_transfer(self) -> Option<(WlanTxTransferRequest, WlanTxTransferResponder)> {
10047 if let WlanTxRequest::Transfer { payload, responder } = self {
10048 Some((payload, responder))
10049 } else {
10050 None
10051 }
10052 }
10053
10054 pub fn method_name(&self) -> &'static str {
10056 match *self {
10057 WlanTxRequest::Transfer { .. } => "transfer",
10058 }
10059 }
10060}
10061
10062#[derive(Debug, Clone)]
10063pub struct WlanTxControlHandle {
10064 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
10065}
10066
10067impl fidl::endpoints::ControlHandle for WlanTxControlHandle {
10068 fn shutdown(&self) {
10069 self.inner.shutdown()
10070 }
10071 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
10072 self.inner.shutdown_with_epitaph(status)
10073 }
10074
10075 fn is_closed(&self) -> bool {
10076 self.inner.channel().is_closed()
10077 }
10078 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
10079 self.inner.channel().on_closed()
10080 }
10081
10082 #[cfg(target_os = "fuchsia")]
10083 fn signal_peer(
10084 &self,
10085 clear_mask: zx::Signals,
10086 set_mask: zx::Signals,
10087 ) -> Result<(), zx_status::Status> {
10088 use fidl::Peered;
10089 self.inner.channel().signal_peer(clear_mask, set_mask)
10090 }
10091}
10092
10093impl WlanTxControlHandle {}
10094
10095#[must_use = "FIDL methods require a response to be sent"]
10096#[derive(Debug)]
10097pub struct WlanTxTransferResponder {
10098 control_handle: std::mem::ManuallyDrop<WlanTxControlHandle>,
10099 tx_id: u32,
10100}
10101
10102impl std::ops::Drop for WlanTxTransferResponder {
10106 fn drop(&mut self) {
10107 self.control_handle.shutdown();
10108 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10110 }
10111}
10112
10113impl fidl::endpoints::Responder for WlanTxTransferResponder {
10114 type ControlHandle = WlanTxControlHandle;
10115
10116 fn control_handle(&self) -> &WlanTxControlHandle {
10117 &self.control_handle
10118 }
10119
10120 fn drop_without_shutdown(mut self) {
10121 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10123 std::mem::forget(self);
10125 }
10126}
10127
10128impl WlanTxTransferResponder {
10129 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
10133 let _result = self.send_raw(result);
10134 if _result.is_err() {
10135 self.control_handle.shutdown();
10136 }
10137 self.drop_without_shutdown();
10138 _result
10139 }
10140
10141 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
10143 let _result = self.send_raw(result);
10144 self.drop_without_shutdown();
10145 _result
10146 }
10147
10148 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
10149 self.control_handle
10150 .inner
10151 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
10152 result,
10153 self.tx_id,
10154 0x19f8ff7a8b910ab3,
10155 fidl::encoding::DynamicFlags::empty(),
10156 )
10157 }
10158}
10159
10160mod internal {
10161 use super::*;
10162
10163 impl fidl::encoding::ResourceTypeMarker for WlanSoftmacBridgeStartRequest {
10164 type Borrowed<'a> = &'a mut Self;
10165 fn take_or_borrow<'a>(
10166 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
10167 ) -> Self::Borrowed<'a> {
10168 value
10169 }
10170 }
10171
10172 unsafe impl fidl::encoding::TypeMarker for WlanSoftmacBridgeStartRequest {
10173 type Owned = Self;
10174
10175 #[inline(always)]
10176 fn inline_align(_context: fidl::encoding::Context) -> usize {
10177 8
10178 }
10179
10180 #[inline(always)]
10181 fn inline_size(_context: fidl::encoding::Context) -> usize {
10182 24
10183 }
10184 }
10185
10186 unsafe impl
10187 fidl::encoding::Encode<
10188 WlanSoftmacBridgeStartRequest,
10189 fidl::encoding::DefaultFuchsiaResourceDialect,
10190 > for &mut WlanSoftmacBridgeStartRequest
10191 {
10192 #[inline]
10193 unsafe fn encode(
10194 self,
10195 encoder: &mut fidl::encoding::Encoder<
10196 '_,
10197 fidl::encoding::DefaultFuchsiaResourceDialect,
10198 >,
10199 offset: usize,
10200 _depth: fidl::encoding::Depth,
10201 ) -> fidl::Result<()> {
10202 encoder.debug_check_bounds::<WlanSoftmacBridgeStartRequest>(offset);
10203 fidl::encoding::Encode::<
10205 WlanSoftmacBridgeStartRequest,
10206 fidl::encoding::DefaultFuchsiaResourceDialect,
10207 >::encode(
10208 (
10209 <fidl::encoding::Endpoint<
10210 fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
10211 > as fidl::encoding::ResourceTypeMarker>::take_or_borrow(
10212 &mut self.ifc_bridge
10213 ),
10214 <u64 as fidl::encoding::ValueTypeMarker>::borrow(&self.ethernet_tx),
10215 <u64 as fidl::encoding::ValueTypeMarker>::borrow(&self.wlan_rx),
10216 ),
10217 encoder,
10218 offset,
10219 _depth,
10220 )
10221 }
10222 }
10223 unsafe impl<
10224 T0: fidl::encoding::Encode<
10225 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>>,
10226 fidl::encoding::DefaultFuchsiaResourceDialect,
10227 >,
10228 T1: fidl::encoding::Encode<u64, fidl::encoding::DefaultFuchsiaResourceDialect>,
10229 T2: fidl::encoding::Encode<u64, fidl::encoding::DefaultFuchsiaResourceDialect>,
10230 >
10231 fidl::encoding::Encode<
10232 WlanSoftmacBridgeStartRequest,
10233 fidl::encoding::DefaultFuchsiaResourceDialect,
10234 > for (T0, T1, T2)
10235 {
10236 #[inline]
10237 unsafe fn encode(
10238 self,
10239 encoder: &mut fidl::encoding::Encoder<
10240 '_,
10241 fidl::encoding::DefaultFuchsiaResourceDialect,
10242 >,
10243 offset: usize,
10244 depth: fidl::encoding::Depth,
10245 ) -> fidl::Result<()> {
10246 encoder.debug_check_bounds::<WlanSoftmacBridgeStartRequest>(offset);
10247 unsafe {
10250 let ptr = encoder.buf.as_mut_ptr().add(offset).offset(0);
10251 (ptr as *mut u64).write_unaligned(0);
10252 }
10253 self.0.encode(encoder, offset + 0, depth)?;
10255 self.1.encode(encoder, offset + 8, depth)?;
10256 self.2.encode(encoder, offset + 16, depth)?;
10257 Ok(())
10258 }
10259 }
10260
10261 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
10262 for WlanSoftmacBridgeStartRequest
10263 {
10264 #[inline(always)]
10265 fn new_empty() -> Self {
10266 Self {
10267 ifc_bridge: fidl::new_empty!(
10268 fidl::encoding::Endpoint<
10269 fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>,
10270 >,
10271 fidl::encoding::DefaultFuchsiaResourceDialect
10272 ),
10273 ethernet_tx: fidl::new_empty!(u64, fidl::encoding::DefaultFuchsiaResourceDialect),
10274 wlan_rx: fidl::new_empty!(u64, fidl::encoding::DefaultFuchsiaResourceDialect),
10275 }
10276 }
10277
10278 #[inline]
10279 unsafe fn decode(
10280 &mut self,
10281 decoder: &mut fidl::encoding::Decoder<
10282 '_,
10283 fidl::encoding::DefaultFuchsiaResourceDialect,
10284 >,
10285 offset: usize,
10286 _depth: fidl::encoding::Depth,
10287 ) -> fidl::Result<()> {
10288 decoder.debug_check_bounds::<Self>(offset);
10289 let ptr = unsafe { decoder.buf.as_ptr().add(offset).offset(0) };
10291 let padval = unsafe { (ptr as *const u64).read_unaligned() };
10292 let mask = 0xffffffff00000000u64;
10293 let maskedval = padval & mask;
10294 if maskedval != 0 {
10295 return Err(fidl::Error::NonZeroPadding {
10296 padding_start: offset + 0 + ((mask as u64).trailing_zeros() / 8) as usize,
10297 });
10298 }
10299 fidl::decode!(
10300 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<WlanSoftmacIfcBridgeMarker>>,
10301 fidl::encoding::DefaultFuchsiaResourceDialect,
10302 &mut self.ifc_bridge,
10303 decoder,
10304 offset + 0,
10305 _depth
10306 )?;
10307 fidl::decode!(
10308 u64,
10309 fidl::encoding::DefaultFuchsiaResourceDialect,
10310 &mut self.ethernet_tx,
10311 decoder,
10312 offset + 8,
10313 _depth
10314 )?;
10315 fidl::decode!(
10316 u64,
10317 fidl::encoding::DefaultFuchsiaResourceDialect,
10318 &mut self.wlan_rx,
10319 decoder,
10320 offset + 16,
10321 _depth
10322 )?;
10323 Ok(())
10324 }
10325 }
10326
10327 impl fidl::encoding::ResourceTypeMarker for WlanSoftmacBridgeStartResponse {
10328 type Borrowed<'a> = &'a mut Self;
10329 fn take_or_borrow<'a>(
10330 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
10331 ) -> Self::Borrowed<'a> {
10332 value
10333 }
10334 }
10335
10336 unsafe impl fidl::encoding::TypeMarker for WlanSoftmacBridgeStartResponse {
10337 type Owned = Self;
10338
10339 #[inline(always)]
10340 fn inline_align(_context: fidl::encoding::Context) -> usize {
10341 4
10342 }
10343
10344 #[inline(always)]
10345 fn inline_size(_context: fidl::encoding::Context) -> usize {
10346 4
10347 }
10348 }
10349
10350 unsafe impl
10351 fidl::encoding::Encode<
10352 WlanSoftmacBridgeStartResponse,
10353 fidl::encoding::DefaultFuchsiaResourceDialect,
10354 > for &mut WlanSoftmacBridgeStartResponse
10355 {
10356 #[inline]
10357 unsafe fn encode(
10358 self,
10359 encoder: &mut fidl::encoding::Encoder<
10360 '_,
10361 fidl::encoding::DefaultFuchsiaResourceDialect,
10362 >,
10363 offset: usize,
10364 _depth: fidl::encoding::Depth,
10365 ) -> fidl::Result<()> {
10366 encoder.debug_check_bounds::<WlanSoftmacBridgeStartResponse>(offset);
10367 fidl::encoding::Encode::<
10369 WlanSoftmacBridgeStartResponse,
10370 fidl::encoding::DefaultFuchsiaResourceDialect,
10371 >::encode(
10372 (<fidl::encoding::HandleType<
10373 fidl::Channel,
10374 { fidl::ObjectType::CHANNEL.into_raw() },
10375 2147483648,
10376 > as fidl::encoding::ResourceTypeMarker>::take_or_borrow(
10377 &mut self.sme_channel
10378 ),),
10379 encoder,
10380 offset,
10381 _depth,
10382 )
10383 }
10384 }
10385 unsafe impl<
10386 T0: fidl::encoding::Encode<
10387 fidl::encoding::HandleType<
10388 fidl::Channel,
10389 { fidl::ObjectType::CHANNEL.into_raw() },
10390 2147483648,
10391 >,
10392 fidl::encoding::DefaultFuchsiaResourceDialect,
10393 >,
10394 >
10395 fidl::encoding::Encode<
10396 WlanSoftmacBridgeStartResponse,
10397 fidl::encoding::DefaultFuchsiaResourceDialect,
10398 > for (T0,)
10399 {
10400 #[inline]
10401 unsafe fn encode(
10402 self,
10403 encoder: &mut fidl::encoding::Encoder<
10404 '_,
10405 fidl::encoding::DefaultFuchsiaResourceDialect,
10406 >,
10407 offset: usize,
10408 depth: fidl::encoding::Depth,
10409 ) -> fidl::Result<()> {
10410 encoder.debug_check_bounds::<WlanSoftmacBridgeStartResponse>(offset);
10411 self.0.encode(encoder, offset + 0, depth)?;
10415 Ok(())
10416 }
10417 }
10418
10419 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
10420 for WlanSoftmacBridgeStartResponse
10421 {
10422 #[inline(always)]
10423 fn new_empty() -> Self {
10424 Self {
10425 sme_channel: fidl::new_empty!(fidl::encoding::HandleType<fidl::Channel, { fidl::ObjectType::CHANNEL.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect),
10426 }
10427 }
10428
10429 #[inline]
10430 unsafe fn decode(
10431 &mut self,
10432 decoder: &mut fidl::encoding::Decoder<
10433 '_,
10434 fidl::encoding::DefaultFuchsiaResourceDialect,
10435 >,
10436 offset: usize,
10437 _depth: fidl::encoding::Depth,
10438 ) -> fidl::Result<()> {
10439 decoder.debug_check_bounds::<Self>(offset);
10440 fidl::decode!(fidl::encoding::HandleType<fidl::Channel, { fidl::ObjectType::CHANNEL.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect, &mut self.sme_channel, decoder, offset + 0, _depth)?;
10442 Ok(())
10443 }
10444 }
10445}