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_fullmac_common::*;
11use futures::future::{self, MaybeDone, TryFutureExt};
12use zx_status;
13
14#[derive(Debug, Default, PartialEq)]
15pub struct WlanFullmacImplInitRequest {
16 pub ifc: Option<fidl::endpoints::ClientEnd<WlanFullmacImplIfcMarker>>,
19 #[doc(hidden)]
20 pub __source_breaking: fidl::marker::SourceBreaking,
21}
22
23impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
24 for WlanFullmacImplInitRequest
25{
26}
27
28#[derive(Debug, Default, PartialEq)]
29pub struct WlanFullmacImplInitResponse {
30 pub sme_channel: Option<fidl::Channel>,
33 #[doc(hidden)]
34 pub __source_breaking: fidl::marker::SourceBreaking,
35}
36
37impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
38 for WlanFullmacImplInitResponse
39{
40}
41
42#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
43pub struct WlanFullmacImpl_Marker;
44
45impl fidl::endpoints::ProtocolMarker for WlanFullmacImpl_Marker {
46 type Proxy = WlanFullmacImpl_Proxy;
47 type RequestStream = WlanFullmacImpl_RequestStream;
48 #[cfg(target_os = "fuchsia")]
49 type SynchronousProxy = WlanFullmacImpl_SynchronousProxy;
50
51 const DEBUG_NAME: &'static str = "fuchsia.wlan.fullmac.WlanFullmacImpl";
52}
53impl fidl::endpoints::DiscoverableProtocolMarker for WlanFullmacImpl_Marker {}
54pub type WlanFullmacImplInitResult = Result<WlanFullmacImplInitResponse, i32>;
55pub type WlanFullmacImplQueryResult = Result<WlanFullmacImplQueryResponse, i32>;
56pub type WlanFullmacImplQuerySecuritySupportResult =
57 Result<fidl_fuchsia_wlan_common::SecuritySupport, i32>;
58pub type WlanFullmacImplQuerySpectrumManagementSupportResult =
59 Result<fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>;
60pub type WlanFullmacImplQueryTelemetrySupportResult =
61 Result<fidl_fuchsia_wlan_stats::TelemetrySupport, i32>;
62pub type WlanFullmacImplGetIfaceStatsResult = Result<fidl_fuchsia_wlan_stats::IfaceStats, i32>;
63pub type WlanFullmacImplGetIfaceHistogramStatsResult =
64 Result<fidl_fuchsia_wlan_stats::IfaceHistogramStats, i32>;
65
66pub trait WlanFullmacImpl_ProxyInterface: Send + Sync {
67 type InitResponseFut: std::future::Future<Output = Result<WlanFullmacImplInitResult, fidl::Error>>
68 + Send;
69 fn r#init(&self, payload: WlanFullmacImplInitRequest) -> Self::InitResponseFut;
70 type QueryResponseFut: std::future::Future<Output = Result<WlanFullmacImplQueryResult, fidl::Error>>
71 + Send;
72 fn r#query(&self) -> Self::QueryResponseFut;
73 type QuerySecuritySupportResponseFut: std::future::Future<Output = Result<WlanFullmacImplQuerySecuritySupportResult, fidl::Error>>
74 + Send;
75 fn r#query_security_support(&self) -> Self::QuerySecuritySupportResponseFut;
76 type QuerySpectrumManagementSupportResponseFut: std::future::Future<
77 Output = Result<WlanFullmacImplQuerySpectrumManagementSupportResult, fidl::Error>,
78 > + Send;
79 fn r#query_spectrum_management_support(
80 &self,
81 ) -> Self::QuerySpectrumManagementSupportResponseFut;
82 type QueryTelemetrySupportResponseFut: std::future::Future<
83 Output = Result<WlanFullmacImplQueryTelemetrySupportResult, fidl::Error>,
84 > + Send;
85 fn r#query_telemetry_support(&self) -> Self::QueryTelemetrySupportResponseFut;
86 type StartScanResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
87 fn r#start_scan(&self, payload: &WlanFullmacImplStartScanRequest)
88 -> Self::StartScanResponseFut;
89 type ConnectResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
90 fn r#connect(&self, payload: &WlanFullmacImplConnectRequest) -> Self::ConnectResponseFut;
91 type ReconnectResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
92 fn r#reconnect(&self, payload: &WlanFullmacImplReconnectRequest) -> Self::ReconnectResponseFut;
93 type RoamResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
94 fn r#roam(&self, payload: &WlanFullmacImplRoamRequest) -> Self::RoamResponseFut;
95 type AuthRespResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
96 fn r#auth_resp(&self, payload: &WlanFullmacImplAuthRespRequest) -> Self::AuthRespResponseFut;
97 type DeauthResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
98 fn r#deauth(&self, payload: &WlanFullmacImplDeauthRequest) -> Self::DeauthResponseFut;
99 type AssocRespResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
100 fn r#assoc_resp(&self, payload: &WlanFullmacImplAssocRespRequest)
101 -> Self::AssocRespResponseFut;
102 type DisassocResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
103 fn r#disassoc(&self, payload: &WlanFullmacImplDisassocRequest) -> Self::DisassocResponseFut;
104 type StartBssResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
105 fn r#start_bss(&self, payload: &WlanFullmacImplStartBssRequest) -> Self::StartBssResponseFut;
106 type StopBssResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
107 fn r#stop_bss(&self, payload: &WlanFullmacImplStopBssRequest) -> Self::StopBssResponseFut;
108 type SetKeysResponseFut: std::future::Future<Output = Result<WlanFullmacSetKeysResp, fidl::Error>>
109 + Send;
110 fn r#set_keys(&self, payload: &WlanFullmacImplSetKeysRequest) -> Self::SetKeysResponseFut;
111 type EapolTxResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
112 fn r#eapol_tx(&self, payload: &WlanFullmacImplEapolTxRequest) -> Self::EapolTxResponseFut;
113 type GetIfaceStatsResponseFut: std::future::Future<Output = Result<WlanFullmacImplGetIfaceStatsResult, fidl::Error>>
114 + Send;
115 fn r#get_iface_stats(&self) -> Self::GetIfaceStatsResponseFut;
116 type GetIfaceHistogramStatsResponseFut: std::future::Future<
117 Output = Result<WlanFullmacImplGetIfaceHistogramStatsResult, fidl::Error>,
118 > + Send;
119 fn r#get_iface_histogram_stats(&self) -> Self::GetIfaceHistogramStatsResponseFut;
120 type SaeHandshakeRespResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
121 fn r#sae_handshake_resp(
122 &self,
123 payload: &WlanFullmacImplSaeHandshakeRespRequest,
124 ) -> Self::SaeHandshakeRespResponseFut;
125 type SaeFrameTxResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
126 fn r#sae_frame_tx(&self, frame: &SaeFrame) -> Self::SaeFrameTxResponseFut;
127 type WmmStatusReqResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
128 fn r#wmm_status_req(&self) -> Self::WmmStatusReqResponseFut;
129 type OnLinkStateChangedResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
130 fn r#on_link_state_changed(
131 &self,
132 payload: &WlanFullmacImplOnLinkStateChangedRequest,
133 ) -> Self::OnLinkStateChangedResponseFut;
134}
135#[derive(Debug)]
136#[cfg(target_os = "fuchsia")]
137pub struct WlanFullmacImpl_SynchronousProxy {
138 client: fidl::client::sync::Client,
139}
140
141#[cfg(target_os = "fuchsia")]
142impl fidl::endpoints::SynchronousProxy for WlanFullmacImpl_SynchronousProxy {
143 type Proxy = WlanFullmacImpl_Proxy;
144 type Protocol = WlanFullmacImpl_Marker;
145
146 fn from_channel(inner: fidl::Channel) -> Self {
147 Self::new(inner)
148 }
149
150 fn into_channel(self) -> fidl::Channel {
151 self.client.into_channel()
152 }
153
154 fn as_channel(&self) -> &fidl::Channel {
155 self.client.as_channel()
156 }
157}
158
159#[cfg(target_os = "fuchsia")]
160impl WlanFullmacImpl_SynchronousProxy {
161 pub fn new(channel: fidl::Channel) -> Self {
162 let protocol_name = <WlanFullmacImpl_Marker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
163 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
164 }
165
166 pub fn into_channel(self) -> fidl::Channel {
167 self.client.into_channel()
168 }
169
170 pub fn wait_for_event(
173 &self,
174 deadline: zx::MonotonicInstant,
175 ) -> Result<WlanFullmacImpl_Event, fidl::Error> {
176 WlanFullmacImpl_Event::decode(self.client.wait_for_event(deadline)?)
177 }
178
179 pub fn r#init(
195 &self,
196 mut payload: WlanFullmacImplInitRequest,
197 ___deadline: zx::MonotonicInstant,
198 ) -> Result<WlanFullmacImplInitResult, fidl::Error> {
199 let _response = self.client.send_query::<
200 WlanFullmacImplInitRequest,
201 fidl::encoding::ResultType<WlanFullmacImplInitResponse, i32>,
202 >(
203 &mut payload,
204 0x593dfb6cb3f0f1aa,
205 fidl::encoding::DynamicFlags::empty(),
206 ___deadline,
207 )?;
208 Ok(_response.map(|x| x))
209 }
210
211 pub fn r#query(
214 &self,
215 ___deadline: zx::MonotonicInstant,
216 ) -> Result<WlanFullmacImplQueryResult, fidl::Error> {
217 let _response = self.client.send_query::<
218 fidl::encoding::EmptyPayload,
219 fidl::encoding::ResultType<WlanFullmacImplQueryResponse, i32>,
220 >(
221 (),
222 0x28ac65f9da3941d4,
223 fidl::encoding::DynamicFlags::empty(),
224 ___deadline,
225 )?;
226 Ok(_response.map(|x| x))
227 }
228
229 pub fn r#query_security_support(
230 &self,
231 ___deadline: zx::MonotonicInstant,
232 ) -> Result<WlanFullmacImplQuerySecuritySupportResult, fidl::Error> {
233 let _response =
234 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
235 WlanFullmacImplQuerySecuritySupportResponse,
236 i32,
237 >>(
238 (),
239 0x11cf3fa6eeb93f84,
240 fidl::encoding::DynamicFlags::empty(),
241 ___deadline,
242 )?;
243 Ok(_response.map(|x| x.resp))
244 }
245
246 pub fn r#query_spectrum_management_support(
247 &self,
248 ___deadline: zx::MonotonicInstant,
249 ) -> Result<WlanFullmacImplQuerySpectrumManagementSupportResult, fidl::Error> {
250 let _response = self
251 .client
252 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
253 WlanFullmacImplQuerySpectrumManagementSupportResponse,
254 i32,
255 >>(
256 (), 0x22ae7551d855b83a, fidl::encoding::DynamicFlags::empty(), ___deadline
257 )?;
258 Ok(_response.map(|x| x.resp))
259 }
260
261 pub fn r#query_telemetry_support(
262 &self,
263 ___deadline: zx::MonotonicInstant,
264 ) -> Result<WlanFullmacImplQueryTelemetrySupportResult, fidl::Error> {
265 let _response =
266 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
267 WlanFullmacImplQueryTelemetrySupportResponse,
268 i32,
269 >>(
270 (),
271 0x4561479ca560827f,
272 fidl::encoding::DynamicFlags::empty(),
273 ___deadline,
274 )?;
275 Ok(_response.map(|x| x.resp))
276 }
277
278 pub fn r#start_scan(
279 &self,
280 mut payload: &WlanFullmacImplStartScanRequest,
281 ___deadline: zx::MonotonicInstant,
282 ) -> Result<(), fidl::Error> {
283 let _response = self
284 .client
285 .send_query::<WlanFullmacImplStartScanRequest, fidl::encoding::EmptyPayload>(
286 payload,
287 0x26c17bf595aa161c,
288 fidl::encoding::DynamicFlags::empty(),
289 ___deadline,
290 )?;
291 Ok(_response)
292 }
293
294 pub fn r#connect(
295 &self,
296 mut payload: &WlanFullmacImplConnectRequest,
297 ___deadline: zx::MonotonicInstant,
298 ) -> Result<(), fidl::Error> {
299 let _response =
300 self.client.send_query::<WlanFullmacImplConnectRequest, fidl::encoding::EmptyPayload>(
301 payload,
302 0x19eb0322efb07a76,
303 fidl::encoding::DynamicFlags::empty(),
304 ___deadline,
305 )?;
306 Ok(_response)
307 }
308
309 pub fn r#reconnect(
310 &self,
311 mut payload: &WlanFullmacImplReconnectRequest,
312 ___deadline: zx::MonotonicInstant,
313 ) -> Result<(), fidl::Error> {
314 let _response = self
315 .client
316 .send_query::<WlanFullmacImplReconnectRequest, fidl::encoding::EmptyPayload>(
317 payload,
318 0x474084c4ef19ee71,
319 fidl::encoding::DynamicFlags::empty(),
320 ___deadline,
321 )?;
322 Ok(_response)
323 }
324
325 pub fn r#roam(
327 &self,
328 mut payload: &WlanFullmacImplRoamRequest,
329 ___deadline: zx::MonotonicInstant,
330 ) -> Result<(), fidl::Error> {
331 let _response =
332 self.client.send_query::<WlanFullmacImplRoamRequest, fidl::encoding::EmptyPayload>(
333 payload,
334 0x1e35dcc98b124b64,
335 fidl::encoding::DynamicFlags::empty(),
336 ___deadline,
337 )?;
338 Ok(_response)
339 }
340
341 pub fn r#auth_resp(
342 &self,
343 mut payload: &WlanFullmacImplAuthRespRequest,
344 ___deadline: zx::MonotonicInstant,
345 ) -> Result<(), fidl::Error> {
346 let _response = self
347 .client
348 .send_query::<WlanFullmacImplAuthRespRequest, fidl::encoding::EmptyPayload>(
349 payload,
350 0x5f7ea24b44a4aaeb,
351 fidl::encoding::DynamicFlags::empty(),
352 ___deadline,
353 )?;
354 Ok(_response)
355 }
356
357 pub fn r#deauth(
358 &self,
359 mut payload: &WlanFullmacImplDeauthRequest,
360 ___deadline: zx::MonotonicInstant,
361 ) -> Result<(), fidl::Error> {
362 let _response =
363 self.client.send_query::<WlanFullmacImplDeauthRequest, fidl::encoding::EmptyPayload>(
364 payload,
365 0x112786eccbf12f37,
366 fidl::encoding::DynamicFlags::empty(),
367 ___deadline,
368 )?;
369 Ok(_response)
370 }
371
372 pub fn r#assoc_resp(
373 &self,
374 mut payload: &WlanFullmacImplAssocRespRequest,
375 ___deadline: zx::MonotonicInstant,
376 ) -> Result<(), fidl::Error> {
377 let _response = self
378 .client
379 .send_query::<WlanFullmacImplAssocRespRequest, fidl::encoding::EmptyPayload>(
380 payload,
381 0x5022ce6b8eefec2f,
382 fidl::encoding::DynamicFlags::empty(),
383 ___deadline,
384 )?;
385 Ok(_response)
386 }
387
388 pub fn r#disassoc(
389 &self,
390 mut payload: &WlanFullmacImplDisassocRequest,
391 ___deadline: zx::MonotonicInstant,
392 ) -> Result<(), fidl::Error> {
393 let _response = self
394 .client
395 .send_query::<WlanFullmacImplDisassocRequest, fidl::encoding::EmptyPayload>(
396 payload,
397 0x9c0fc4e8de53e01,
398 fidl::encoding::DynamicFlags::empty(),
399 ___deadline,
400 )?;
401 Ok(_response)
402 }
403
404 pub fn r#start_bss(
405 &self,
406 mut payload: &WlanFullmacImplStartBssRequest,
407 ___deadline: zx::MonotonicInstant,
408 ) -> Result<(), fidl::Error> {
409 let _response = self
410 .client
411 .send_query::<WlanFullmacImplStartBssRequest, fidl::encoding::EmptyPayload>(
412 payload,
413 0x6922644d6b1d341d,
414 fidl::encoding::DynamicFlags::empty(),
415 ___deadline,
416 )?;
417 Ok(_response)
418 }
419
420 pub fn r#stop_bss(
421 &self,
422 mut payload: &WlanFullmacImplStopBssRequest,
423 ___deadline: zx::MonotonicInstant,
424 ) -> Result<(), fidl::Error> {
425 let _response =
426 self.client.send_query::<WlanFullmacImplStopBssRequest, fidl::encoding::EmptyPayload>(
427 payload,
428 0x5aeb9b72e7575268,
429 fidl::encoding::DynamicFlags::empty(),
430 ___deadline,
431 )?;
432 Ok(_response)
433 }
434
435 pub fn r#set_keys(
441 &self,
442 mut payload: &WlanFullmacImplSetKeysRequest,
443 ___deadline: zx::MonotonicInstant,
444 ) -> Result<WlanFullmacSetKeysResp, fidl::Error> {
445 let _response = self
446 .client
447 .send_query::<WlanFullmacImplSetKeysRequest, WlanFullmacImplSetKeysResponse>(
448 payload,
449 0x20f46b1e039f0985,
450 fidl::encoding::DynamicFlags::empty(),
451 ___deadline,
452 )?;
453 Ok(_response.resp)
454 }
455
456 pub fn r#eapol_tx(
457 &self,
458 mut payload: &WlanFullmacImplEapolTxRequest,
459 ___deadline: zx::MonotonicInstant,
460 ) -> Result<(), fidl::Error> {
461 let _response =
462 self.client.send_query::<WlanFullmacImplEapolTxRequest, fidl::encoding::EmptyPayload>(
463 payload,
464 0x529a2d90fd4c8177,
465 fidl::encoding::DynamicFlags::empty(),
466 ___deadline,
467 )?;
468 Ok(_response)
469 }
470
471 pub fn r#get_iface_stats(
472 &self,
473 ___deadline: zx::MonotonicInstant,
474 ) -> Result<WlanFullmacImplGetIfaceStatsResult, fidl::Error> {
475 let _response = self.client.send_query::<
476 fidl::encoding::EmptyPayload,
477 fidl::encoding::ResultType<WlanFullmacImplGetIfaceStatsResponse, i32>,
478 >(
479 (),
480 0x505563776ef0392f,
481 fidl::encoding::DynamicFlags::empty(),
482 ___deadline,
483 )?;
484 Ok(_response.map(|x| x.stats))
485 }
486
487 pub fn r#get_iface_histogram_stats(
488 &self,
489 ___deadline: zx::MonotonicInstant,
490 ) -> Result<WlanFullmacImplGetIfaceHistogramStatsResult, fidl::Error> {
491 let _response =
492 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
493 WlanFullmacImplGetIfaceHistogramStatsResponse,
494 i32,
495 >>(
496 (),
497 0x503d586f30ccf2cd,
498 fidl::encoding::DynamicFlags::empty(),
499 ___deadline,
500 )?;
501 Ok(_response.map(|x| x.stats))
502 }
503
504 pub fn r#sae_handshake_resp(
506 &self,
507 mut payload: &WlanFullmacImplSaeHandshakeRespRequest,
508 ___deadline: zx::MonotonicInstant,
509 ) -> Result<(), fidl::Error> {
510 let _response = self
511 .client
512 .send_query::<WlanFullmacImplSaeHandshakeRespRequest, fidl::encoding::EmptyPayload>(
513 payload,
514 0x72cd3a31ae5a54f6,
515 fidl::encoding::DynamicFlags::empty(),
516 ___deadline,
517 )?;
518 Ok(_response)
519 }
520
521 pub fn r#sae_frame_tx(
523 &self,
524 mut frame: &SaeFrame,
525 ___deadline: zx::MonotonicInstant,
526 ) -> Result<(), fidl::Error> {
527 let _response = self
528 .client
529 .send_query::<WlanFullmacImplSaeFrameTxRequest, fidl::encoding::EmptyPayload>(
530 (frame,),
531 0x4715ad5dc5a6340f,
532 fidl::encoding::DynamicFlags::empty(),
533 ___deadline,
534 )?;
535 Ok(_response)
536 }
537
538 pub fn r#wmm_status_req(&self, ___deadline: zx::MonotonicInstant) -> Result<(), fidl::Error> {
539 let _response =
540 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::EmptyPayload>(
541 (),
542 0x635ecef3beb7a059,
543 fidl::encoding::DynamicFlags::empty(),
544 ___deadline,
545 )?;
546 Ok(_response)
547 }
548
549 pub fn r#on_link_state_changed(
550 &self,
551 mut payload: &WlanFullmacImplOnLinkStateChangedRequest,
552 ___deadline: zx::MonotonicInstant,
553 ) -> Result<(), fidl::Error> {
554 let _response = self
555 .client
556 .send_query::<WlanFullmacImplOnLinkStateChangedRequest, fidl::encoding::EmptyPayload>(
557 payload,
558 0x4d896e5b68e488d7,
559 fidl::encoding::DynamicFlags::empty(),
560 ___deadline,
561 )?;
562 Ok(_response)
563 }
564}
565
566#[cfg(target_os = "fuchsia")]
567impl From<WlanFullmacImpl_SynchronousProxy> for zx::Handle {
568 fn from(value: WlanFullmacImpl_SynchronousProxy) -> Self {
569 value.into_channel().into()
570 }
571}
572
573#[cfg(target_os = "fuchsia")]
574impl From<fidl::Channel> for WlanFullmacImpl_SynchronousProxy {
575 fn from(value: fidl::Channel) -> Self {
576 Self::new(value)
577 }
578}
579
580#[derive(Debug, Clone)]
581pub struct WlanFullmacImpl_Proxy {
582 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
583}
584
585impl fidl::endpoints::Proxy for WlanFullmacImpl_Proxy {
586 type Protocol = WlanFullmacImpl_Marker;
587
588 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
589 Self::new(inner)
590 }
591
592 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
593 self.client.into_channel().map_err(|client| Self { client })
594 }
595
596 fn as_channel(&self) -> &::fidl::AsyncChannel {
597 self.client.as_channel()
598 }
599}
600
601impl WlanFullmacImpl_Proxy {
602 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
604 let protocol_name = <WlanFullmacImpl_Marker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
605 Self { client: fidl::client::Client::new(channel, protocol_name) }
606 }
607
608 pub fn take_event_stream(&self) -> WlanFullmacImpl_EventStream {
614 WlanFullmacImpl_EventStream { event_receiver: self.client.take_event_receiver() }
615 }
616
617 pub fn r#init(
633 &self,
634 mut payload: WlanFullmacImplInitRequest,
635 ) -> fidl::client::QueryResponseFut<
636 WlanFullmacImplInitResult,
637 fidl::encoding::DefaultFuchsiaResourceDialect,
638 > {
639 WlanFullmacImpl_ProxyInterface::r#init(self, payload)
640 }
641
642 pub fn r#query(
645 &self,
646 ) -> fidl::client::QueryResponseFut<
647 WlanFullmacImplQueryResult,
648 fidl::encoding::DefaultFuchsiaResourceDialect,
649 > {
650 WlanFullmacImpl_ProxyInterface::r#query(self)
651 }
652
653 pub fn r#query_security_support(
654 &self,
655 ) -> fidl::client::QueryResponseFut<
656 WlanFullmacImplQuerySecuritySupportResult,
657 fidl::encoding::DefaultFuchsiaResourceDialect,
658 > {
659 WlanFullmacImpl_ProxyInterface::r#query_security_support(self)
660 }
661
662 pub fn r#query_spectrum_management_support(
663 &self,
664 ) -> fidl::client::QueryResponseFut<
665 WlanFullmacImplQuerySpectrumManagementSupportResult,
666 fidl::encoding::DefaultFuchsiaResourceDialect,
667 > {
668 WlanFullmacImpl_ProxyInterface::r#query_spectrum_management_support(self)
669 }
670
671 pub fn r#query_telemetry_support(
672 &self,
673 ) -> fidl::client::QueryResponseFut<
674 WlanFullmacImplQueryTelemetrySupportResult,
675 fidl::encoding::DefaultFuchsiaResourceDialect,
676 > {
677 WlanFullmacImpl_ProxyInterface::r#query_telemetry_support(self)
678 }
679
680 pub fn r#start_scan(
681 &self,
682 mut payload: &WlanFullmacImplStartScanRequest,
683 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
684 WlanFullmacImpl_ProxyInterface::r#start_scan(self, payload)
685 }
686
687 pub fn r#connect(
688 &self,
689 mut payload: &WlanFullmacImplConnectRequest,
690 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
691 WlanFullmacImpl_ProxyInterface::r#connect(self, payload)
692 }
693
694 pub fn r#reconnect(
695 &self,
696 mut payload: &WlanFullmacImplReconnectRequest,
697 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
698 WlanFullmacImpl_ProxyInterface::r#reconnect(self, payload)
699 }
700
701 pub fn r#roam(
703 &self,
704 mut payload: &WlanFullmacImplRoamRequest,
705 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
706 WlanFullmacImpl_ProxyInterface::r#roam(self, payload)
707 }
708
709 pub fn r#auth_resp(
710 &self,
711 mut payload: &WlanFullmacImplAuthRespRequest,
712 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
713 WlanFullmacImpl_ProxyInterface::r#auth_resp(self, payload)
714 }
715
716 pub fn r#deauth(
717 &self,
718 mut payload: &WlanFullmacImplDeauthRequest,
719 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
720 WlanFullmacImpl_ProxyInterface::r#deauth(self, payload)
721 }
722
723 pub fn r#assoc_resp(
724 &self,
725 mut payload: &WlanFullmacImplAssocRespRequest,
726 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
727 WlanFullmacImpl_ProxyInterface::r#assoc_resp(self, payload)
728 }
729
730 pub fn r#disassoc(
731 &self,
732 mut payload: &WlanFullmacImplDisassocRequest,
733 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
734 WlanFullmacImpl_ProxyInterface::r#disassoc(self, payload)
735 }
736
737 pub fn r#start_bss(
738 &self,
739 mut payload: &WlanFullmacImplStartBssRequest,
740 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
741 WlanFullmacImpl_ProxyInterface::r#start_bss(self, payload)
742 }
743
744 pub fn r#stop_bss(
745 &self,
746 mut payload: &WlanFullmacImplStopBssRequest,
747 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
748 WlanFullmacImpl_ProxyInterface::r#stop_bss(self, payload)
749 }
750
751 pub fn r#set_keys(
757 &self,
758 mut payload: &WlanFullmacImplSetKeysRequest,
759 ) -> fidl::client::QueryResponseFut<
760 WlanFullmacSetKeysResp,
761 fidl::encoding::DefaultFuchsiaResourceDialect,
762 > {
763 WlanFullmacImpl_ProxyInterface::r#set_keys(self, payload)
764 }
765
766 pub fn r#eapol_tx(
767 &self,
768 mut payload: &WlanFullmacImplEapolTxRequest,
769 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
770 WlanFullmacImpl_ProxyInterface::r#eapol_tx(self, payload)
771 }
772
773 pub fn r#get_iface_stats(
774 &self,
775 ) -> fidl::client::QueryResponseFut<
776 WlanFullmacImplGetIfaceStatsResult,
777 fidl::encoding::DefaultFuchsiaResourceDialect,
778 > {
779 WlanFullmacImpl_ProxyInterface::r#get_iface_stats(self)
780 }
781
782 pub fn r#get_iface_histogram_stats(
783 &self,
784 ) -> fidl::client::QueryResponseFut<
785 WlanFullmacImplGetIfaceHistogramStatsResult,
786 fidl::encoding::DefaultFuchsiaResourceDialect,
787 > {
788 WlanFullmacImpl_ProxyInterface::r#get_iface_histogram_stats(self)
789 }
790
791 pub fn r#sae_handshake_resp(
793 &self,
794 mut payload: &WlanFullmacImplSaeHandshakeRespRequest,
795 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
796 WlanFullmacImpl_ProxyInterface::r#sae_handshake_resp(self, payload)
797 }
798
799 pub fn r#sae_frame_tx(
801 &self,
802 mut frame: &SaeFrame,
803 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
804 WlanFullmacImpl_ProxyInterface::r#sae_frame_tx(self, frame)
805 }
806
807 pub fn r#wmm_status_req(
808 &self,
809 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
810 WlanFullmacImpl_ProxyInterface::r#wmm_status_req(self)
811 }
812
813 pub fn r#on_link_state_changed(
814 &self,
815 mut payload: &WlanFullmacImplOnLinkStateChangedRequest,
816 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
817 WlanFullmacImpl_ProxyInterface::r#on_link_state_changed(self, payload)
818 }
819}
820
821impl WlanFullmacImpl_ProxyInterface for WlanFullmacImpl_Proxy {
822 type InitResponseFut = fidl::client::QueryResponseFut<
823 WlanFullmacImplInitResult,
824 fidl::encoding::DefaultFuchsiaResourceDialect,
825 >;
826 fn r#init(&self, mut payload: WlanFullmacImplInitRequest) -> Self::InitResponseFut {
827 fn _decode(
828 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
829 ) -> Result<WlanFullmacImplInitResult, fidl::Error> {
830 let _response = fidl::client::decode_transaction_body::<
831 fidl::encoding::ResultType<WlanFullmacImplInitResponse, i32>,
832 fidl::encoding::DefaultFuchsiaResourceDialect,
833 0x593dfb6cb3f0f1aa,
834 >(_buf?)?;
835 Ok(_response.map(|x| x))
836 }
837 self.client.send_query_and_decode::<WlanFullmacImplInitRequest, WlanFullmacImplInitResult>(
838 &mut payload,
839 0x593dfb6cb3f0f1aa,
840 fidl::encoding::DynamicFlags::empty(),
841 _decode,
842 )
843 }
844
845 type QueryResponseFut = fidl::client::QueryResponseFut<
846 WlanFullmacImplQueryResult,
847 fidl::encoding::DefaultFuchsiaResourceDialect,
848 >;
849 fn r#query(&self) -> Self::QueryResponseFut {
850 fn _decode(
851 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
852 ) -> Result<WlanFullmacImplQueryResult, fidl::Error> {
853 let _response = fidl::client::decode_transaction_body::<
854 fidl::encoding::ResultType<WlanFullmacImplQueryResponse, i32>,
855 fidl::encoding::DefaultFuchsiaResourceDialect,
856 0x28ac65f9da3941d4,
857 >(_buf?)?;
858 Ok(_response.map(|x| x))
859 }
860 self.client
861 .send_query_and_decode::<fidl::encoding::EmptyPayload, WlanFullmacImplQueryResult>(
862 (),
863 0x28ac65f9da3941d4,
864 fidl::encoding::DynamicFlags::empty(),
865 _decode,
866 )
867 }
868
869 type QuerySecuritySupportResponseFut = fidl::client::QueryResponseFut<
870 WlanFullmacImplQuerySecuritySupportResult,
871 fidl::encoding::DefaultFuchsiaResourceDialect,
872 >;
873 fn r#query_security_support(&self) -> Self::QuerySecuritySupportResponseFut {
874 fn _decode(
875 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
876 ) -> Result<WlanFullmacImplQuerySecuritySupportResult, fidl::Error> {
877 let _response = fidl::client::decode_transaction_body::<
878 fidl::encoding::ResultType<WlanFullmacImplQuerySecuritySupportResponse, i32>,
879 fidl::encoding::DefaultFuchsiaResourceDialect,
880 0x11cf3fa6eeb93f84,
881 >(_buf?)?;
882 Ok(_response.map(|x| x.resp))
883 }
884 self.client.send_query_and_decode::<
885 fidl::encoding::EmptyPayload,
886 WlanFullmacImplQuerySecuritySupportResult,
887 >(
888 (),
889 0x11cf3fa6eeb93f84,
890 fidl::encoding::DynamicFlags::empty(),
891 _decode,
892 )
893 }
894
895 type QuerySpectrumManagementSupportResponseFut = fidl::client::QueryResponseFut<
896 WlanFullmacImplQuerySpectrumManagementSupportResult,
897 fidl::encoding::DefaultFuchsiaResourceDialect,
898 >;
899 fn r#query_spectrum_management_support(
900 &self,
901 ) -> Self::QuerySpectrumManagementSupportResponseFut {
902 fn _decode(
903 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
904 ) -> Result<WlanFullmacImplQuerySpectrumManagementSupportResult, fidl::Error> {
905 let _response = fidl::client::decode_transaction_body::<
906 fidl::encoding::ResultType<
907 WlanFullmacImplQuerySpectrumManagementSupportResponse,
908 i32,
909 >,
910 fidl::encoding::DefaultFuchsiaResourceDialect,
911 0x22ae7551d855b83a,
912 >(_buf?)?;
913 Ok(_response.map(|x| x.resp))
914 }
915 self.client.send_query_and_decode::<
916 fidl::encoding::EmptyPayload,
917 WlanFullmacImplQuerySpectrumManagementSupportResult,
918 >(
919 (),
920 0x22ae7551d855b83a,
921 fidl::encoding::DynamicFlags::empty(),
922 _decode,
923 )
924 }
925
926 type QueryTelemetrySupportResponseFut = fidl::client::QueryResponseFut<
927 WlanFullmacImplQueryTelemetrySupportResult,
928 fidl::encoding::DefaultFuchsiaResourceDialect,
929 >;
930 fn r#query_telemetry_support(&self) -> Self::QueryTelemetrySupportResponseFut {
931 fn _decode(
932 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
933 ) -> Result<WlanFullmacImplQueryTelemetrySupportResult, fidl::Error> {
934 let _response = fidl::client::decode_transaction_body::<
935 fidl::encoding::ResultType<WlanFullmacImplQueryTelemetrySupportResponse, i32>,
936 fidl::encoding::DefaultFuchsiaResourceDialect,
937 0x4561479ca560827f,
938 >(_buf?)?;
939 Ok(_response.map(|x| x.resp))
940 }
941 self.client.send_query_and_decode::<
942 fidl::encoding::EmptyPayload,
943 WlanFullmacImplQueryTelemetrySupportResult,
944 >(
945 (),
946 0x4561479ca560827f,
947 fidl::encoding::DynamicFlags::empty(),
948 _decode,
949 )
950 }
951
952 type StartScanResponseFut =
953 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
954 fn r#start_scan(
955 &self,
956 mut payload: &WlanFullmacImplStartScanRequest,
957 ) -> Self::StartScanResponseFut {
958 fn _decode(
959 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
960 ) -> Result<(), fidl::Error> {
961 let _response = fidl::client::decode_transaction_body::<
962 fidl::encoding::EmptyPayload,
963 fidl::encoding::DefaultFuchsiaResourceDialect,
964 0x26c17bf595aa161c,
965 >(_buf?)?;
966 Ok(_response)
967 }
968 self.client.send_query_and_decode::<WlanFullmacImplStartScanRequest, ()>(
969 payload,
970 0x26c17bf595aa161c,
971 fidl::encoding::DynamicFlags::empty(),
972 _decode,
973 )
974 }
975
976 type ConnectResponseFut =
977 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
978 fn r#connect(&self, mut payload: &WlanFullmacImplConnectRequest) -> Self::ConnectResponseFut {
979 fn _decode(
980 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
981 ) -> Result<(), fidl::Error> {
982 let _response = fidl::client::decode_transaction_body::<
983 fidl::encoding::EmptyPayload,
984 fidl::encoding::DefaultFuchsiaResourceDialect,
985 0x19eb0322efb07a76,
986 >(_buf?)?;
987 Ok(_response)
988 }
989 self.client.send_query_and_decode::<WlanFullmacImplConnectRequest, ()>(
990 payload,
991 0x19eb0322efb07a76,
992 fidl::encoding::DynamicFlags::empty(),
993 _decode,
994 )
995 }
996
997 type ReconnectResponseFut =
998 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
999 fn r#reconnect(
1000 &self,
1001 mut payload: &WlanFullmacImplReconnectRequest,
1002 ) -> Self::ReconnectResponseFut {
1003 fn _decode(
1004 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1005 ) -> Result<(), fidl::Error> {
1006 let _response = fidl::client::decode_transaction_body::<
1007 fidl::encoding::EmptyPayload,
1008 fidl::encoding::DefaultFuchsiaResourceDialect,
1009 0x474084c4ef19ee71,
1010 >(_buf?)?;
1011 Ok(_response)
1012 }
1013 self.client.send_query_and_decode::<WlanFullmacImplReconnectRequest, ()>(
1014 payload,
1015 0x474084c4ef19ee71,
1016 fidl::encoding::DynamicFlags::empty(),
1017 _decode,
1018 )
1019 }
1020
1021 type RoamResponseFut =
1022 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1023 fn r#roam(&self, mut payload: &WlanFullmacImplRoamRequest) -> Self::RoamResponseFut {
1024 fn _decode(
1025 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1026 ) -> Result<(), fidl::Error> {
1027 let _response = fidl::client::decode_transaction_body::<
1028 fidl::encoding::EmptyPayload,
1029 fidl::encoding::DefaultFuchsiaResourceDialect,
1030 0x1e35dcc98b124b64,
1031 >(_buf?)?;
1032 Ok(_response)
1033 }
1034 self.client.send_query_and_decode::<WlanFullmacImplRoamRequest, ()>(
1035 payload,
1036 0x1e35dcc98b124b64,
1037 fidl::encoding::DynamicFlags::empty(),
1038 _decode,
1039 )
1040 }
1041
1042 type AuthRespResponseFut =
1043 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1044 fn r#auth_resp(
1045 &self,
1046 mut payload: &WlanFullmacImplAuthRespRequest,
1047 ) -> Self::AuthRespResponseFut {
1048 fn _decode(
1049 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1050 ) -> Result<(), fidl::Error> {
1051 let _response = fidl::client::decode_transaction_body::<
1052 fidl::encoding::EmptyPayload,
1053 fidl::encoding::DefaultFuchsiaResourceDialect,
1054 0x5f7ea24b44a4aaeb,
1055 >(_buf?)?;
1056 Ok(_response)
1057 }
1058 self.client.send_query_and_decode::<WlanFullmacImplAuthRespRequest, ()>(
1059 payload,
1060 0x5f7ea24b44a4aaeb,
1061 fidl::encoding::DynamicFlags::empty(),
1062 _decode,
1063 )
1064 }
1065
1066 type DeauthResponseFut =
1067 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1068 fn r#deauth(&self, mut payload: &WlanFullmacImplDeauthRequest) -> Self::DeauthResponseFut {
1069 fn _decode(
1070 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1071 ) -> Result<(), fidl::Error> {
1072 let _response = fidl::client::decode_transaction_body::<
1073 fidl::encoding::EmptyPayload,
1074 fidl::encoding::DefaultFuchsiaResourceDialect,
1075 0x112786eccbf12f37,
1076 >(_buf?)?;
1077 Ok(_response)
1078 }
1079 self.client.send_query_and_decode::<WlanFullmacImplDeauthRequest, ()>(
1080 payload,
1081 0x112786eccbf12f37,
1082 fidl::encoding::DynamicFlags::empty(),
1083 _decode,
1084 )
1085 }
1086
1087 type AssocRespResponseFut =
1088 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1089 fn r#assoc_resp(
1090 &self,
1091 mut payload: &WlanFullmacImplAssocRespRequest,
1092 ) -> Self::AssocRespResponseFut {
1093 fn _decode(
1094 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1095 ) -> Result<(), fidl::Error> {
1096 let _response = fidl::client::decode_transaction_body::<
1097 fidl::encoding::EmptyPayload,
1098 fidl::encoding::DefaultFuchsiaResourceDialect,
1099 0x5022ce6b8eefec2f,
1100 >(_buf?)?;
1101 Ok(_response)
1102 }
1103 self.client.send_query_and_decode::<WlanFullmacImplAssocRespRequest, ()>(
1104 payload,
1105 0x5022ce6b8eefec2f,
1106 fidl::encoding::DynamicFlags::empty(),
1107 _decode,
1108 )
1109 }
1110
1111 type DisassocResponseFut =
1112 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1113 fn r#disassoc(
1114 &self,
1115 mut payload: &WlanFullmacImplDisassocRequest,
1116 ) -> Self::DisassocResponseFut {
1117 fn _decode(
1118 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1119 ) -> Result<(), fidl::Error> {
1120 let _response = fidl::client::decode_transaction_body::<
1121 fidl::encoding::EmptyPayload,
1122 fidl::encoding::DefaultFuchsiaResourceDialect,
1123 0x9c0fc4e8de53e01,
1124 >(_buf?)?;
1125 Ok(_response)
1126 }
1127 self.client.send_query_and_decode::<WlanFullmacImplDisassocRequest, ()>(
1128 payload,
1129 0x9c0fc4e8de53e01,
1130 fidl::encoding::DynamicFlags::empty(),
1131 _decode,
1132 )
1133 }
1134
1135 type StartBssResponseFut =
1136 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1137 fn r#start_bss(
1138 &self,
1139 mut payload: &WlanFullmacImplStartBssRequest,
1140 ) -> Self::StartBssResponseFut {
1141 fn _decode(
1142 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1143 ) -> Result<(), fidl::Error> {
1144 let _response = fidl::client::decode_transaction_body::<
1145 fidl::encoding::EmptyPayload,
1146 fidl::encoding::DefaultFuchsiaResourceDialect,
1147 0x6922644d6b1d341d,
1148 >(_buf?)?;
1149 Ok(_response)
1150 }
1151 self.client.send_query_and_decode::<WlanFullmacImplStartBssRequest, ()>(
1152 payload,
1153 0x6922644d6b1d341d,
1154 fidl::encoding::DynamicFlags::empty(),
1155 _decode,
1156 )
1157 }
1158
1159 type StopBssResponseFut =
1160 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1161 fn r#stop_bss(&self, mut payload: &WlanFullmacImplStopBssRequest) -> Self::StopBssResponseFut {
1162 fn _decode(
1163 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1164 ) -> Result<(), fidl::Error> {
1165 let _response = fidl::client::decode_transaction_body::<
1166 fidl::encoding::EmptyPayload,
1167 fidl::encoding::DefaultFuchsiaResourceDialect,
1168 0x5aeb9b72e7575268,
1169 >(_buf?)?;
1170 Ok(_response)
1171 }
1172 self.client.send_query_and_decode::<WlanFullmacImplStopBssRequest, ()>(
1173 payload,
1174 0x5aeb9b72e7575268,
1175 fidl::encoding::DynamicFlags::empty(),
1176 _decode,
1177 )
1178 }
1179
1180 type SetKeysResponseFut = fidl::client::QueryResponseFut<
1181 WlanFullmacSetKeysResp,
1182 fidl::encoding::DefaultFuchsiaResourceDialect,
1183 >;
1184 fn r#set_keys(&self, mut payload: &WlanFullmacImplSetKeysRequest) -> Self::SetKeysResponseFut {
1185 fn _decode(
1186 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1187 ) -> Result<WlanFullmacSetKeysResp, fidl::Error> {
1188 let _response = fidl::client::decode_transaction_body::<
1189 WlanFullmacImplSetKeysResponse,
1190 fidl::encoding::DefaultFuchsiaResourceDialect,
1191 0x20f46b1e039f0985,
1192 >(_buf?)?;
1193 Ok(_response.resp)
1194 }
1195 self.client.send_query_and_decode::<WlanFullmacImplSetKeysRequest, WlanFullmacSetKeysResp>(
1196 payload,
1197 0x20f46b1e039f0985,
1198 fidl::encoding::DynamicFlags::empty(),
1199 _decode,
1200 )
1201 }
1202
1203 type EapolTxResponseFut =
1204 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1205 fn r#eapol_tx(&self, mut payload: &WlanFullmacImplEapolTxRequest) -> Self::EapolTxResponseFut {
1206 fn _decode(
1207 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1208 ) -> Result<(), fidl::Error> {
1209 let _response = fidl::client::decode_transaction_body::<
1210 fidl::encoding::EmptyPayload,
1211 fidl::encoding::DefaultFuchsiaResourceDialect,
1212 0x529a2d90fd4c8177,
1213 >(_buf?)?;
1214 Ok(_response)
1215 }
1216 self.client.send_query_and_decode::<WlanFullmacImplEapolTxRequest, ()>(
1217 payload,
1218 0x529a2d90fd4c8177,
1219 fidl::encoding::DynamicFlags::empty(),
1220 _decode,
1221 )
1222 }
1223
1224 type GetIfaceStatsResponseFut = fidl::client::QueryResponseFut<
1225 WlanFullmacImplGetIfaceStatsResult,
1226 fidl::encoding::DefaultFuchsiaResourceDialect,
1227 >;
1228 fn r#get_iface_stats(&self) -> Self::GetIfaceStatsResponseFut {
1229 fn _decode(
1230 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1231 ) -> Result<WlanFullmacImplGetIfaceStatsResult, fidl::Error> {
1232 let _response = fidl::client::decode_transaction_body::<
1233 fidl::encoding::ResultType<WlanFullmacImplGetIfaceStatsResponse, i32>,
1234 fidl::encoding::DefaultFuchsiaResourceDialect,
1235 0x505563776ef0392f,
1236 >(_buf?)?;
1237 Ok(_response.map(|x| x.stats))
1238 }
1239 self.client.send_query_and_decode::<
1240 fidl::encoding::EmptyPayload,
1241 WlanFullmacImplGetIfaceStatsResult,
1242 >(
1243 (),
1244 0x505563776ef0392f,
1245 fidl::encoding::DynamicFlags::empty(),
1246 _decode,
1247 )
1248 }
1249
1250 type GetIfaceHistogramStatsResponseFut = fidl::client::QueryResponseFut<
1251 WlanFullmacImplGetIfaceHistogramStatsResult,
1252 fidl::encoding::DefaultFuchsiaResourceDialect,
1253 >;
1254 fn r#get_iface_histogram_stats(&self) -> Self::GetIfaceHistogramStatsResponseFut {
1255 fn _decode(
1256 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1257 ) -> Result<WlanFullmacImplGetIfaceHistogramStatsResult, fidl::Error> {
1258 let _response = fidl::client::decode_transaction_body::<
1259 fidl::encoding::ResultType<WlanFullmacImplGetIfaceHistogramStatsResponse, i32>,
1260 fidl::encoding::DefaultFuchsiaResourceDialect,
1261 0x503d586f30ccf2cd,
1262 >(_buf?)?;
1263 Ok(_response.map(|x| x.stats))
1264 }
1265 self.client.send_query_and_decode::<
1266 fidl::encoding::EmptyPayload,
1267 WlanFullmacImplGetIfaceHistogramStatsResult,
1268 >(
1269 (),
1270 0x503d586f30ccf2cd,
1271 fidl::encoding::DynamicFlags::empty(),
1272 _decode,
1273 )
1274 }
1275
1276 type SaeHandshakeRespResponseFut =
1277 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1278 fn r#sae_handshake_resp(
1279 &self,
1280 mut payload: &WlanFullmacImplSaeHandshakeRespRequest,
1281 ) -> Self::SaeHandshakeRespResponseFut {
1282 fn _decode(
1283 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1284 ) -> Result<(), fidl::Error> {
1285 let _response = fidl::client::decode_transaction_body::<
1286 fidl::encoding::EmptyPayload,
1287 fidl::encoding::DefaultFuchsiaResourceDialect,
1288 0x72cd3a31ae5a54f6,
1289 >(_buf?)?;
1290 Ok(_response)
1291 }
1292 self.client.send_query_and_decode::<WlanFullmacImplSaeHandshakeRespRequest, ()>(
1293 payload,
1294 0x72cd3a31ae5a54f6,
1295 fidl::encoding::DynamicFlags::empty(),
1296 _decode,
1297 )
1298 }
1299
1300 type SaeFrameTxResponseFut =
1301 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1302 fn r#sae_frame_tx(&self, mut frame: &SaeFrame) -> Self::SaeFrameTxResponseFut {
1303 fn _decode(
1304 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1305 ) -> Result<(), fidl::Error> {
1306 let _response = fidl::client::decode_transaction_body::<
1307 fidl::encoding::EmptyPayload,
1308 fidl::encoding::DefaultFuchsiaResourceDialect,
1309 0x4715ad5dc5a6340f,
1310 >(_buf?)?;
1311 Ok(_response)
1312 }
1313 self.client.send_query_and_decode::<WlanFullmacImplSaeFrameTxRequest, ()>(
1314 (frame,),
1315 0x4715ad5dc5a6340f,
1316 fidl::encoding::DynamicFlags::empty(),
1317 _decode,
1318 )
1319 }
1320
1321 type WmmStatusReqResponseFut =
1322 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1323 fn r#wmm_status_req(&self) -> Self::WmmStatusReqResponseFut {
1324 fn _decode(
1325 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1326 ) -> Result<(), fidl::Error> {
1327 let _response = fidl::client::decode_transaction_body::<
1328 fidl::encoding::EmptyPayload,
1329 fidl::encoding::DefaultFuchsiaResourceDialect,
1330 0x635ecef3beb7a059,
1331 >(_buf?)?;
1332 Ok(_response)
1333 }
1334 self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, ()>(
1335 (),
1336 0x635ecef3beb7a059,
1337 fidl::encoding::DynamicFlags::empty(),
1338 _decode,
1339 )
1340 }
1341
1342 type OnLinkStateChangedResponseFut =
1343 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
1344 fn r#on_link_state_changed(
1345 &self,
1346 mut payload: &WlanFullmacImplOnLinkStateChangedRequest,
1347 ) -> Self::OnLinkStateChangedResponseFut {
1348 fn _decode(
1349 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
1350 ) -> Result<(), fidl::Error> {
1351 let _response = fidl::client::decode_transaction_body::<
1352 fidl::encoding::EmptyPayload,
1353 fidl::encoding::DefaultFuchsiaResourceDialect,
1354 0x4d896e5b68e488d7,
1355 >(_buf?)?;
1356 Ok(_response)
1357 }
1358 self.client.send_query_and_decode::<WlanFullmacImplOnLinkStateChangedRequest, ()>(
1359 payload,
1360 0x4d896e5b68e488d7,
1361 fidl::encoding::DynamicFlags::empty(),
1362 _decode,
1363 )
1364 }
1365}
1366
1367pub struct WlanFullmacImpl_EventStream {
1368 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
1369}
1370
1371impl std::marker::Unpin for WlanFullmacImpl_EventStream {}
1372
1373impl futures::stream::FusedStream for WlanFullmacImpl_EventStream {
1374 fn is_terminated(&self) -> bool {
1375 self.event_receiver.is_terminated()
1376 }
1377}
1378
1379impl futures::Stream for WlanFullmacImpl_EventStream {
1380 type Item = Result<WlanFullmacImpl_Event, fidl::Error>;
1381
1382 fn poll_next(
1383 mut self: std::pin::Pin<&mut Self>,
1384 cx: &mut std::task::Context<'_>,
1385 ) -> std::task::Poll<Option<Self::Item>> {
1386 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
1387 &mut self.event_receiver,
1388 cx
1389 )?) {
1390 Some(buf) => std::task::Poll::Ready(Some(WlanFullmacImpl_Event::decode(buf))),
1391 None => std::task::Poll::Ready(None),
1392 }
1393 }
1394}
1395
1396#[derive(Debug)]
1397pub enum WlanFullmacImpl_Event {}
1398
1399impl WlanFullmacImpl_Event {
1400 fn decode(
1402 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
1403 ) -> Result<WlanFullmacImpl_Event, fidl::Error> {
1404 let (bytes, _handles) = buf.split_mut();
1405 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
1406 debug_assert_eq!(tx_header.tx_id, 0);
1407 match tx_header.ordinal {
1408 _ => Err(fidl::Error::UnknownOrdinal {
1409 ordinal: tx_header.ordinal,
1410 protocol_name:
1411 <WlanFullmacImpl_Marker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
1412 }),
1413 }
1414 }
1415}
1416
1417pub struct WlanFullmacImpl_RequestStream {
1419 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
1420 is_terminated: bool,
1421}
1422
1423impl std::marker::Unpin for WlanFullmacImpl_RequestStream {}
1424
1425impl futures::stream::FusedStream for WlanFullmacImpl_RequestStream {
1426 fn is_terminated(&self) -> bool {
1427 self.is_terminated
1428 }
1429}
1430
1431impl fidl::endpoints::RequestStream for WlanFullmacImpl_RequestStream {
1432 type Protocol = WlanFullmacImpl_Marker;
1433 type ControlHandle = WlanFullmacImpl_ControlHandle;
1434
1435 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
1436 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
1437 }
1438
1439 fn control_handle(&self) -> Self::ControlHandle {
1440 WlanFullmacImpl_ControlHandle { inner: self.inner.clone() }
1441 }
1442
1443 fn into_inner(
1444 self,
1445 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
1446 {
1447 (self.inner, self.is_terminated)
1448 }
1449
1450 fn from_inner(
1451 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
1452 is_terminated: bool,
1453 ) -> Self {
1454 Self { inner, is_terminated }
1455 }
1456}
1457
1458impl futures::Stream for WlanFullmacImpl_RequestStream {
1459 type Item = Result<WlanFullmacImpl_Request, fidl::Error>;
1460
1461 fn poll_next(
1462 mut self: std::pin::Pin<&mut Self>,
1463 cx: &mut std::task::Context<'_>,
1464 ) -> std::task::Poll<Option<Self::Item>> {
1465 let this = &mut *self;
1466 if this.inner.check_shutdown(cx) {
1467 this.is_terminated = true;
1468 return std::task::Poll::Ready(None);
1469 }
1470 if this.is_terminated {
1471 panic!("polled WlanFullmacImpl_RequestStream after completion");
1472 }
1473 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
1474 |bytes, handles| {
1475 match this.inner.channel().read_etc(cx, bytes, handles) {
1476 std::task::Poll::Ready(Ok(())) => {}
1477 std::task::Poll::Pending => return std::task::Poll::Pending,
1478 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
1479 this.is_terminated = true;
1480 return std::task::Poll::Ready(None);
1481 }
1482 std::task::Poll::Ready(Err(e)) => {
1483 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
1484 e.into(),
1485 ))))
1486 }
1487 }
1488
1489 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
1491
1492 std::task::Poll::Ready(Some(match header.ordinal {
1493 0x593dfb6cb3f0f1aa => {
1494 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1495 let mut req = fidl::new_empty!(
1496 WlanFullmacImplInitRequest,
1497 fidl::encoding::DefaultFuchsiaResourceDialect
1498 );
1499 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplInitRequest>(&header, _body_bytes, handles, &mut req)?;
1500 let control_handle =
1501 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1502 Ok(WlanFullmacImpl_Request::Init {
1503 payload: req,
1504 responder: WlanFullmacImpl_InitResponder {
1505 control_handle: std::mem::ManuallyDrop::new(control_handle),
1506 tx_id: header.tx_id,
1507 },
1508 })
1509 }
1510 0x28ac65f9da3941d4 => {
1511 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1512 let mut req = fidl::new_empty!(
1513 fidl::encoding::EmptyPayload,
1514 fidl::encoding::DefaultFuchsiaResourceDialect
1515 );
1516 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1517 let control_handle =
1518 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1519 Ok(WlanFullmacImpl_Request::Query {
1520 responder: WlanFullmacImpl_QueryResponder {
1521 control_handle: std::mem::ManuallyDrop::new(control_handle),
1522 tx_id: header.tx_id,
1523 },
1524 })
1525 }
1526 0x11cf3fa6eeb93f84 => {
1527 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1528 let mut req = fidl::new_empty!(
1529 fidl::encoding::EmptyPayload,
1530 fidl::encoding::DefaultFuchsiaResourceDialect
1531 );
1532 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1533 let control_handle =
1534 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1535 Ok(WlanFullmacImpl_Request::QuerySecuritySupport {
1536 responder: WlanFullmacImpl_QuerySecuritySupportResponder {
1537 control_handle: std::mem::ManuallyDrop::new(control_handle),
1538 tx_id: header.tx_id,
1539 },
1540 })
1541 }
1542 0x22ae7551d855b83a => {
1543 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1544 let mut req = fidl::new_empty!(
1545 fidl::encoding::EmptyPayload,
1546 fidl::encoding::DefaultFuchsiaResourceDialect
1547 );
1548 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1549 let control_handle =
1550 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1551 Ok(WlanFullmacImpl_Request::QuerySpectrumManagementSupport {
1552 responder: WlanFullmacImpl_QuerySpectrumManagementSupportResponder {
1553 control_handle: std::mem::ManuallyDrop::new(control_handle),
1554 tx_id: header.tx_id,
1555 },
1556 })
1557 }
1558 0x4561479ca560827f => {
1559 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1560 let mut req = fidl::new_empty!(
1561 fidl::encoding::EmptyPayload,
1562 fidl::encoding::DefaultFuchsiaResourceDialect
1563 );
1564 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1565 let control_handle =
1566 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1567 Ok(WlanFullmacImpl_Request::QueryTelemetrySupport {
1568 responder: WlanFullmacImpl_QueryTelemetrySupportResponder {
1569 control_handle: std::mem::ManuallyDrop::new(control_handle),
1570 tx_id: header.tx_id,
1571 },
1572 })
1573 }
1574 0x26c17bf595aa161c => {
1575 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1576 let mut req = fidl::new_empty!(
1577 WlanFullmacImplStartScanRequest,
1578 fidl::encoding::DefaultFuchsiaResourceDialect
1579 );
1580 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplStartScanRequest>(&header, _body_bytes, handles, &mut req)?;
1581 let control_handle =
1582 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1583 Ok(WlanFullmacImpl_Request::StartScan {
1584 payload: req,
1585 responder: WlanFullmacImpl_StartScanResponder {
1586 control_handle: std::mem::ManuallyDrop::new(control_handle),
1587 tx_id: header.tx_id,
1588 },
1589 })
1590 }
1591 0x19eb0322efb07a76 => {
1592 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1593 let mut req = fidl::new_empty!(
1594 WlanFullmacImplConnectRequest,
1595 fidl::encoding::DefaultFuchsiaResourceDialect
1596 );
1597 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplConnectRequest>(&header, _body_bytes, handles, &mut req)?;
1598 let control_handle =
1599 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1600 Ok(WlanFullmacImpl_Request::Connect {
1601 payload: req,
1602 responder: WlanFullmacImpl_ConnectResponder {
1603 control_handle: std::mem::ManuallyDrop::new(control_handle),
1604 tx_id: header.tx_id,
1605 },
1606 })
1607 }
1608 0x474084c4ef19ee71 => {
1609 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1610 let mut req = fidl::new_empty!(
1611 WlanFullmacImplReconnectRequest,
1612 fidl::encoding::DefaultFuchsiaResourceDialect
1613 );
1614 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplReconnectRequest>(&header, _body_bytes, handles, &mut req)?;
1615 let control_handle =
1616 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1617 Ok(WlanFullmacImpl_Request::Reconnect {
1618 payload: req,
1619 responder: WlanFullmacImpl_ReconnectResponder {
1620 control_handle: std::mem::ManuallyDrop::new(control_handle),
1621 tx_id: header.tx_id,
1622 },
1623 })
1624 }
1625 0x1e35dcc98b124b64 => {
1626 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1627 let mut req = fidl::new_empty!(
1628 WlanFullmacImplRoamRequest,
1629 fidl::encoding::DefaultFuchsiaResourceDialect
1630 );
1631 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplRoamRequest>(&header, _body_bytes, handles, &mut req)?;
1632 let control_handle =
1633 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1634 Ok(WlanFullmacImpl_Request::Roam {
1635 payload: req,
1636 responder: WlanFullmacImpl_RoamResponder {
1637 control_handle: std::mem::ManuallyDrop::new(control_handle),
1638 tx_id: header.tx_id,
1639 },
1640 })
1641 }
1642 0x5f7ea24b44a4aaeb => {
1643 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1644 let mut req = fidl::new_empty!(
1645 WlanFullmacImplAuthRespRequest,
1646 fidl::encoding::DefaultFuchsiaResourceDialect
1647 );
1648 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplAuthRespRequest>(&header, _body_bytes, handles, &mut req)?;
1649 let control_handle =
1650 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1651 Ok(WlanFullmacImpl_Request::AuthResp {
1652 payload: req,
1653 responder: WlanFullmacImpl_AuthRespResponder {
1654 control_handle: std::mem::ManuallyDrop::new(control_handle),
1655 tx_id: header.tx_id,
1656 },
1657 })
1658 }
1659 0x112786eccbf12f37 => {
1660 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1661 let mut req = fidl::new_empty!(
1662 WlanFullmacImplDeauthRequest,
1663 fidl::encoding::DefaultFuchsiaResourceDialect
1664 );
1665 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplDeauthRequest>(&header, _body_bytes, handles, &mut req)?;
1666 let control_handle =
1667 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1668 Ok(WlanFullmacImpl_Request::Deauth {
1669 payload: req,
1670 responder: WlanFullmacImpl_DeauthResponder {
1671 control_handle: std::mem::ManuallyDrop::new(control_handle),
1672 tx_id: header.tx_id,
1673 },
1674 })
1675 }
1676 0x5022ce6b8eefec2f => {
1677 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1678 let mut req = fidl::new_empty!(
1679 WlanFullmacImplAssocRespRequest,
1680 fidl::encoding::DefaultFuchsiaResourceDialect
1681 );
1682 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplAssocRespRequest>(&header, _body_bytes, handles, &mut req)?;
1683 let control_handle =
1684 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1685 Ok(WlanFullmacImpl_Request::AssocResp {
1686 payload: req,
1687 responder: WlanFullmacImpl_AssocRespResponder {
1688 control_handle: std::mem::ManuallyDrop::new(control_handle),
1689 tx_id: header.tx_id,
1690 },
1691 })
1692 }
1693 0x9c0fc4e8de53e01 => {
1694 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1695 let mut req = fidl::new_empty!(
1696 WlanFullmacImplDisassocRequest,
1697 fidl::encoding::DefaultFuchsiaResourceDialect
1698 );
1699 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplDisassocRequest>(&header, _body_bytes, handles, &mut req)?;
1700 let control_handle =
1701 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1702 Ok(WlanFullmacImpl_Request::Disassoc {
1703 payload: req,
1704 responder: WlanFullmacImpl_DisassocResponder {
1705 control_handle: std::mem::ManuallyDrop::new(control_handle),
1706 tx_id: header.tx_id,
1707 },
1708 })
1709 }
1710 0x6922644d6b1d341d => {
1711 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1712 let mut req = fidl::new_empty!(
1713 WlanFullmacImplStartBssRequest,
1714 fidl::encoding::DefaultFuchsiaResourceDialect
1715 );
1716 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplStartBssRequest>(&header, _body_bytes, handles, &mut req)?;
1717 let control_handle =
1718 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1719 Ok(WlanFullmacImpl_Request::StartBss {
1720 payload: req,
1721 responder: WlanFullmacImpl_StartBssResponder {
1722 control_handle: std::mem::ManuallyDrop::new(control_handle),
1723 tx_id: header.tx_id,
1724 },
1725 })
1726 }
1727 0x5aeb9b72e7575268 => {
1728 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1729 let mut req = fidl::new_empty!(
1730 WlanFullmacImplStopBssRequest,
1731 fidl::encoding::DefaultFuchsiaResourceDialect
1732 );
1733 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplStopBssRequest>(&header, _body_bytes, handles, &mut req)?;
1734 let control_handle =
1735 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1736 Ok(WlanFullmacImpl_Request::StopBss {
1737 payload: req,
1738 responder: WlanFullmacImpl_StopBssResponder {
1739 control_handle: std::mem::ManuallyDrop::new(control_handle),
1740 tx_id: header.tx_id,
1741 },
1742 })
1743 }
1744 0x20f46b1e039f0985 => {
1745 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1746 let mut req = fidl::new_empty!(
1747 WlanFullmacImplSetKeysRequest,
1748 fidl::encoding::DefaultFuchsiaResourceDialect
1749 );
1750 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplSetKeysRequest>(&header, _body_bytes, handles, &mut req)?;
1751 let control_handle =
1752 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1753 Ok(WlanFullmacImpl_Request::SetKeys {
1754 payload: req,
1755 responder: WlanFullmacImpl_SetKeysResponder {
1756 control_handle: std::mem::ManuallyDrop::new(control_handle),
1757 tx_id: header.tx_id,
1758 },
1759 })
1760 }
1761 0x529a2d90fd4c8177 => {
1762 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1763 let mut req = fidl::new_empty!(
1764 WlanFullmacImplEapolTxRequest,
1765 fidl::encoding::DefaultFuchsiaResourceDialect
1766 );
1767 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplEapolTxRequest>(&header, _body_bytes, handles, &mut req)?;
1768 let control_handle =
1769 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1770 Ok(WlanFullmacImpl_Request::EapolTx {
1771 payload: req,
1772 responder: WlanFullmacImpl_EapolTxResponder {
1773 control_handle: std::mem::ManuallyDrop::new(control_handle),
1774 tx_id: header.tx_id,
1775 },
1776 })
1777 }
1778 0x505563776ef0392f => {
1779 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1780 let mut req = fidl::new_empty!(
1781 fidl::encoding::EmptyPayload,
1782 fidl::encoding::DefaultFuchsiaResourceDialect
1783 );
1784 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1785 let control_handle =
1786 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1787 Ok(WlanFullmacImpl_Request::GetIfaceStats {
1788 responder: WlanFullmacImpl_GetIfaceStatsResponder {
1789 control_handle: std::mem::ManuallyDrop::new(control_handle),
1790 tx_id: header.tx_id,
1791 },
1792 })
1793 }
1794 0x503d586f30ccf2cd => {
1795 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1796 let mut req = fidl::new_empty!(
1797 fidl::encoding::EmptyPayload,
1798 fidl::encoding::DefaultFuchsiaResourceDialect
1799 );
1800 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1801 let control_handle =
1802 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1803 Ok(WlanFullmacImpl_Request::GetIfaceHistogramStats {
1804 responder: WlanFullmacImpl_GetIfaceHistogramStatsResponder {
1805 control_handle: std::mem::ManuallyDrop::new(control_handle),
1806 tx_id: header.tx_id,
1807 },
1808 })
1809 }
1810 0x72cd3a31ae5a54f6 => {
1811 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1812 let mut req = fidl::new_empty!(
1813 WlanFullmacImplSaeHandshakeRespRequest,
1814 fidl::encoding::DefaultFuchsiaResourceDialect
1815 );
1816 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplSaeHandshakeRespRequest>(&header, _body_bytes, handles, &mut req)?;
1817 let control_handle =
1818 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1819 Ok(WlanFullmacImpl_Request::SaeHandshakeResp {
1820 payload: req,
1821 responder: WlanFullmacImpl_SaeHandshakeRespResponder {
1822 control_handle: std::mem::ManuallyDrop::new(control_handle),
1823 tx_id: header.tx_id,
1824 },
1825 })
1826 }
1827 0x4715ad5dc5a6340f => {
1828 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1829 let mut req = fidl::new_empty!(
1830 WlanFullmacImplSaeFrameTxRequest,
1831 fidl::encoding::DefaultFuchsiaResourceDialect
1832 );
1833 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplSaeFrameTxRequest>(&header, _body_bytes, handles, &mut req)?;
1834 let control_handle =
1835 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1836 Ok(WlanFullmacImpl_Request::SaeFrameTx {
1837 frame: req.frame,
1838
1839 responder: WlanFullmacImpl_SaeFrameTxResponder {
1840 control_handle: std::mem::ManuallyDrop::new(control_handle),
1841 tx_id: header.tx_id,
1842 },
1843 })
1844 }
1845 0x635ecef3beb7a059 => {
1846 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1847 let mut req = fidl::new_empty!(
1848 fidl::encoding::EmptyPayload,
1849 fidl::encoding::DefaultFuchsiaResourceDialect
1850 );
1851 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
1852 let control_handle =
1853 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1854 Ok(WlanFullmacImpl_Request::WmmStatusReq {
1855 responder: WlanFullmacImpl_WmmStatusReqResponder {
1856 control_handle: std::mem::ManuallyDrop::new(control_handle),
1857 tx_id: header.tx_id,
1858 },
1859 })
1860 }
1861 0x4d896e5b68e488d7 => {
1862 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
1863 let mut req = fidl::new_empty!(
1864 WlanFullmacImplOnLinkStateChangedRequest,
1865 fidl::encoding::DefaultFuchsiaResourceDialect
1866 );
1867 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplOnLinkStateChangedRequest>(&header, _body_bytes, handles, &mut req)?;
1868 let control_handle =
1869 WlanFullmacImpl_ControlHandle { inner: this.inner.clone() };
1870 Ok(WlanFullmacImpl_Request::OnLinkStateChanged {
1871 payload: req,
1872 responder: WlanFullmacImpl_OnLinkStateChangedResponder {
1873 control_handle: std::mem::ManuallyDrop::new(control_handle),
1874 tx_id: header.tx_id,
1875 },
1876 })
1877 }
1878 _ => Err(fidl::Error::UnknownOrdinal {
1879 ordinal: header.ordinal,
1880 protocol_name:
1881 <WlanFullmacImpl_Marker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
1882 }),
1883 }))
1884 },
1885 )
1886 }
1887}
1888
1889#[derive(Debug)]
1892pub enum WlanFullmacImpl_Request {
1893 Init {
1909 payload: WlanFullmacImplInitRequest,
1910 responder: WlanFullmacImpl_InitResponder,
1911 },
1912 Query {
1915 responder: WlanFullmacImpl_QueryResponder,
1916 },
1917 QuerySecuritySupport {
1918 responder: WlanFullmacImpl_QuerySecuritySupportResponder,
1919 },
1920 QuerySpectrumManagementSupport {
1921 responder: WlanFullmacImpl_QuerySpectrumManagementSupportResponder,
1922 },
1923 QueryTelemetrySupport {
1924 responder: WlanFullmacImpl_QueryTelemetrySupportResponder,
1925 },
1926 StartScan {
1927 payload: WlanFullmacImplStartScanRequest,
1928 responder: WlanFullmacImpl_StartScanResponder,
1929 },
1930 Connect {
1931 payload: WlanFullmacImplConnectRequest,
1932 responder: WlanFullmacImpl_ConnectResponder,
1933 },
1934 Reconnect {
1935 payload: WlanFullmacImplReconnectRequest,
1936 responder: WlanFullmacImpl_ReconnectResponder,
1937 },
1938 Roam {
1940 payload: WlanFullmacImplRoamRequest,
1941 responder: WlanFullmacImpl_RoamResponder,
1942 },
1943 AuthResp {
1944 payload: WlanFullmacImplAuthRespRequest,
1945 responder: WlanFullmacImpl_AuthRespResponder,
1946 },
1947 Deauth {
1948 payload: WlanFullmacImplDeauthRequest,
1949 responder: WlanFullmacImpl_DeauthResponder,
1950 },
1951 AssocResp {
1952 payload: WlanFullmacImplAssocRespRequest,
1953 responder: WlanFullmacImpl_AssocRespResponder,
1954 },
1955 Disassoc {
1956 payload: WlanFullmacImplDisassocRequest,
1957 responder: WlanFullmacImpl_DisassocResponder,
1958 },
1959 StartBss {
1960 payload: WlanFullmacImplStartBssRequest,
1961 responder: WlanFullmacImpl_StartBssResponder,
1962 },
1963 StopBss {
1964 payload: WlanFullmacImplStopBssRequest,
1965 responder: WlanFullmacImpl_StopBssResponder,
1966 },
1967 SetKeys {
1973 payload: WlanFullmacImplSetKeysRequest,
1974 responder: WlanFullmacImpl_SetKeysResponder,
1975 },
1976 EapolTx {
1977 payload: WlanFullmacImplEapolTxRequest,
1978 responder: WlanFullmacImpl_EapolTxResponder,
1979 },
1980 GetIfaceStats {
1981 responder: WlanFullmacImpl_GetIfaceStatsResponder,
1982 },
1983 GetIfaceHistogramStats {
1984 responder: WlanFullmacImpl_GetIfaceHistogramStatsResponder,
1985 },
1986 SaeHandshakeResp {
1988 payload: WlanFullmacImplSaeHandshakeRespRequest,
1989 responder: WlanFullmacImpl_SaeHandshakeRespResponder,
1990 },
1991 SaeFrameTx {
1993 frame: SaeFrame,
1994 responder: WlanFullmacImpl_SaeFrameTxResponder,
1995 },
1996 WmmStatusReq {
1997 responder: WlanFullmacImpl_WmmStatusReqResponder,
1998 },
1999 OnLinkStateChanged {
2000 payload: WlanFullmacImplOnLinkStateChangedRequest,
2001 responder: WlanFullmacImpl_OnLinkStateChangedResponder,
2002 },
2003}
2004
2005impl WlanFullmacImpl_Request {
2006 #[allow(irrefutable_let_patterns)]
2007 pub fn into_init(self) -> Option<(WlanFullmacImplInitRequest, WlanFullmacImpl_InitResponder)> {
2008 if let WlanFullmacImpl_Request::Init { payload, responder } = self {
2009 Some((payload, responder))
2010 } else {
2011 None
2012 }
2013 }
2014
2015 #[allow(irrefutable_let_patterns)]
2016 pub fn into_query(self) -> Option<(WlanFullmacImpl_QueryResponder)> {
2017 if let WlanFullmacImpl_Request::Query { responder } = self {
2018 Some((responder))
2019 } else {
2020 None
2021 }
2022 }
2023
2024 #[allow(irrefutable_let_patterns)]
2025 pub fn into_query_security_support(
2026 self,
2027 ) -> Option<(WlanFullmacImpl_QuerySecuritySupportResponder)> {
2028 if let WlanFullmacImpl_Request::QuerySecuritySupport { responder } = self {
2029 Some((responder))
2030 } else {
2031 None
2032 }
2033 }
2034
2035 #[allow(irrefutable_let_patterns)]
2036 pub fn into_query_spectrum_management_support(
2037 self,
2038 ) -> Option<(WlanFullmacImpl_QuerySpectrumManagementSupportResponder)> {
2039 if let WlanFullmacImpl_Request::QuerySpectrumManagementSupport { responder } = self {
2040 Some((responder))
2041 } else {
2042 None
2043 }
2044 }
2045
2046 #[allow(irrefutable_let_patterns)]
2047 pub fn into_query_telemetry_support(
2048 self,
2049 ) -> Option<(WlanFullmacImpl_QueryTelemetrySupportResponder)> {
2050 if let WlanFullmacImpl_Request::QueryTelemetrySupport { responder } = self {
2051 Some((responder))
2052 } else {
2053 None
2054 }
2055 }
2056
2057 #[allow(irrefutable_let_patterns)]
2058 pub fn into_start_scan(
2059 self,
2060 ) -> Option<(WlanFullmacImplStartScanRequest, WlanFullmacImpl_StartScanResponder)> {
2061 if let WlanFullmacImpl_Request::StartScan { payload, responder } = self {
2062 Some((payload, responder))
2063 } else {
2064 None
2065 }
2066 }
2067
2068 #[allow(irrefutable_let_patterns)]
2069 pub fn into_connect(
2070 self,
2071 ) -> Option<(WlanFullmacImplConnectRequest, WlanFullmacImpl_ConnectResponder)> {
2072 if let WlanFullmacImpl_Request::Connect { payload, responder } = self {
2073 Some((payload, responder))
2074 } else {
2075 None
2076 }
2077 }
2078
2079 #[allow(irrefutable_let_patterns)]
2080 pub fn into_reconnect(
2081 self,
2082 ) -> Option<(WlanFullmacImplReconnectRequest, WlanFullmacImpl_ReconnectResponder)> {
2083 if let WlanFullmacImpl_Request::Reconnect { payload, responder } = self {
2084 Some((payload, responder))
2085 } else {
2086 None
2087 }
2088 }
2089
2090 #[allow(irrefutable_let_patterns)]
2091 pub fn into_roam(self) -> Option<(WlanFullmacImplRoamRequest, WlanFullmacImpl_RoamResponder)> {
2092 if let WlanFullmacImpl_Request::Roam { payload, responder } = self {
2093 Some((payload, responder))
2094 } else {
2095 None
2096 }
2097 }
2098
2099 #[allow(irrefutable_let_patterns)]
2100 pub fn into_auth_resp(
2101 self,
2102 ) -> Option<(WlanFullmacImplAuthRespRequest, WlanFullmacImpl_AuthRespResponder)> {
2103 if let WlanFullmacImpl_Request::AuthResp { payload, responder } = self {
2104 Some((payload, responder))
2105 } else {
2106 None
2107 }
2108 }
2109
2110 #[allow(irrefutable_let_patterns)]
2111 pub fn into_deauth(
2112 self,
2113 ) -> Option<(WlanFullmacImplDeauthRequest, WlanFullmacImpl_DeauthResponder)> {
2114 if let WlanFullmacImpl_Request::Deauth { payload, responder } = self {
2115 Some((payload, responder))
2116 } else {
2117 None
2118 }
2119 }
2120
2121 #[allow(irrefutable_let_patterns)]
2122 pub fn into_assoc_resp(
2123 self,
2124 ) -> Option<(WlanFullmacImplAssocRespRequest, WlanFullmacImpl_AssocRespResponder)> {
2125 if let WlanFullmacImpl_Request::AssocResp { payload, responder } = self {
2126 Some((payload, responder))
2127 } else {
2128 None
2129 }
2130 }
2131
2132 #[allow(irrefutable_let_patterns)]
2133 pub fn into_disassoc(
2134 self,
2135 ) -> Option<(WlanFullmacImplDisassocRequest, WlanFullmacImpl_DisassocResponder)> {
2136 if let WlanFullmacImpl_Request::Disassoc { payload, responder } = self {
2137 Some((payload, responder))
2138 } else {
2139 None
2140 }
2141 }
2142
2143 #[allow(irrefutable_let_patterns)]
2144 pub fn into_start_bss(
2145 self,
2146 ) -> Option<(WlanFullmacImplStartBssRequest, WlanFullmacImpl_StartBssResponder)> {
2147 if let WlanFullmacImpl_Request::StartBss { payload, responder } = self {
2148 Some((payload, responder))
2149 } else {
2150 None
2151 }
2152 }
2153
2154 #[allow(irrefutable_let_patterns)]
2155 pub fn into_stop_bss(
2156 self,
2157 ) -> Option<(WlanFullmacImplStopBssRequest, WlanFullmacImpl_StopBssResponder)> {
2158 if let WlanFullmacImpl_Request::StopBss { payload, responder } = self {
2159 Some((payload, responder))
2160 } else {
2161 None
2162 }
2163 }
2164
2165 #[allow(irrefutable_let_patterns)]
2166 pub fn into_set_keys(
2167 self,
2168 ) -> Option<(WlanFullmacImplSetKeysRequest, WlanFullmacImpl_SetKeysResponder)> {
2169 if let WlanFullmacImpl_Request::SetKeys { payload, responder } = self {
2170 Some((payload, responder))
2171 } else {
2172 None
2173 }
2174 }
2175
2176 #[allow(irrefutable_let_patterns)]
2177 pub fn into_eapol_tx(
2178 self,
2179 ) -> Option<(WlanFullmacImplEapolTxRequest, WlanFullmacImpl_EapolTxResponder)> {
2180 if let WlanFullmacImpl_Request::EapolTx { payload, responder } = self {
2181 Some((payload, responder))
2182 } else {
2183 None
2184 }
2185 }
2186
2187 #[allow(irrefutable_let_patterns)]
2188 pub fn into_get_iface_stats(self) -> Option<(WlanFullmacImpl_GetIfaceStatsResponder)> {
2189 if let WlanFullmacImpl_Request::GetIfaceStats { responder } = self {
2190 Some((responder))
2191 } else {
2192 None
2193 }
2194 }
2195
2196 #[allow(irrefutable_let_patterns)]
2197 pub fn into_get_iface_histogram_stats(
2198 self,
2199 ) -> Option<(WlanFullmacImpl_GetIfaceHistogramStatsResponder)> {
2200 if let WlanFullmacImpl_Request::GetIfaceHistogramStats { responder } = self {
2201 Some((responder))
2202 } else {
2203 None
2204 }
2205 }
2206
2207 #[allow(irrefutable_let_patterns)]
2208 pub fn into_sae_handshake_resp(
2209 self,
2210 ) -> Option<(WlanFullmacImplSaeHandshakeRespRequest, WlanFullmacImpl_SaeHandshakeRespResponder)>
2211 {
2212 if let WlanFullmacImpl_Request::SaeHandshakeResp { payload, responder } = self {
2213 Some((payload, responder))
2214 } else {
2215 None
2216 }
2217 }
2218
2219 #[allow(irrefutable_let_patterns)]
2220 pub fn into_sae_frame_tx(self) -> Option<(SaeFrame, WlanFullmacImpl_SaeFrameTxResponder)> {
2221 if let WlanFullmacImpl_Request::SaeFrameTx { frame, responder } = self {
2222 Some((frame, responder))
2223 } else {
2224 None
2225 }
2226 }
2227
2228 #[allow(irrefutable_let_patterns)]
2229 pub fn into_wmm_status_req(self) -> Option<(WlanFullmacImpl_WmmStatusReqResponder)> {
2230 if let WlanFullmacImpl_Request::WmmStatusReq { responder } = self {
2231 Some((responder))
2232 } else {
2233 None
2234 }
2235 }
2236
2237 #[allow(irrefutable_let_patterns)]
2238 pub fn into_on_link_state_changed(
2239 self,
2240 ) -> Option<(
2241 WlanFullmacImplOnLinkStateChangedRequest,
2242 WlanFullmacImpl_OnLinkStateChangedResponder,
2243 )> {
2244 if let WlanFullmacImpl_Request::OnLinkStateChanged { payload, responder } = self {
2245 Some((payload, responder))
2246 } else {
2247 None
2248 }
2249 }
2250
2251 pub fn method_name(&self) -> &'static str {
2253 match *self {
2254 WlanFullmacImpl_Request::Init { .. } => "init",
2255 WlanFullmacImpl_Request::Query { .. } => "query",
2256 WlanFullmacImpl_Request::QuerySecuritySupport { .. } => "query_security_support",
2257 WlanFullmacImpl_Request::QuerySpectrumManagementSupport { .. } => {
2258 "query_spectrum_management_support"
2259 }
2260 WlanFullmacImpl_Request::QueryTelemetrySupport { .. } => "query_telemetry_support",
2261 WlanFullmacImpl_Request::StartScan { .. } => "start_scan",
2262 WlanFullmacImpl_Request::Connect { .. } => "connect",
2263 WlanFullmacImpl_Request::Reconnect { .. } => "reconnect",
2264 WlanFullmacImpl_Request::Roam { .. } => "roam",
2265 WlanFullmacImpl_Request::AuthResp { .. } => "auth_resp",
2266 WlanFullmacImpl_Request::Deauth { .. } => "deauth",
2267 WlanFullmacImpl_Request::AssocResp { .. } => "assoc_resp",
2268 WlanFullmacImpl_Request::Disassoc { .. } => "disassoc",
2269 WlanFullmacImpl_Request::StartBss { .. } => "start_bss",
2270 WlanFullmacImpl_Request::StopBss { .. } => "stop_bss",
2271 WlanFullmacImpl_Request::SetKeys { .. } => "set_keys",
2272 WlanFullmacImpl_Request::EapolTx { .. } => "eapol_tx",
2273 WlanFullmacImpl_Request::GetIfaceStats { .. } => "get_iface_stats",
2274 WlanFullmacImpl_Request::GetIfaceHistogramStats { .. } => "get_iface_histogram_stats",
2275 WlanFullmacImpl_Request::SaeHandshakeResp { .. } => "sae_handshake_resp",
2276 WlanFullmacImpl_Request::SaeFrameTx { .. } => "sae_frame_tx",
2277 WlanFullmacImpl_Request::WmmStatusReq { .. } => "wmm_status_req",
2278 WlanFullmacImpl_Request::OnLinkStateChanged { .. } => "on_link_state_changed",
2279 }
2280 }
2281}
2282
2283#[derive(Debug, Clone)]
2284pub struct WlanFullmacImpl_ControlHandle {
2285 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
2286}
2287
2288impl fidl::endpoints::ControlHandle for WlanFullmacImpl_ControlHandle {
2289 fn shutdown(&self) {
2290 self.inner.shutdown()
2291 }
2292 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
2293 self.inner.shutdown_with_epitaph(status)
2294 }
2295
2296 fn is_closed(&self) -> bool {
2297 self.inner.channel().is_closed()
2298 }
2299 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
2300 self.inner.channel().on_closed()
2301 }
2302
2303 #[cfg(target_os = "fuchsia")]
2304 fn signal_peer(
2305 &self,
2306 clear_mask: zx::Signals,
2307 set_mask: zx::Signals,
2308 ) -> Result<(), zx_status::Status> {
2309 use fidl::Peered;
2310 self.inner.channel().signal_peer(clear_mask, set_mask)
2311 }
2312}
2313
2314impl WlanFullmacImpl_ControlHandle {}
2315
2316#[must_use = "FIDL methods require a response to be sent"]
2317#[derive(Debug)]
2318pub struct WlanFullmacImpl_InitResponder {
2319 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2320 tx_id: u32,
2321}
2322
2323impl std::ops::Drop for WlanFullmacImpl_InitResponder {
2327 fn drop(&mut self) {
2328 self.control_handle.shutdown();
2329 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2331 }
2332}
2333
2334impl fidl::endpoints::Responder for WlanFullmacImpl_InitResponder {
2335 type ControlHandle = WlanFullmacImpl_ControlHandle;
2336
2337 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2338 &self.control_handle
2339 }
2340
2341 fn drop_without_shutdown(mut self) {
2342 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2344 std::mem::forget(self);
2346 }
2347}
2348
2349impl WlanFullmacImpl_InitResponder {
2350 pub fn send(
2354 self,
2355 mut result: Result<WlanFullmacImplInitResponse, i32>,
2356 ) -> Result<(), fidl::Error> {
2357 let _result = self.send_raw(result);
2358 if _result.is_err() {
2359 self.control_handle.shutdown();
2360 }
2361 self.drop_without_shutdown();
2362 _result
2363 }
2364
2365 pub fn send_no_shutdown_on_err(
2367 self,
2368 mut result: Result<WlanFullmacImplInitResponse, i32>,
2369 ) -> Result<(), fidl::Error> {
2370 let _result = self.send_raw(result);
2371 self.drop_without_shutdown();
2372 _result
2373 }
2374
2375 fn send_raw(
2376 &self,
2377 mut result: Result<WlanFullmacImplInitResponse, i32>,
2378 ) -> Result<(), fidl::Error> {
2379 self.control_handle
2380 .inner
2381 .send::<fidl::encoding::ResultType<WlanFullmacImplInitResponse, i32>>(
2382 result.as_mut().map_err(|e| *e),
2383 self.tx_id,
2384 0x593dfb6cb3f0f1aa,
2385 fidl::encoding::DynamicFlags::empty(),
2386 )
2387 }
2388}
2389
2390#[must_use = "FIDL methods require a response to be sent"]
2391#[derive(Debug)]
2392pub struct WlanFullmacImpl_QueryResponder {
2393 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2394 tx_id: u32,
2395}
2396
2397impl std::ops::Drop for WlanFullmacImpl_QueryResponder {
2401 fn drop(&mut self) {
2402 self.control_handle.shutdown();
2403 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2405 }
2406}
2407
2408impl fidl::endpoints::Responder for WlanFullmacImpl_QueryResponder {
2409 type ControlHandle = WlanFullmacImpl_ControlHandle;
2410
2411 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2412 &self.control_handle
2413 }
2414
2415 fn drop_without_shutdown(mut self) {
2416 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2418 std::mem::forget(self);
2420 }
2421}
2422
2423impl WlanFullmacImpl_QueryResponder {
2424 pub fn send(
2428 self,
2429 mut result: Result<&WlanFullmacImplQueryResponse, i32>,
2430 ) -> Result<(), fidl::Error> {
2431 let _result = self.send_raw(result);
2432 if _result.is_err() {
2433 self.control_handle.shutdown();
2434 }
2435 self.drop_without_shutdown();
2436 _result
2437 }
2438
2439 pub fn send_no_shutdown_on_err(
2441 self,
2442 mut result: Result<&WlanFullmacImplQueryResponse, i32>,
2443 ) -> Result<(), fidl::Error> {
2444 let _result = self.send_raw(result);
2445 self.drop_without_shutdown();
2446 _result
2447 }
2448
2449 fn send_raw(
2450 &self,
2451 mut result: Result<&WlanFullmacImplQueryResponse, i32>,
2452 ) -> Result<(), fidl::Error> {
2453 self.control_handle
2454 .inner
2455 .send::<fidl::encoding::ResultType<WlanFullmacImplQueryResponse, i32>>(
2456 result,
2457 self.tx_id,
2458 0x28ac65f9da3941d4,
2459 fidl::encoding::DynamicFlags::empty(),
2460 )
2461 }
2462}
2463
2464#[must_use = "FIDL methods require a response to be sent"]
2465#[derive(Debug)]
2466pub struct WlanFullmacImpl_QuerySecuritySupportResponder {
2467 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2468 tx_id: u32,
2469}
2470
2471impl std::ops::Drop for WlanFullmacImpl_QuerySecuritySupportResponder {
2475 fn drop(&mut self) {
2476 self.control_handle.shutdown();
2477 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2479 }
2480}
2481
2482impl fidl::endpoints::Responder for WlanFullmacImpl_QuerySecuritySupportResponder {
2483 type ControlHandle = WlanFullmacImpl_ControlHandle;
2484
2485 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2486 &self.control_handle
2487 }
2488
2489 fn drop_without_shutdown(mut self) {
2490 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2492 std::mem::forget(self);
2494 }
2495}
2496
2497impl WlanFullmacImpl_QuerySecuritySupportResponder {
2498 pub fn send(
2502 self,
2503 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
2504 ) -> Result<(), fidl::Error> {
2505 let _result = self.send_raw(result);
2506 if _result.is_err() {
2507 self.control_handle.shutdown();
2508 }
2509 self.drop_without_shutdown();
2510 _result
2511 }
2512
2513 pub fn send_no_shutdown_on_err(
2515 self,
2516 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
2517 ) -> Result<(), fidl::Error> {
2518 let _result = self.send_raw(result);
2519 self.drop_without_shutdown();
2520 _result
2521 }
2522
2523 fn send_raw(
2524 &self,
2525 mut result: Result<&fidl_fuchsia_wlan_common::SecuritySupport, i32>,
2526 ) -> Result<(), fidl::Error> {
2527 self.control_handle.inner.send::<fidl::encoding::ResultType<
2528 WlanFullmacImplQuerySecuritySupportResponse,
2529 i32,
2530 >>(
2531 result.map(|resp| (resp,)),
2532 self.tx_id,
2533 0x11cf3fa6eeb93f84,
2534 fidl::encoding::DynamicFlags::empty(),
2535 )
2536 }
2537}
2538
2539#[must_use = "FIDL methods require a response to be sent"]
2540#[derive(Debug)]
2541pub struct WlanFullmacImpl_QuerySpectrumManagementSupportResponder {
2542 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2543 tx_id: u32,
2544}
2545
2546impl std::ops::Drop for WlanFullmacImpl_QuerySpectrumManagementSupportResponder {
2550 fn drop(&mut self) {
2551 self.control_handle.shutdown();
2552 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2554 }
2555}
2556
2557impl fidl::endpoints::Responder for WlanFullmacImpl_QuerySpectrumManagementSupportResponder {
2558 type ControlHandle = WlanFullmacImpl_ControlHandle;
2559
2560 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2561 &self.control_handle
2562 }
2563
2564 fn drop_without_shutdown(mut self) {
2565 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2567 std::mem::forget(self);
2569 }
2570}
2571
2572impl WlanFullmacImpl_QuerySpectrumManagementSupportResponder {
2573 pub fn send(
2577 self,
2578 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
2579 ) -> Result<(), fidl::Error> {
2580 let _result = self.send_raw(result);
2581 if _result.is_err() {
2582 self.control_handle.shutdown();
2583 }
2584 self.drop_without_shutdown();
2585 _result
2586 }
2587
2588 pub fn send_no_shutdown_on_err(
2590 self,
2591 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
2592 ) -> Result<(), fidl::Error> {
2593 let _result = self.send_raw(result);
2594 self.drop_without_shutdown();
2595 _result
2596 }
2597
2598 fn send_raw(
2599 &self,
2600 mut result: Result<&fidl_fuchsia_wlan_common::SpectrumManagementSupport, i32>,
2601 ) -> Result<(), fidl::Error> {
2602 self.control_handle.inner.send::<fidl::encoding::ResultType<
2603 WlanFullmacImplQuerySpectrumManagementSupportResponse,
2604 i32,
2605 >>(
2606 result.map(|resp| (resp,)),
2607 self.tx_id,
2608 0x22ae7551d855b83a,
2609 fidl::encoding::DynamicFlags::empty(),
2610 )
2611 }
2612}
2613
2614#[must_use = "FIDL methods require a response to be sent"]
2615#[derive(Debug)]
2616pub struct WlanFullmacImpl_QueryTelemetrySupportResponder {
2617 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2618 tx_id: u32,
2619}
2620
2621impl std::ops::Drop for WlanFullmacImpl_QueryTelemetrySupportResponder {
2625 fn drop(&mut self) {
2626 self.control_handle.shutdown();
2627 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2629 }
2630}
2631
2632impl fidl::endpoints::Responder for WlanFullmacImpl_QueryTelemetrySupportResponder {
2633 type ControlHandle = WlanFullmacImpl_ControlHandle;
2634
2635 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2636 &self.control_handle
2637 }
2638
2639 fn drop_without_shutdown(mut self) {
2640 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2642 std::mem::forget(self);
2644 }
2645}
2646
2647impl WlanFullmacImpl_QueryTelemetrySupportResponder {
2648 pub fn send(
2652 self,
2653 mut result: Result<&fidl_fuchsia_wlan_stats::TelemetrySupport, i32>,
2654 ) -> Result<(), fidl::Error> {
2655 let _result = self.send_raw(result);
2656 if _result.is_err() {
2657 self.control_handle.shutdown();
2658 }
2659 self.drop_without_shutdown();
2660 _result
2661 }
2662
2663 pub fn send_no_shutdown_on_err(
2665 self,
2666 mut result: Result<&fidl_fuchsia_wlan_stats::TelemetrySupport, i32>,
2667 ) -> Result<(), fidl::Error> {
2668 let _result = self.send_raw(result);
2669 self.drop_without_shutdown();
2670 _result
2671 }
2672
2673 fn send_raw(
2674 &self,
2675 mut result: Result<&fidl_fuchsia_wlan_stats::TelemetrySupport, i32>,
2676 ) -> Result<(), fidl::Error> {
2677 self.control_handle.inner.send::<fidl::encoding::ResultType<
2678 WlanFullmacImplQueryTelemetrySupportResponse,
2679 i32,
2680 >>(
2681 result.map(|resp| (resp,)),
2682 self.tx_id,
2683 0x4561479ca560827f,
2684 fidl::encoding::DynamicFlags::empty(),
2685 )
2686 }
2687}
2688
2689#[must_use = "FIDL methods require a response to be sent"]
2690#[derive(Debug)]
2691pub struct WlanFullmacImpl_StartScanResponder {
2692 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2693 tx_id: u32,
2694}
2695
2696impl std::ops::Drop for WlanFullmacImpl_StartScanResponder {
2700 fn drop(&mut self) {
2701 self.control_handle.shutdown();
2702 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2704 }
2705}
2706
2707impl fidl::endpoints::Responder for WlanFullmacImpl_StartScanResponder {
2708 type ControlHandle = WlanFullmacImpl_ControlHandle;
2709
2710 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2711 &self.control_handle
2712 }
2713
2714 fn drop_without_shutdown(mut self) {
2715 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2717 std::mem::forget(self);
2719 }
2720}
2721
2722impl WlanFullmacImpl_StartScanResponder {
2723 pub fn send(self) -> Result<(), fidl::Error> {
2727 let _result = self.send_raw();
2728 if _result.is_err() {
2729 self.control_handle.shutdown();
2730 }
2731 self.drop_without_shutdown();
2732 _result
2733 }
2734
2735 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
2737 let _result = self.send_raw();
2738 self.drop_without_shutdown();
2739 _result
2740 }
2741
2742 fn send_raw(&self) -> Result<(), fidl::Error> {
2743 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
2744 (),
2745 self.tx_id,
2746 0x26c17bf595aa161c,
2747 fidl::encoding::DynamicFlags::empty(),
2748 )
2749 }
2750}
2751
2752#[must_use = "FIDL methods require a response to be sent"]
2753#[derive(Debug)]
2754pub struct WlanFullmacImpl_ConnectResponder {
2755 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2756 tx_id: u32,
2757}
2758
2759impl std::ops::Drop for WlanFullmacImpl_ConnectResponder {
2763 fn drop(&mut self) {
2764 self.control_handle.shutdown();
2765 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2767 }
2768}
2769
2770impl fidl::endpoints::Responder for WlanFullmacImpl_ConnectResponder {
2771 type ControlHandle = WlanFullmacImpl_ControlHandle;
2772
2773 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2774 &self.control_handle
2775 }
2776
2777 fn drop_without_shutdown(mut self) {
2778 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2780 std::mem::forget(self);
2782 }
2783}
2784
2785impl WlanFullmacImpl_ConnectResponder {
2786 pub fn send(self) -> Result<(), fidl::Error> {
2790 let _result = self.send_raw();
2791 if _result.is_err() {
2792 self.control_handle.shutdown();
2793 }
2794 self.drop_without_shutdown();
2795 _result
2796 }
2797
2798 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
2800 let _result = self.send_raw();
2801 self.drop_without_shutdown();
2802 _result
2803 }
2804
2805 fn send_raw(&self) -> Result<(), fidl::Error> {
2806 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
2807 (),
2808 self.tx_id,
2809 0x19eb0322efb07a76,
2810 fidl::encoding::DynamicFlags::empty(),
2811 )
2812 }
2813}
2814
2815#[must_use = "FIDL methods require a response to be sent"]
2816#[derive(Debug)]
2817pub struct WlanFullmacImpl_ReconnectResponder {
2818 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2819 tx_id: u32,
2820}
2821
2822impl std::ops::Drop for WlanFullmacImpl_ReconnectResponder {
2826 fn drop(&mut self) {
2827 self.control_handle.shutdown();
2828 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2830 }
2831}
2832
2833impl fidl::endpoints::Responder for WlanFullmacImpl_ReconnectResponder {
2834 type ControlHandle = WlanFullmacImpl_ControlHandle;
2835
2836 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2837 &self.control_handle
2838 }
2839
2840 fn drop_without_shutdown(mut self) {
2841 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2843 std::mem::forget(self);
2845 }
2846}
2847
2848impl WlanFullmacImpl_ReconnectResponder {
2849 pub fn send(self) -> Result<(), fidl::Error> {
2853 let _result = self.send_raw();
2854 if _result.is_err() {
2855 self.control_handle.shutdown();
2856 }
2857 self.drop_without_shutdown();
2858 _result
2859 }
2860
2861 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
2863 let _result = self.send_raw();
2864 self.drop_without_shutdown();
2865 _result
2866 }
2867
2868 fn send_raw(&self) -> Result<(), fidl::Error> {
2869 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
2870 (),
2871 self.tx_id,
2872 0x474084c4ef19ee71,
2873 fidl::encoding::DynamicFlags::empty(),
2874 )
2875 }
2876}
2877
2878#[must_use = "FIDL methods require a response to be sent"]
2879#[derive(Debug)]
2880pub struct WlanFullmacImpl_RoamResponder {
2881 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2882 tx_id: u32,
2883}
2884
2885impl std::ops::Drop for WlanFullmacImpl_RoamResponder {
2889 fn drop(&mut self) {
2890 self.control_handle.shutdown();
2891 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2893 }
2894}
2895
2896impl fidl::endpoints::Responder for WlanFullmacImpl_RoamResponder {
2897 type ControlHandle = WlanFullmacImpl_ControlHandle;
2898
2899 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2900 &self.control_handle
2901 }
2902
2903 fn drop_without_shutdown(mut self) {
2904 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2906 std::mem::forget(self);
2908 }
2909}
2910
2911impl WlanFullmacImpl_RoamResponder {
2912 pub fn send(self) -> Result<(), fidl::Error> {
2916 let _result = self.send_raw();
2917 if _result.is_err() {
2918 self.control_handle.shutdown();
2919 }
2920 self.drop_without_shutdown();
2921 _result
2922 }
2923
2924 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
2926 let _result = self.send_raw();
2927 self.drop_without_shutdown();
2928 _result
2929 }
2930
2931 fn send_raw(&self) -> Result<(), fidl::Error> {
2932 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
2933 (),
2934 self.tx_id,
2935 0x1e35dcc98b124b64,
2936 fidl::encoding::DynamicFlags::empty(),
2937 )
2938 }
2939}
2940
2941#[must_use = "FIDL methods require a response to be sent"]
2942#[derive(Debug)]
2943pub struct WlanFullmacImpl_AuthRespResponder {
2944 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
2945 tx_id: u32,
2946}
2947
2948impl std::ops::Drop for WlanFullmacImpl_AuthRespResponder {
2952 fn drop(&mut self) {
2953 self.control_handle.shutdown();
2954 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2956 }
2957}
2958
2959impl fidl::endpoints::Responder for WlanFullmacImpl_AuthRespResponder {
2960 type ControlHandle = WlanFullmacImpl_ControlHandle;
2961
2962 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
2963 &self.control_handle
2964 }
2965
2966 fn drop_without_shutdown(mut self) {
2967 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
2969 std::mem::forget(self);
2971 }
2972}
2973
2974impl WlanFullmacImpl_AuthRespResponder {
2975 pub fn send(self) -> Result<(), fidl::Error> {
2979 let _result = self.send_raw();
2980 if _result.is_err() {
2981 self.control_handle.shutdown();
2982 }
2983 self.drop_without_shutdown();
2984 _result
2985 }
2986
2987 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
2989 let _result = self.send_raw();
2990 self.drop_without_shutdown();
2991 _result
2992 }
2993
2994 fn send_raw(&self) -> Result<(), fidl::Error> {
2995 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
2996 (),
2997 self.tx_id,
2998 0x5f7ea24b44a4aaeb,
2999 fidl::encoding::DynamicFlags::empty(),
3000 )
3001 }
3002}
3003
3004#[must_use = "FIDL methods require a response to be sent"]
3005#[derive(Debug)]
3006pub struct WlanFullmacImpl_DeauthResponder {
3007 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3008 tx_id: u32,
3009}
3010
3011impl std::ops::Drop for WlanFullmacImpl_DeauthResponder {
3015 fn drop(&mut self) {
3016 self.control_handle.shutdown();
3017 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3019 }
3020}
3021
3022impl fidl::endpoints::Responder for WlanFullmacImpl_DeauthResponder {
3023 type ControlHandle = WlanFullmacImpl_ControlHandle;
3024
3025 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3026 &self.control_handle
3027 }
3028
3029 fn drop_without_shutdown(mut self) {
3030 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3032 std::mem::forget(self);
3034 }
3035}
3036
3037impl WlanFullmacImpl_DeauthResponder {
3038 pub fn send(self) -> Result<(), fidl::Error> {
3042 let _result = self.send_raw();
3043 if _result.is_err() {
3044 self.control_handle.shutdown();
3045 }
3046 self.drop_without_shutdown();
3047 _result
3048 }
3049
3050 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3052 let _result = self.send_raw();
3053 self.drop_without_shutdown();
3054 _result
3055 }
3056
3057 fn send_raw(&self) -> Result<(), fidl::Error> {
3058 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3059 (),
3060 self.tx_id,
3061 0x112786eccbf12f37,
3062 fidl::encoding::DynamicFlags::empty(),
3063 )
3064 }
3065}
3066
3067#[must_use = "FIDL methods require a response to be sent"]
3068#[derive(Debug)]
3069pub struct WlanFullmacImpl_AssocRespResponder {
3070 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3071 tx_id: u32,
3072}
3073
3074impl std::ops::Drop for WlanFullmacImpl_AssocRespResponder {
3078 fn drop(&mut self) {
3079 self.control_handle.shutdown();
3080 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3082 }
3083}
3084
3085impl fidl::endpoints::Responder for WlanFullmacImpl_AssocRespResponder {
3086 type ControlHandle = WlanFullmacImpl_ControlHandle;
3087
3088 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3089 &self.control_handle
3090 }
3091
3092 fn drop_without_shutdown(mut self) {
3093 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3095 std::mem::forget(self);
3097 }
3098}
3099
3100impl WlanFullmacImpl_AssocRespResponder {
3101 pub fn send(self) -> Result<(), fidl::Error> {
3105 let _result = self.send_raw();
3106 if _result.is_err() {
3107 self.control_handle.shutdown();
3108 }
3109 self.drop_without_shutdown();
3110 _result
3111 }
3112
3113 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3115 let _result = self.send_raw();
3116 self.drop_without_shutdown();
3117 _result
3118 }
3119
3120 fn send_raw(&self) -> Result<(), fidl::Error> {
3121 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3122 (),
3123 self.tx_id,
3124 0x5022ce6b8eefec2f,
3125 fidl::encoding::DynamicFlags::empty(),
3126 )
3127 }
3128}
3129
3130#[must_use = "FIDL methods require a response to be sent"]
3131#[derive(Debug)]
3132pub struct WlanFullmacImpl_DisassocResponder {
3133 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3134 tx_id: u32,
3135}
3136
3137impl std::ops::Drop for WlanFullmacImpl_DisassocResponder {
3141 fn drop(&mut self) {
3142 self.control_handle.shutdown();
3143 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3145 }
3146}
3147
3148impl fidl::endpoints::Responder for WlanFullmacImpl_DisassocResponder {
3149 type ControlHandle = WlanFullmacImpl_ControlHandle;
3150
3151 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3152 &self.control_handle
3153 }
3154
3155 fn drop_without_shutdown(mut self) {
3156 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3158 std::mem::forget(self);
3160 }
3161}
3162
3163impl WlanFullmacImpl_DisassocResponder {
3164 pub fn send(self) -> Result<(), fidl::Error> {
3168 let _result = self.send_raw();
3169 if _result.is_err() {
3170 self.control_handle.shutdown();
3171 }
3172 self.drop_without_shutdown();
3173 _result
3174 }
3175
3176 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3178 let _result = self.send_raw();
3179 self.drop_without_shutdown();
3180 _result
3181 }
3182
3183 fn send_raw(&self) -> Result<(), fidl::Error> {
3184 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3185 (),
3186 self.tx_id,
3187 0x9c0fc4e8de53e01,
3188 fidl::encoding::DynamicFlags::empty(),
3189 )
3190 }
3191}
3192
3193#[must_use = "FIDL methods require a response to be sent"]
3194#[derive(Debug)]
3195pub struct WlanFullmacImpl_StartBssResponder {
3196 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3197 tx_id: u32,
3198}
3199
3200impl std::ops::Drop for WlanFullmacImpl_StartBssResponder {
3204 fn drop(&mut self) {
3205 self.control_handle.shutdown();
3206 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3208 }
3209}
3210
3211impl fidl::endpoints::Responder for WlanFullmacImpl_StartBssResponder {
3212 type ControlHandle = WlanFullmacImpl_ControlHandle;
3213
3214 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3215 &self.control_handle
3216 }
3217
3218 fn drop_without_shutdown(mut self) {
3219 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3221 std::mem::forget(self);
3223 }
3224}
3225
3226impl WlanFullmacImpl_StartBssResponder {
3227 pub fn send(self) -> Result<(), fidl::Error> {
3231 let _result = self.send_raw();
3232 if _result.is_err() {
3233 self.control_handle.shutdown();
3234 }
3235 self.drop_without_shutdown();
3236 _result
3237 }
3238
3239 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3241 let _result = self.send_raw();
3242 self.drop_without_shutdown();
3243 _result
3244 }
3245
3246 fn send_raw(&self) -> Result<(), fidl::Error> {
3247 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3248 (),
3249 self.tx_id,
3250 0x6922644d6b1d341d,
3251 fidl::encoding::DynamicFlags::empty(),
3252 )
3253 }
3254}
3255
3256#[must_use = "FIDL methods require a response to be sent"]
3257#[derive(Debug)]
3258pub struct WlanFullmacImpl_StopBssResponder {
3259 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3260 tx_id: u32,
3261}
3262
3263impl std::ops::Drop for WlanFullmacImpl_StopBssResponder {
3267 fn drop(&mut self) {
3268 self.control_handle.shutdown();
3269 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3271 }
3272}
3273
3274impl fidl::endpoints::Responder for WlanFullmacImpl_StopBssResponder {
3275 type ControlHandle = WlanFullmacImpl_ControlHandle;
3276
3277 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3278 &self.control_handle
3279 }
3280
3281 fn drop_without_shutdown(mut self) {
3282 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3284 std::mem::forget(self);
3286 }
3287}
3288
3289impl WlanFullmacImpl_StopBssResponder {
3290 pub fn send(self) -> Result<(), fidl::Error> {
3294 let _result = self.send_raw();
3295 if _result.is_err() {
3296 self.control_handle.shutdown();
3297 }
3298 self.drop_without_shutdown();
3299 _result
3300 }
3301
3302 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3304 let _result = self.send_raw();
3305 self.drop_without_shutdown();
3306 _result
3307 }
3308
3309 fn send_raw(&self) -> Result<(), fidl::Error> {
3310 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3311 (),
3312 self.tx_id,
3313 0x5aeb9b72e7575268,
3314 fidl::encoding::DynamicFlags::empty(),
3315 )
3316 }
3317}
3318
3319#[must_use = "FIDL methods require a response to be sent"]
3320#[derive(Debug)]
3321pub struct WlanFullmacImpl_SetKeysResponder {
3322 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3323 tx_id: u32,
3324}
3325
3326impl std::ops::Drop for WlanFullmacImpl_SetKeysResponder {
3330 fn drop(&mut self) {
3331 self.control_handle.shutdown();
3332 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3334 }
3335}
3336
3337impl fidl::endpoints::Responder for WlanFullmacImpl_SetKeysResponder {
3338 type ControlHandle = WlanFullmacImpl_ControlHandle;
3339
3340 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3341 &self.control_handle
3342 }
3343
3344 fn drop_without_shutdown(mut self) {
3345 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3347 std::mem::forget(self);
3349 }
3350}
3351
3352impl WlanFullmacImpl_SetKeysResponder {
3353 pub fn send(self, mut resp: &WlanFullmacSetKeysResp) -> Result<(), fidl::Error> {
3357 let _result = self.send_raw(resp);
3358 if _result.is_err() {
3359 self.control_handle.shutdown();
3360 }
3361 self.drop_without_shutdown();
3362 _result
3363 }
3364
3365 pub fn send_no_shutdown_on_err(
3367 self,
3368 mut resp: &WlanFullmacSetKeysResp,
3369 ) -> Result<(), fidl::Error> {
3370 let _result = self.send_raw(resp);
3371 self.drop_without_shutdown();
3372 _result
3373 }
3374
3375 fn send_raw(&self, mut resp: &WlanFullmacSetKeysResp) -> Result<(), fidl::Error> {
3376 self.control_handle.inner.send::<WlanFullmacImplSetKeysResponse>(
3377 (resp,),
3378 self.tx_id,
3379 0x20f46b1e039f0985,
3380 fidl::encoding::DynamicFlags::empty(),
3381 )
3382 }
3383}
3384
3385#[must_use = "FIDL methods require a response to be sent"]
3386#[derive(Debug)]
3387pub struct WlanFullmacImpl_EapolTxResponder {
3388 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3389 tx_id: u32,
3390}
3391
3392impl std::ops::Drop for WlanFullmacImpl_EapolTxResponder {
3396 fn drop(&mut self) {
3397 self.control_handle.shutdown();
3398 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3400 }
3401}
3402
3403impl fidl::endpoints::Responder for WlanFullmacImpl_EapolTxResponder {
3404 type ControlHandle = WlanFullmacImpl_ControlHandle;
3405
3406 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3407 &self.control_handle
3408 }
3409
3410 fn drop_without_shutdown(mut self) {
3411 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3413 std::mem::forget(self);
3415 }
3416}
3417
3418impl WlanFullmacImpl_EapolTxResponder {
3419 pub fn send(self) -> Result<(), fidl::Error> {
3423 let _result = self.send_raw();
3424 if _result.is_err() {
3425 self.control_handle.shutdown();
3426 }
3427 self.drop_without_shutdown();
3428 _result
3429 }
3430
3431 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3433 let _result = self.send_raw();
3434 self.drop_without_shutdown();
3435 _result
3436 }
3437
3438 fn send_raw(&self) -> Result<(), fidl::Error> {
3439 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3440 (),
3441 self.tx_id,
3442 0x529a2d90fd4c8177,
3443 fidl::encoding::DynamicFlags::empty(),
3444 )
3445 }
3446}
3447
3448#[must_use = "FIDL methods require a response to be sent"]
3449#[derive(Debug)]
3450pub struct WlanFullmacImpl_GetIfaceStatsResponder {
3451 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3452 tx_id: u32,
3453}
3454
3455impl std::ops::Drop for WlanFullmacImpl_GetIfaceStatsResponder {
3459 fn drop(&mut self) {
3460 self.control_handle.shutdown();
3461 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3463 }
3464}
3465
3466impl fidl::endpoints::Responder for WlanFullmacImpl_GetIfaceStatsResponder {
3467 type ControlHandle = WlanFullmacImpl_ControlHandle;
3468
3469 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3470 &self.control_handle
3471 }
3472
3473 fn drop_without_shutdown(mut self) {
3474 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3476 std::mem::forget(self);
3478 }
3479}
3480
3481impl WlanFullmacImpl_GetIfaceStatsResponder {
3482 pub fn send(
3486 self,
3487 mut result: Result<&fidl_fuchsia_wlan_stats::IfaceStats, i32>,
3488 ) -> Result<(), fidl::Error> {
3489 let _result = self.send_raw(result);
3490 if _result.is_err() {
3491 self.control_handle.shutdown();
3492 }
3493 self.drop_without_shutdown();
3494 _result
3495 }
3496
3497 pub fn send_no_shutdown_on_err(
3499 self,
3500 mut result: Result<&fidl_fuchsia_wlan_stats::IfaceStats, i32>,
3501 ) -> Result<(), fidl::Error> {
3502 let _result = self.send_raw(result);
3503 self.drop_without_shutdown();
3504 _result
3505 }
3506
3507 fn send_raw(
3508 &self,
3509 mut result: Result<&fidl_fuchsia_wlan_stats::IfaceStats, i32>,
3510 ) -> Result<(), fidl::Error> {
3511 self.control_handle.inner.send::<fidl::encoding::ResultType<
3512 WlanFullmacImplGetIfaceStatsResponse,
3513 i32,
3514 >>(
3515 result.map(|stats| (stats,)),
3516 self.tx_id,
3517 0x505563776ef0392f,
3518 fidl::encoding::DynamicFlags::empty(),
3519 )
3520 }
3521}
3522
3523#[must_use = "FIDL methods require a response to be sent"]
3524#[derive(Debug)]
3525pub struct WlanFullmacImpl_GetIfaceHistogramStatsResponder {
3526 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3527 tx_id: u32,
3528}
3529
3530impl std::ops::Drop for WlanFullmacImpl_GetIfaceHistogramStatsResponder {
3534 fn drop(&mut self) {
3535 self.control_handle.shutdown();
3536 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3538 }
3539}
3540
3541impl fidl::endpoints::Responder for WlanFullmacImpl_GetIfaceHistogramStatsResponder {
3542 type ControlHandle = WlanFullmacImpl_ControlHandle;
3543
3544 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3545 &self.control_handle
3546 }
3547
3548 fn drop_without_shutdown(mut self) {
3549 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3551 std::mem::forget(self);
3553 }
3554}
3555
3556impl WlanFullmacImpl_GetIfaceHistogramStatsResponder {
3557 pub fn send(
3561 self,
3562 mut result: Result<&fidl_fuchsia_wlan_stats::IfaceHistogramStats, i32>,
3563 ) -> Result<(), fidl::Error> {
3564 let _result = self.send_raw(result);
3565 if _result.is_err() {
3566 self.control_handle.shutdown();
3567 }
3568 self.drop_without_shutdown();
3569 _result
3570 }
3571
3572 pub fn send_no_shutdown_on_err(
3574 self,
3575 mut result: Result<&fidl_fuchsia_wlan_stats::IfaceHistogramStats, i32>,
3576 ) -> Result<(), fidl::Error> {
3577 let _result = self.send_raw(result);
3578 self.drop_without_shutdown();
3579 _result
3580 }
3581
3582 fn send_raw(
3583 &self,
3584 mut result: Result<&fidl_fuchsia_wlan_stats::IfaceHistogramStats, i32>,
3585 ) -> Result<(), fidl::Error> {
3586 self.control_handle.inner.send::<fidl::encoding::ResultType<
3587 WlanFullmacImplGetIfaceHistogramStatsResponse,
3588 i32,
3589 >>(
3590 result.map(|stats| (stats,)),
3591 self.tx_id,
3592 0x503d586f30ccf2cd,
3593 fidl::encoding::DynamicFlags::empty(),
3594 )
3595 }
3596}
3597
3598#[must_use = "FIDL methods require a response to be sent"]
3599#[derive(Debug)]
3600pub struct WlanFullmacImpl_SaeHandshakeRespResponder {
3601 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3602 tx_id: u32,
3603}
3604
3605impl std::ops::Drop for WlanFullmacImpl_SaeHandshakeRespResponder {
3609 fn drop(&mut self) {
3610 self.control_handle.shutdown();
3611 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3613 }
3614}
3615
3616impl fidl::endpoints::Responder for WlanFullmacImpl_SaeHandshakeRespResponder {
3617 type ControlHandle = WlanFullmacImpl_ControlHandle;
3618
3619 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3620 &self.control_handle
3621 }
3622
3623 fn drop_without_shutdown(mut self) {
3624 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3626 std::mem::forget(self);
3628 }
3629}
3630
3631impl WlanFullmacImpl_SaeHandshakeRespResponder {
3632 pub fn send(self) -> Result<(), fidl::Error> {
3636 let _result = self.send_raw();
3637 if _result.is_err() {
3638 self.control_handle.shutdown();
3639 }
3640 self.drop_without_shutdown();
3641 _result
3642 }
3643
3644 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3646 let _result = self.send_raw();
3647 self.drop_without_shutdown();
3648 _result
3649 }
3650
3651 fn send_raw(&self) -> Result<(), fidl::Error> {
3652 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3653 (),
3654 self.tx_id,
3655 0x72cd3a31ae5a54f6,
3656 fidl::encoding::DynamicFlags::empty(),
3657 )
3658 }
3659}
3660
3661#[must_use = "FIDL methods require a response to be sent"]
3662#[derive(Debug)]
3663pub struct WlanFullmacImpl_SaeFrameTxResponder {
3664 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3665 tx_id: u32,
3666}
3667
3668impl std::ops::Drop for WlanFullmacImpl_SaeFrameTxResponder {
3672 fn drop(&mut self) {
3673 self.control_handle.shutdown();
3674 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3676 }
3677}
3678
3679impl fidl::endpoints::Responder for WlanFullmacImpl_SaeFrameTxResponder {
3680 type ControlHandle = WlanFullmacImpl_ControlHandle;
3681
3682 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3683 &self.control_handle
3684 }
3685
3686 fn drop_without_shutdown(mut self) {
3687 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3689 std::mem::forget(self);
3691 }
3692}
3693
3694impl WlanFullmacImpl_SaeFrameTxResponder {
3695 pub fn send(self) -> Result<(), fidl::Error> {
3699 let _result = self.send_raw();
3700 if _result.is_err() {
3701 self.control_handle.shutdown();
3702 }
3703 self.drop_without_shutdown();
3704 _result
3705 }
3706
3707 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3709 let _result = self.send_raw();
3710 self.drop_without_shutdown();
3711 _result
3712 }
3713
3714 fn send_raw(&self) -> Result<(), fidl::Error> {
3715 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3716 (),
3717 self.tx_id,
3718 0x4715ad5dc5a6340f,
3719 fidl::encoding::DynamicFlags::empty(),
3720 )
3721 }
3722}
3723
3724#[must_use = "FIDL methods require a response to be sent"]
3725#[derive(Debug)]
3726pub struct WlanFullmacImpl_WmmStatusReqResponder {
3727 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3728 tx_id: u32,
3729}
3730
3731impl std::ops::Drop for WlanFullmacImpl_WmmStatusReqResponder {
3735 fn drop(&mut self) {
3736 self.control_handle.shutdown();
3737 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3739 }
3740}
3741
3742impl fidl::endpoints::Responder for WlanFullmacImpl_WmmStatusReqResponder {
3743 type ControlHandle = WlanFullmacImpl_ControlHandle;
3744
3745 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3746 &self.control_handle
3747 }
3748
3749 fn drop_without_shutdown(mut self) {
3750 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3752 std::mem::forget(self);
3754 }
3755}
3756
3757impl WlanFullmacImpl_WmmStatusReqResponder {
3758 pub fn send(self) -> Result<(), fidl::Error> {
3762 let _result = self.send_raw();
3763 if _result.is_err() {
3764 self.control_handle.shutdown();
3765 }
3766 self.drop_without_shutdown();
3767 _result
3768 }
3769
3770 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3772 let _result = self.send_raw();
3773 self.drop_without_shutdown();
3774 _result
3775 }
3776
3777 fn send_raw(&self) -> Result<(), fidl::Error> {
3778 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3779 (),
3780 self.tx_id,
3781 0x635ecef3beb7a059,
3782 fidl::encoding::DynamicFlags::empty(),
3783 )
3784 }
3785}
3786
3787#[must_use = "FIDL methods require a response to be sent"]
3788#[derive(Debug)]
3789pub struct WlanFullmacImpl_OnLinkStateChangedResponder {
3790 control_handle: std::mem::ManuallyDrop<WlanFullmacImpl_ControlHandle>,
3791 tx_id: u32,
3792}
3793
3794impl std::ops::Drop for WlanFullmacImpl_OnLinkStateChangedResponder {
3798 fn drop(&mut self) {
3799 self.control_handle.shutdown();
3800 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3802 }
3803}
3804
3805impl fidl::endpoints::Responder for WlanFullmacImpl_OnLinkStateChangedResponder {
3806 type ControlHandle = WlanFullmacImpl_ControlHandle;
3807
3808 fn control_handle(&self) -> &WlanFullmacImpl_ControlHandle {
3809 &self.control_handle
3810 }
3811
3812 fn drop_without_shutdown(mut self) {
3813 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
3815 std::mem::forget(self);
3817 }
3818}
3819
3820impl WlanFullmacImpl_OnLinkStateChangedResponder {
3821 pub fn send(self) -> Result<(), fidl::Error> {
3825 let _result = self.send_raw();
3826 if _result.is_err() {
3827 self.control_handle.shutdown();
3828 }
3829 self.drop_without_shutdown();
3830 _result
3831 }
3832
3833 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
3835 let _result = self.send_raw();
3836 self.drop_without_shutdown();
3837 _result
3838 }
3839
3840 fn send_raw(&self) -> Result<(), fidl::Error> {
3841 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
3842 (),
3843 self.tx_id,
3844 0x4d896e5b68e488d7,
3845 fidl::encoding::DynamicFlags::empty(),
3846 )
3847 }
3848}
3849
3850#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
3851pub struct WlanFullmacImplIfcMarker;
3852
3853impl fidl::endpoints::ProtocolMarker for WlanFullmacImplIfcMarker {
3854 type Proxy = WlanFullmacImplIfcProxy;
3855 type RequestStream = WlanFullmacImplIfcRequestStream;
3856 #[cfg(target_os = "fuchsia")]
3857 type SynchronousProxy = WlanFullmacImplIfcSynchronousProxy;
3858
3859 const DEBUG_NAME: &'static str = "fuchsia.wlan.fullmac.WlanFullmacImplIfc";
3860}
3861impl fidl::endpoints::DiscoverableProtocolMarker for WlanFullmacImplIfcMarker {}
3862
3863pub trait WlanFullmacImplIfcProxyInterface: Send + Sync {
3864 type OnScanResultResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3865 fn r#on_scan_result(
3866 &self,
3867 payload: &WlanFullmacImplIfcOnScanResultRequest,
3868 ) -> Self::OnScanResultResponseFut;
3869 type OnScanEndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3870 fn r#on_scan_end(
3871 &self,
3872 payload: &WlanFullmacImplIfcOnScanEndRequest,
3873 ) -> Self::OnScanEndResponseFut;
3874 type ConnectConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3875 fn r#connect_conf(
3876 &self,
3877 payload: &WlanFullmacImplIfcConnectConfRequest,
3878 ) -> Self::ConnectConfResponseFut;
3879 type RoamConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3880 fn r#roam_conf(&self, payload: &WlanFullmacImplIfcRoamConfRequest)
3881 -> Self::RoamConfResponseFut;
3882 type RoamStartIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3883 fn r#roam_start_ind(
3884 &self,
3885 payload: &WlanFullmacImplIfcRoamStartIndRequest,
3886 ) -> Self::RoamStartIndResponseFut;
3887 type RoamResultIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3888 fn r#roam_result_ind(
3889 &self,
3890 payload: &WlanFullmacImplIfcRoamResultIndRequest,
3891 ) -> Self::RoamResultIndResponseFut;
3892 type AuthIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3893 fn r#auth_ind(&self, payload: &WlanFullmacImplIfcAuthIndRequest) -> Self::AuthIndResponseFut;
3894 type DeauthConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3895 fn r#deauth_conf(
3896 &self,
3897 payload: &WlanFullmacImplIfcDeauthConfRequest,
3898 ) -> Self::DeauthConfResponseFut;
3899 type DeauthIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3900 fn r#deauth_ind(
3901 &self,
3902 payload: &WlanFullmacImplIfcDeauthIndRequest,
3903 ) -> Self::DeauthIndResponseFut;
3904 type AssocIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3905 fn r#assoc_ind(&self, payload: &WlanFullmacImplIfcAssocIndRequest)
3906 -> Self::AssocIndResponseFut;
3907 type DisassocConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3908 fn r#disassoc_conf(
3909 &self,
3910 payload: &WlanFullmacImplIfcDisassocConfRequest,
3911 ) -> Self::DisassocConfResponseFut;
3912 type DisassocIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3913 fn r#disassoc_ind(
3914 &self,
3915 payload: &WlanFullmacImplIfcDisassocIndRequest,
3916 ) -> Self::DisassocIndResponseFut;
3917 type StartConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3918 fn r#start_conf(
3919 &self,
3920 payload: &WlanFullmacImplIfcStartConfRequest,
3921 ) -> Self::StartConfResponseFut;
3922 type StopConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3923 fn r#stop_conf(&self, payload: &WlanFullmacImplIfcStopConfRequest)
3924 -> Self::StopConfResponseFut;
3925 type EapolConfResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3926 fn r#eapol_conf(
3927 &self,
3928 payload: &WlanFullmacImplIfcEapolConfRequest,
3929 ) -> Self::EapolConfResponseFut;
3930 type OnChannelSwitchResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3931 fn r#on_channel_switch(
3932 &self,
3933 ind: &WlanFullmacChannelSwitchInfo,
3934 ) -> Self::OnChannelSwitchResponseFut;
3935 type SignalReportResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3936 fn r#signal_report(
3937 &self,
3938 ind: &WlanFullmacSignalReportIndication,
3939 ) -> Self::SignalReportResponseFut;
3940 type EapolIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3941 fn r#eapol_ind(&self, payload: &WlanFullmacImplIfcEapolIndRequest)
3942 -> Self::EapolIndResponseFut;
3943 type OnPmkAvailableResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3944 fn r#on_pmk_available(
3945 &self,
3946 payload: &WlanFullmacImplIfcOnPmkAvailableRequest,
3947 ) -> Self::OnPmkAvailableResponseFut;
3948 type SaeHandshakeIndResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3949 fn r#sae_handshake_ind(
3950 &self,
3951 payload: &WlanFullmacImplIfcSaeHandshakeIndRequest,
3952 ) -> Self::SaeHandshakeIndResponseFut;
3953 type SaeFrameRxResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3954 fn r#sae_frame_rx(&self, frame: &SaeFrame) -> Self::SaeFrameRxResponseFut;
3955 type OnWmmStatusRespResponseFut: std::future::Future<Output = Result<(), fidl::Error>> + Send;
3956 fn r#on_wmm_status_resp(
3957 &self,
3958 status: i32,
3959 wmm_params: &fidl_fuchsia_wlan_common::WlanWmmParameters,
3960 ) -> Self::OnWmmStatusRespResponseFut;
3961}
3962#[derive(Debug)]
3963#[cfg(target_os = "fuchsia")]
3964pub struct WlanFullmacImplIfcSynchronousProxy {
3965 client: fidl::client::sync::Client,
3966}
3967
3968#[cfg(target_os = "fuchsia")]
3969impl fidl::endpoints::SynchronousProxy for WlanFullmacImplIfcSynchronousProxy {
3970 type Proxy = WlanFullmacImplIfcProxy;
3971 type Protocol = WlanFullmacImplIfcMarker;
3972
3973 fn from_channel(inner: fidl::Channel) -> Self {
3974 Self::new(inner)
3975 }
3976
3977 fn into_channel(self) -> fidl::Channel {
3978 self.client.into_channel()
3979 }
3980
3981 fn as_channel(&self) -> &fidl::Channel {
3982 self.client.as_channel()
3983 }
3984}
3985
3986#[cfg(target_os = "fuchsia")]
3987impl WlanFullmacImplIfcSynchronousProxy {
3988 pub fn new(channel: fidl::Channel) -> Self {
3989 let protocol_name =
3990 <WlanFullmacImplIfcMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
3991 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
3992 }
3993
3994 pub fn into_channel(self) -> fidl::Channel {
3995 self.client.into_channel()
3996 }
3997
3998 pub fn wait_for_event(
4001 &self,
4002 deadline: zx::MonotonicInstant,
4003 ) -> Result<WlanFullmacImplIfcEvent, fidl::Error> {
4004 WlanFullmacImplIfcEvent::decode(self.client.wait_for_event(deadline)?)
4005 }
4006
4007 pub fn r#on_scan_result(
4008 &self,
4009 mut payload: &WlanFullmacImplIfcOnScanResultRequest,
4010 ___deadline: zx::MonotonicInstant,
4011 ) -> Result<(), fidl::Error> {
4012 let _response = self
4013 .client
4014 .send_query::<WlanFullmacImplIfcOnScanResultRequest, fidl::encoding::EmptyPayload>(
4015 payload,
4016 0x29aa81dc570f7a3e,
4017 fidl::encoding::DynamicFlags::empty(),
4018 ___deadline,
4019 )?;
4020 Ok(_response)
4021 }
4022
4023 pub fn r#on_scan_end(
4024 &self,
4025 mut payload: &WlanFullmacImplIfcOnScanEndRequest,
4026 ___deadline: zx::MonotonicInstant,
4027 ) -> Result<(), fidl::Error> {
4028 let _response = self
4029 .client
4030 .send_query::<WlanFullmacImplIfcOnScanEndRequest, fidl::encoding::EmptyPayload>(
4031 payload,
4032 0x7cd8aff80d27073c,
4033 fidl::encoding::DynamicFlags::empty(),
4034 ___deadline,
4035 )?;
4036 Ok(_response)
4037 }
4038
4039 pub fn r#connect_conf(
4040 &self,
4041 mut payload: &WlanFullmacImplIfcConnectConfRequest,
4042 ___deadline: zx::MonotonicInstant,
4043 ) -> Result<(), fidl::Error> {
4044 let _response = self
4045 .client
4046 .send_query::<WlanFullmacImplIfcConnectConfRequest, fidl::encoding::EmptyPayload>(
4047 payload,
4048 0x3c22c6d80b2a2759,
4049 fidl::encoding::DynamicFlags::empty(),
4050 ___deadline,
4051 )?;
4052 Ok(_response)
4053 }
4054
4055 pub fn r#roam_conf(
4057 &self,
4058 mut payload: &WlanFullmacImplIfcRoamConfRequest,
4059 ___deadline: zx::MonotonicInstant,
4060 ) -> Result<(), fidl::Error> {
4061 let _response = self
4062 .client
4063 .send_query::<WlanFullmacImplIfcRoamConfRequest, fidl::encoding::EmptyPayload>(
4064 payload,
4065 0x368b2a5b903b3f7b,
4066 fidl::encoding::DynamicFlags::empty(),
4067 ___deadline,
4068 )?;
4069 Ok(_response)
4070 }
4071
4072 pub fn r#roam_start_ind(
4075 &self,
4076 mut payload: &WlanFullmacImplIfcRoamStartIndRequest,
4077 ___deadline: zx::MonotonicInstant,
4078 ) -> Result<(), fidl::Error> {
4079 let _response = self
4080 .client
4081 .send_query::<WlanFullmacImplIfcRoamStartIndRequest, fidl::encoding::EmptyPayload>(
4082 payload,
4083 0x23e1d9368935e7e4,
4084 fidl::encoding::DynamicFlags::empty(),
4085 ___deadline,
4086 )?;
4087 Ok(_response)
4088 }
4089
4090 pub fn r#roam_result_ind(
4092 &self,
4093 mut payload: &WlanFullmacImplIfcRoamResultIndRequest,
4094 ___deadline: zx::MonotonicInstant,
4095 ) -> Result<(), fidl::Error> {
4096 let _response = self
4097 .client
4098 .send_query::<WlanFullmacImplIfcRoamResultIndRequest, fidl::encoding::EmptyPayload>(
4099 payload,
4100 0x7081c1b1ceea4914,
4101 fidl::encoding::DynamicFlags::empty(),
4102 ___deadline,
4103 )?;
4104 Ok(_response)
4105 }
4106
4107 pub fn r#auth_ind(
4108 &self,
4109 mut payload: &WlanFullmacImplIfcAuthIndRequest,
4110 ___deadline: zx::MonotonicInstant,
4111 ) -> Result<(), fidl::Error> {
4112 let _response = self
4113 .client
4114 .send_query::<WlanFullmacImplIfcAuthIndRequest, fidl::encoding::EmptyPayload>(
4115 payload,
4116 0x270e1f8889650d0b,
4117 fidl::encoding::DynamicFlags::empty(),
4118 ___deadline,
4119 )?;
4120 Ok(_response)
4121 }
4122
4123 pub fn r#deauth_conf(
4124 &self,
4125 mut payload: &WlanFullmacImplIfcDeauthConfRequest,
4126 ___deadline: zx::MonotonicInstant,
4127 ) -> Result<(), fidl::Error> {
4128 let _response = self
4129 .client
4130 .send_query::<WlanFullmacImplIfcDeauthConfRequest, fidl::encoding::EmptyPayload>(
4131 payload,
4132 0x2c94b0d7258111b7,
4133 fidl::encoding::DynamicFlags::empty(),
4134 ___deadline,
4135 )?;
4136 Ok(_response)
4137 }
4138
4139 pub fn r#deauth_ind(
4141 &self,
4142 mut payload: &WlanFullmacImplIfcDeauthIndRequest,
4143 ___deadline: zx::MonotonicInstant,
4144 ) -> Result<(), fidl::Error> {
4145 let _response = self
4146 .client
4147 .send_query::<WlanFullmacImplIfcDeauthIndRequest, fidl::encoding::EmptyPayload>(
4148 payload,
4149 0x26cd27cdadd8dbaf,
4150 fidl::encoding::DynamicFlags::empty(),
4151 ___deadline,
4152 )?;
4153 Ok(_response)
4154 }
4155
4156 pub fn r#assoc_ind(
4157 &self,
4158 mut payload: &WlanFullmacImplIfcAssocIndRequest,
4159 ___deadline: zx::MonotonicInstant,
4160 ) -> Result<(), fidl::Error> {
4161 let _response = self
4162 .client
4163 .send_query::<WlanFullmacImplIfcAssocIndRequest, fidl::encoding::EmptyPayload>(
4164 payload,
4165 0x3e44529e3dc179ce,
4166 fidl::encoding::DynamicFlags::empty(),
4167 ___deadline,
4168 )?;
4169 Ok(_response)
4170 }
4171
4172 pub fn r#disassoc_conf(
4174 &self,
4175 mut payload: &WlanFullmacImplIfcDisassocConfRequest,
4176 ___deadline: zx::MonotonicInstant,
4177 ) -> Result<(), fidl::Error> {
4178 let _response = self
4179 .client
4180 .send_query::<WlanFullmacImplIfcDisassocConfRequest, fidl::encoding::EmptyPayload>(
4181 payload,
4182 0x7c713bcd58a76cb3,
4183 fidl::encoding::DynamicFlags::empty(),
4184 ___deadline,
4185 )?;
4186 Ok(_response)
4187 }
4188
4189 pub fn r#disassoc_ind(
4191 &self,
4192 mut payload: &WlanFullmacImplIfcDisassocIndRequest,
4193 ___deadline: zx::MonotonicInstant,
4194 ) -> Result<(), fidl::Error> {
4195 let _response = self
4196 .client
4197 .send_query::<WlanFullmacImplIfcDisassocIndRequest, fidl::encoding::EmptyPayload>(
4198 payload,
4199 0x6667b381b7f3990f,
4200 fidl::encoding::DynamicFlags::empty(),
4201 ___deadline,
4202 )?;
4203 Ok(_response)
4204 }
4205
4206 pub fn r#start_conf(
4208 &self,
4209 mut payload: &WlanFullmacImplIfcStartConfRequest,
4210 ___deadline: zx::MonotonicInstant,
4211 ) -> Result<(), fidl::Error> {
4212 let _response = self
4213 .client
4214 .send_query::<WlanFullmacImplIfcStartConfRequest, fidl::encoding::EmptyPayload>(
4215 payload,
4216 0x3e9b9641f3ddc7fc,
4217 fidl::encoding::DynamicFlags::empty(),
4218 ___deadline,
4219 )?;
4220 Ok(_response)
4221 }
4222
4223 pub fn r#stop_conf(
4225 &self,
4226 mut payload: &WlanFullmacImplIfcStopConfRequest,
4227 ___deadline: zx::MonotonicInstant,
4228 ) -> Result<(), fidl::Error> {
4229 let _response = self
4230 .client
4231 .send_query::<WlanFullmacImplIfcStopConfRequest, fidl::encoding::EmptyPayload>(
4232 payload,
4233 0x320a5ff227a4e9df,
4234 fidl::encoding::DynamicFlags::empty(),
4235 ___deadline,
4236 )?;
4237 Ok(_response)
4238 }
4239
4240 pub fn r#eapol_conf(
4243 &self,
4244 mut payload: &WlanFullmacImplIfcEapolConfRequest,
4245 ___deadline: zx::MonotonicInstant,
4246 ) -> Result<(), fidl::Error> {
4247 let _response = self
4248 .client
4249 .send_query::<WlanFullmacImplIfcEapolConfRequest, fidl::encoding::EmptyPayload>(
4250 payload,
4251 0x77364db9cc3970ec,
4252 fidl::encoding::DynamicFlags::empty(),
4253 ___deadline,
4254 )?;
4255 Ok(_response)
4256 }
4257
4258 pub fn r#on_channel_switch(
4259 &self,
4260 mut ind: &WlanFullmacChannelSwitchInfo,
4261 ___deadline: zx::MonotonicInstant,
4262 ) -> Result<(), fidl::Error> {
4263 let _response = self
4264 .client
4265 .send_query::<WlanFullmacImplIfcOnChannelSwitchRequest, fidl::encoding::EmptyPayload>(
4266 (ind,),
4267 0x21db0b8f71cae647,
4268 fidl::encoding::DynamicFlags::empty(),
4269 ___deadline,
4270 )?;
4271 Ok(_response)
4272 }
4273
4274 pub fn r#signal_report(
4275 &self,
4276 mut ind: &WlanFullmacSignalReportIndication,
4277 ___deadline: zx::MonotonicInstant,
4278 ) -> Result<(), fidl::Error> {
4279 let _response = self
4280 .client
4281 .send_query::<WlanFullmacImplIfcSignalReportRequest, fidl::encoding::EmptyPayload>(
4282 (ind,),
4283 0x79679fa8789c3d9f,
4284 fidl::encoding::DynamicFlags::empty(),
4285 ___deadline,
4286 )?;
4287 Ok(_response)
4288 }
4289
4290 pub fn r#eapol_ind(
4292 &self,
4293 mut payload: &WlanFullmacImplIfcEapolIndRequest,
4294 ___deadline: zx::MonotonicInstant,
4295 ) -> Result<(), fidl::Error> {
4296 let _response = self
4297 .client
4298 .send_query::<WlanFullmacImplIfcEapolIndRequest, fidl::encoding::EmptyPayload>(
4299 payload,
4300 0x3de8ec1eda10d1d0,
4301 fidl::encoding::DynamicFlags::empty(),
4302 ___deadline,
4303 )?;
4304 Ok(_response)
4305 }
4306
4307 pub fn r#on_pmk_available(
4309 &self,
4310 mut payload: &WlanFullmacImplIfcOnPmkAvailableRequest,
4311 ___deadline: zx::MonotonicInstant,
4312 ) -> Result<(), fidl::Error> {
4313 let _response = self
4314 .client
4315 .send_query::<WlanFullmacImplIfcOnPmkAvailableRequest, fidl::encoding::EmptyPayload>(
4316 payload,
4317 0x5cedd8d9be28a17e,
4318 fidl::encoding::DynamicFlags::empty(),
4319 ___deadline,
4320 )?;
4321 Ok(_response)
4322 }
4323
4324 pub fn r#sae_handshake_ind(
4325 &self,
4326 mut payload: &WlanFullmacImplIfcSaeHandshakeIndRequest,
4327 ___deadline: zx::MonotonicInstant,
4328 ) -> Result<(), fidl::Error> {
4329 let _response = self
4330 .client
4331 .send_query::<WlanFullmacImplIfcSaeHandshakeIndRequest, fidl::encoding::EmptyPayload>(
4332 payload,
4333 0x4f3d53885503a1d8,
4334 fidl::encoding::DynamicFlags::empty(),
4335 ___deadline,
4336 )?;
4337 Ok(_response)
4338 }
4339
4340 pub fn r#sae_frame_rx(
4342 &self,
4343 mut frame: &SaeFrame,
4344 ___deadline: zx::MonotonicInstant,
4345 ) -> Result<(), fidl::Error> {
4346 let _response = self
4347 .client
4348 .send_query::<WlanFullmacImplIfcSaeFrameRxRequest, fidl::encoding::EmptyPayload>(
4349 (frame,),
4350 0x51650906857ed4d4,
4351 fidl::encoding::DynamicFlags::empty(),
4352 ___deadline,
4353 )?;
4354 Ok(_response)
4355 }
4356
4357 pub fn r#on_wmm_status_resp(
4358 &self,
4359 mut status: i32,
4360 mut wmm_params: &fidl_fuchsia_wlan_common::WlanWmmParameters,
4361 ___deadline: zx::MonotonicInstant,
4362 ) -> Result<(), fidl::Error> {
4363 let _response = self
4364 .client
4365 .send_query::<WlanFullmacImplIfcOnWmmStatusRespRequest, fidl::encoding::EmptyPayload>(
4366 (status, wmm_params),
4367 0x6823a88bf3ba8b2a,
4368 fidl::encoding::DynamicFlags::empty(),
4369 ___deadline,
4370 )?;
4371 Ok(_response)
4372 }
4373}
4374
4375#[cfg(target_os = "fuchsia")]
4376impl From<WlanFullmacImplIfcSynchronousProxy> for zx::Handle {
4377 fn from(value: WlanFullmacImplIfcSynchronousProxy) -> Self {
4378 value.into_channel().into()
4379 }
4380}
4381
4382#[cfg(target_os = "fuchsia")]
4383impl From<fidl::Channel> for WlanFullmacImplIfcSynchronousProxy {
4384 fn from(value: fidl::Channel) -> Self {
4385 Self::new(value)
4386 }
4387}
4388
4389#[derive(Debug, Clone)]
4390pub struct WlanFullmacImplIfcProxy {
4391 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
4392}
4393
4394impl fidl::endpoints::Proxy for WlanFullmacImplIfcProxy {
4395 type Protocol = WlanFullmacImplIfcMarker;
4396
4397 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
4398 Self::new(inner)
4399 }
4400
4401 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
4402 self.client.into_channel().map_err(|client| Self { client })
4403 }
4404
4405 fn as_channel(&self) -> &::fidl::AsyncChannel {
4406 self.client.as_channel()
4407 }
4408}
4409
4410impl WlanFullmacImplIfcProxy {
4411 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
4413 let protocol_name =
4414 <WlanFullmacImplIfcMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
4415 Self { client: fidl::client::Client::new(channel, protocol_name) }
4416 }
4417
4418 pub fn take_event_stream(&self) -> WlanFullmacImplIfcEventStream {
4424 WlanFullmacImplIfcEventStream { event_receiver: self.client.take_event_receiver() }
4425 }
4426
4427 pub fn r#on_scan_result(
4428 &self,
4429 mut payload: &WlanFullmacImplIfcOnScanResultRequest,
4430 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4431 WlanFullmacImplIfcProxyInterface::r#on_scan_result(self, payload)
4432 }
4433
4434 pub fn r#on_scan_end(
4435 &self,
4436 mut payload: &WlanFullmacImplIfcOnScanEndRequest,
4437 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4438 WlanFullmacImplIfcProxyInterface::r#on_scan_end(self, payload)
4439 }
4440
4441 pub fn r#connect_conf(
4442 &self,
4443 mut payload: &WlanFullmacImplIfcConnectConfRequest,
4444 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4445 WlanFullmacImplIfcProxyInterface::r#connect_conf(self, payload)
4446 }
4447
4448 pub fn r#roam_conf(
4450 &self,
4451 mut payload: &WlanFullmacImplIfcRoamConfRequest,
4452 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4453 WlanFullmacImplIfcProxyInterface::r#roam_conf(self, payload)
4454 }
4455
4456 pub fn r#roam_start_ind(
4459 &self,
4460 mut payload: &WlanFullmacImplIfcRoamStartIndRequest,
4461 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4462 WlanFullmacImplIfcProxyInterface::r#roam_start_ind(self, payload)
4463 }
4464
4465 pub fn r#roam_result_ind(
4467 &self,
4468 mut payload: &WlanFullmacImplIfcRoamResultIndRequest,
4469 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4470 WlanFullmacImplIfcProxyInterface::r#roam_result_ind(self, payload)
4471 }
4472
4473 pub fn r#auth_ind(
4474 &self,
4475 mut payload: &WlanFullmacImplIfcAuthIndRequest,
4476 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4477 WlanFullmacImplIfcProxyInterface::r#auth_ind(self, payload)
4478 }
4479
4480 pub fn r#deauth_conf(
4481 &self,
4482 mut payload: &WlanFullmacImplIfcDeauthConfRequest,
4483 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4484 WlanFullmacImplIfcProxyInterface::r#deauth_conf(self, payload)
4485 }
4486
4487 pub fn r#deauth_ind(
4489 &self,
4490 mut payload: &WlanFullmacImplIfcDeauthIndRequest,
4491 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4492 WlanFullmacImplIfcProxyInterface::r#deauth_ind(self, payload)
4493 }
4494
4495 pub fn r#assoc_ind(
4496 &self,
4497 mut payload: &WlanFullmacImplIfcAssocIndRequest,
4498 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4499 WlanFullmacImplIfcProxyInterface::r#assoc_ind(self, payload)
4500 }
4501
4502 pub fn r#disassoc_conf(
4504 &self,
4505 mut payload: &WlanFullmacImplIfcDisassocConfRequest,
4506 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4507 WlanFullmacImplIfcProxyInterface::r#disassoc_conf(self, payload)
4508 }
4509
4510 pub fn r#disassoc_ind(
4512 &self,
4513 mut payload: &WlanFullmacImplIfcDisassocIndRequest,
4514 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4515 WlanFullmacImplIfcProxyInterface::r#disassoc_ind(self, payload)
4516 }
4517
4518 pub fn r#start_conf(
4520 &self,
4521 mut payload: &WlanFullmacImplIfcStartConfRequest,
4522 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4523 WlanFullmacImplIfcProxyInterface::r#start_conf(self, payload)
4524 }
4525
4526 pub fn r#stop_conf(
4528 &self,
4529 mut payload: &WlanFullmacImplIfcStopConfRequest,
4530 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4531 WlanFullmacImplIfcProxyInterface::r#stop_conf(self, payload)
4532 }
4533
4534 pub fn r#eapol_conf(
4537 &self,
4538 mut payload: &WlanFullmacImplIfcEapolConfRequest,
4539 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4540 WlanFullmacImplIfcProxyInterface::r#eapol_conf(self, payload)
4541 }
4542
4543 pub fn r#on_channel_switch(
4544 &self,
4545 mut ind: &WlanFullmacChannelSwitchInfo,
4546 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4547 WlanFullmacImplIfcProxyInterface::r#on_channel_switch(self, ind)
4548 }
4549
4550 pub fn r#signal_report(
4551 &self,
4552 mut ind: &WlanFullmacSignalReportIndication,
4553 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4554 WlanFullmacImplIfcProxyInterface::r#signal_report(self, ind)
4555 }
4556
4557 pub fn r#eapol_ind(
4559 &self,
4560 mut payload: &WlanFullmacImplIfcEapolIndRequest,
4561 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4562 WlanFullmacImplIfcProxyInterface::r#eapol_ind(self, payload)
4563 }
4564
4565 pub fn r#on_pmk_available(
4567 &self,
4568 mut payload: &WlanFullmacImplIfcOnPmkAvailableRequest,
4569 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4570 WlanFullmacImplIfcProxyInterface::r#on_pmk_available(self, payload)
4571 }
4572
4573 pub fn r#sae_handshake_ind(
4574 &self,
4575 mut payload: &WlanFullmacImplIfcSaeHandshakeIndRequest,
4576 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4577 WlanFullmacImplIfcProxyInterface::r#sae_handshake_ind(self, payload)
4578 }
4579
4580 pub fn r#sae_frame_rx(
4582 &self,
4583 mut frame: &SaeFrame,
4584 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4585 WlanFullmacImplIfcProxyInterface::r#sae_frame_rx(self, frame)
4586 }
4587
4588 pub fn r#on_wmm_status_resp(
4589 &self,
4590 mut status: i32,
4591 mut wmm_params: &fidl_fuchsia_wlan_common::WlanWmmParameters,
4592 ) -> fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect> {
4593 WlanFullmacImplIfcProxyInterface::r#on_wmm_status_resp(self, status, wmm_params)
4594 }
4595}
4596
4597impl WlanFullmacImplIfcProxyInterface for WlanFullmacImplIfcProxy {
4598 type OnScanResultResponseFut =
4599 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4600 fn r#on_scan_result(
4601 &self,
4602 mut payload: &WlanFullmacImplIfcOnScanResultRequest,
4603 ) -> Self::OnScanResultResponseFut {
4604 fn _decode(
4605 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4606 ) -> Result<(), fidl::Error> {
4607 let _response = fidl::client::decode_transaction_body::<
4608 fidl::encoding::EmptyPayload,
4609 fidl::encoding::DefaultFuchsiaResourceDialect,
4610 0x29aa81dc570f7a3e,
4611 >(_buf?)?;
4612 Ok(_response)
4613 }
4614 self.client.send_query_and_decode::<WlanFullmacImplIfcOnScanResultRequest, ()>(
4615 payload,
4616 0x29aa81dc570f7a3e,
4617 fidl::encoding::DynamicFlags::empty(),
4618 _decode,
4619 )
4620 }
4621
4622 type OnScanEndResponseFut =
4623 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4624 fn r#on_scan_end(
4625 &self,
4626 mut payload: &WlanFullmacImplIfcOnScanEndRequest,
4627 ) -> Self::OnScanEndResponseFut {
4628 fn _decode(
4629 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4630 ) -> Result<(), fidl::Error> {
4631 let _response = fidl::client::decode_transaction_body::<
4632 fidl::encoding::EmptyPayload,
4633 fidl::encoding::DefaultFuchsiaResourceDialect,
4634 0x7cd8aff80d27073c,
4635 >(_buf?)?;
4636 Ok(_response)
4637 }
4638 self.client.send_query_and_decode::<WlanFullmacImplIfcOnScanEndRequest, ()>(
4639 payload,
4640 0x7cd8aff80d27073c,
4641 fidl::encoding::DynamicFlags::empty(),
4642 _decode,
4643 )
4644 }
4645
4646 type ConnectConfResponseFut =
4647 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4648 fn r#connect_conf(
4649 &self,
4650 mut payload: &WlanFullmacImplIfcConnectConfRequest,
4651 ) -> Self::ConnectConfResponseFut {
4652 fn _decode(
4653 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4654 ) -> Result<(), fidl::Error> {
4655 let _response = fidl::client::decode_transaction_body::<
4656 fidl::encoding::EmptyPayload,
4657 fidl::encoding::DefaultFuchsiaResourceDialect,
4658 0x3c22c6d80b2a2759,
4659 >(_buf?)?;
4660 Ok(_response)
4661 }
4662 self.client.send_query_and_decode::<WlanFullmacImplIfcConnectConfRequest, ()>(
4663 payload,
4664 0x3c22c6d80b2a2759,
4665 fidl::encoding::DynamicFlags::empty(),
4666 _decode,
4667 )
4668 }
4669
4670 type RoamConfResponseFut =
4671 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4672 fn r#roam_conf(
4673 &self,
4674 mut payload: &WlanFullmacImplIfcRoamConfRequest,
4675 ) -> Self::RoamConfResponseFut {
4676 fn _decode(
4677 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4678 ) -> Result<(), fidl::Error> {
4679 let _response = fidl::client::decode_transaction_body::<
4680 fidl::encoding::EmptyPayload,
4681 fidl::encoding::DefaultFuchsiaResourceDialect,
4682 0x368b2a5b903b3f7b,
4683 >(_buf?)?;
4684 Ok(_response)
4685 }
4686 self.client.send_query_and_decode::<WlanFullmacImplIfcRoamConfRequest, ()>(
4687 payload,
4688 0x368b2a5b903b3f7b,
4689 fidl::encoding::DynamicFlags::empty(),
4690 _decode,
4691 )
4692 }
4693
4694 type RoamStartIndResponseFut =
4695 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4696 fn r#roam_start_ind(
4697 &self,
4698 mut payload: &WlanFullmacImplIfcRoamStartIndRequest,
4699 ) -> Self::RoamStartIndResponseFut {
4700 fn _decode(
4701 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4702 ) -> Result<(), fidl::Error> {
4703 let _response = fidl::client::decode_transaction_body::<
4704 fidl::encoding::EmptyPayload,
4705 fidl::encoding::DefaultFuchsiaResourceDialect,
4706 0x23e1d9368935e7e4,
4707 >(_buf?)?;
4708 Ok(_response)
4709 }
4710 self.client.send_query_and_decode::<WlanFullmacImplIfcRoamStartIndRequest, ()>(
4711 payload,
4712 0x23e1d9368935e7e4,
4713 fidl::encoding::DynamicFlags::empty(),
4714 _decode,
4715 )
4716 }
4717
4718 type RoamResultIndResponseFut =
4719 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4720 fn r#roam_result_ind(
4721 &self,
4722 mut payload: &WlanFullmacImplIfcRoamResultIndRequest,
4723 ) -> Self::RoamResultIndResponseFut {
4724 fn _decode(
4725 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4726 ) -> Result<(), fidl::Error> {
4727 let _response = fidl::client::decode_transaction_body::<
4728 fidl::encoding::EmptyPayload,
4729 fidl::encoding::DefaultFuchsiaResourceDialect,
4730 0x7081c1b1ceea4914,
4731 >(_buf?)?;
4732 Ok(_response)
4733 }
4734 self.client.send_query_and_decode::<WlanFullmacImplIfcRoamResultIndRequest, ()>(
4735 payload,
4736 0x7081c1b1ceea4914,
4737 fidl::encoding::DynamicFlags::empty(),
4738 _decode,
4739 )
4740 }
4741
4742 type AuthIndResponseFut =
4743 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4744 fn r#auth_ind(
4745 &self,
4746 mut payload: &WlanFullmacImplIfcAuthIndRequest,
4747 ) -> Self::AuthIndResponseFut {
4748 fn _decode(
4749 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4750 ) -> Result<(), fidl::Error> {
4751 let _response = fidl::client::decode_transaction_body::<
4752 fidl::encoding::EmptyPayload,
4753 fidl::encoding::DefaultFuchsiaResourceDialect,
4754 0x270e1f8889650d0b,
4755 >(_buf?)?;
4756 Ok(_response)
4757 }
4758 self.client.send_query_and_decode::<WlanFullmacImplIfcAuthIndRequest, ()>(
4759 payload,
4760 0x270e1f8889650d0b,
4761 fidl::encoding::DynamicFlags::empty(),
4762 _decode,
4763 )
4764 }
4765
4766 type DeauthConfResponseFut =
4767 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4768 fn r#deauth_conf(
4769 &self,
4770 mut payload: &WlanFullmacImplIfcDeauthConfRequest,
4771 ) -> Self::DeauthConfResponseFut {
4772 fn _decode(
4773 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4774 ) -> Result<(), fidl::Error> {
4775 let _response = fidl::client::decode_transaction_body::<
4776 fidl::encoding::EmptyPayload,
4777 fidl::encoding::DefaultFuchsiaResourceDialect,
4778 0x2c94b0d7258111b7,
4779 >(_buf?)?;
4780 Ok(_response)
4781 }
4782 self.client.send_query_and_decode::<WlanFullmacImplIfcDeauthConfRequest, ()>(
4783 payload,
4784 0x2c94b0d7258111b7,
4785 fidl::encoding::DynamicFlags::empty(),
4786 _decode,
4787 )
4788 }
4789
4790 type DeauthIndResponseFut =
4791 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4792 fn r#deauth_ind(
4793 &self,
4794 mut payload: &WlanFullmacImplIfcDeauthIndRequest,
4795 ) -> Self::DeauthIndResponseFut {
4796 fn _decode(
4797 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4798 ) -> Result<(), fidl::Error> {
4799 let _response = fidl::client::decode_transaction_body::<
4800 fidl::encoding::EmptyPayload,
4801 fidl::encoding::DefaultFuchsiaResourceDialect,
4802 0x26cd27cdadd8dbaf,
4803 >(_buf?)?;
4804 Ok(_response)
4805 }
4806 self.client.send_query_and_decode::<WlanFullmacImplIfcDeauthIndRequest, ()>(
4807 payload,
4808 0x26cd27cdadd8dbaf,
4809 fidl::encoding::DynamicFlags::empty(),
4810 _decode,
4811 )
4812 }
4813
4814 type AssocIndResponseFut =
4815 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4816 fn r#assoc_ind(
4817 &self,
4818 mut payload: &WlanFullmacImplIfcAssocIndRequest,
4819 ) -> Self::AssocIndResponseFut {
4820 fn _decode(
4821 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4822 ) -> Result<(), fidl::Error> {
4823 let _response = fidl::client::decode_transaction_body::<
4824 fidl::encoding::EmptyPayload,
4825 fidl::encoding::DefaultFuchsiaResourceDialect,
4826 0x3e44529e3dc179ce,
4827 >(_buf?)?;
4828 Ok(_response)
4829 }
4830 self.client.send_query_and_decode::<WlanFullmacImplIfcAssocIndRequest, ()>(
4831 payload,
4832 0x3e44529e3dc179ce,
4833 fidl::encoding::DynamicFlags::empty(),
4834 _decode,
4835 )
4836 }
4837
4838 type DisassocConfResponseFut =
4839 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4840 fn r#disassoc_conf(
4841 &self,
4842 mut payload: &WlanFullmacImplIfcDisassocConfRequest,
4843 ) -> Self::DisassocConfResponseFut {
4844 fn _decode(
4845 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4846 ) -> Result<(), fidl::Error> {
4847 let _response = fidl::client::decode_transaction_body::<
4848 fidl::encoding::EmptyPayload,
4849 fidl::encoding::DefaultFuchsiaResourceDialect,
4850 0x7c713bcd58a76cb3,
4851 >(_buf?)?;
4852 Ok(_response)
4853 }
4854 self.client.send_query_and_decode::<WlanFullmacImplIfcDisassocConfRequest, ()>(
4855 payload,
4856 0x7c713bcd58a76cb3,
4857 fidl::encoding::DynamicFlags::empty(),
4858 _decode,
4859 )
4860 }
4861
4862 type DisassocIndResponseFut =
4863 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4864 fn r#disassoc_ind(
4865 &self,
4866 mut payload: &WlanFullmacImplIfcDisassocIndRequest,
4867 ) -> Self::DisassocIndResponseFut {
4868 fn _decode(
4869 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4870 ) -> Result<(), fidl::Error> {
4871 let _response = fidl::client::decode_transaction_body::<
4872 fidl::encoding::EmptyPayload,
4873 fidl::encoding::DefaultFuchsiaResourceDialect,
4874 0x6667b381b7f3990f,
4875 >(_buf?)?;
4876 Ok(_response)
4877 }
4878 self.client.send_query_and_decode::<WlanFullmacImplIfcDisassocIndRequest, ()>(
4879 payload,
4880 0x6667b381b7f3990f,
4881 fidl::encoding::DynamicFlags::empty(),
4882 _decode,
4883 )
4884 }
4885
4886 type StartConfResponseFut =
4887 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4888 fn r#start_conf(
4889 &self,
4890 mut payload: &WlanFullmacImplIfcStartConfRequest,
4891 ) -> Self::StartConfResponseFut {
4892 fn _decode(
4893 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4894 ) -> Result<(), fidl::Error> {
4895 let _response = fidl::client::decode_transaction_body::<
4896 fidl::encoding::EmptyPayload,
4897 fidl::encoding::DefaultFuchsiaResourceDialect,
4898 0x3e9b9641f3ddc7fc,
4899 >(_buf?)?;
4900 Ok(_response)
4901 }
4902 self.client.send_query_and_decode::<WlanFullmacImplIfcStartConfRequest, ()>(
4903 payload,
4904 0x3e9b9641f3ddc7fc,
4905 fidl::encoding::DynamicFlags::empty(),
4906 _decode,
4907 )
4908 }
4909
4910 type StopConfResponseFut =
4911 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4912 fn r#stop_conf(
4913 &self,
4914 mut payload: &WlanFullmacImplIfcStopConfRequest,
4915 ) -> Self::StopConfResponseFut {
4916 fn _decode(
4917 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4918 ) -> Result<(), fidl::Error> {
4919 let _response = fidl::client::decode_transaction_body::<
4920 fidl::encoding::EmptyPayload,
4921 fidl::encoding::DefaultFuchsiaResourceDialect,
4922 0x320a5ff227a4e9df,
4923 >(_buf?)?;
4924 Ok(_response)
4925 }
4926 self.client.send_query_and_decode::<WlanFullmacImplIfcStopConfRequest, ()>(
4927 payload,
4928 0x320a5ff227a4e9df,
4929 fidl::encoding::DynamicFlags::empty(),
4930 _decode,
4931 )
4932 }
4933
4934 type EapolConfResponseFut =
4935 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4936 fn r#eapol_conf(
4937 &self,
4938 mut payload: &WlanFullmacImplIfcEapolConfRequest,
4939 ) -> Self::EapolConfResponseFut {
4940 fn _decode(
4941 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4942 ) -> Result<(), fidl::Error> {
4943 let _response = fidl::client::decode_transaction_body::<
4944 fidl::encoding::EmptyPayload,
4945 fidl::encoding::DefaultFuchsiaResourceDialect,
4946 0x77364db9cc3970ec,
4947 >(_buf?)?;
4948 Ok(_response)
4949 }
4950 self.client.send_query_and_decode::<WlanFullmacImplIfcEapolConfRequest, ()>(
4951 payload,
4952 0x77364db9cc3970ec,
4953 fidl::encoding::DynamicFlags::empty(),
4954 _decode,
4955 )
4956 }
4957
4958 type OnChannelSwitchResponseFut =
4959 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4960 fn r#on_channel_switch(
4961 &self,
4962 mut ind: &WlanFullmacChannelSwitchInfo,
4963 ) -> Self::OnChannelSwitchResponseFut {
4964 fn _decode(
4965 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4966 ) -> Result<(), fidl::Error> {
4967 let _response = fidl::client::decode_transaction_body::<
4968 fidl::encoding::EmptyPayload,
4969 fidl::encoding::DefaultFuchsiaResourceDialect,
4970 0x21db0b8f71cae647,
4971 >(_buf?)?;
4972 Ok(_response)
4973 }
4974 self.client.send_query_and_decode::<WlanFullmacImplIfcOnChannelSwitchRequest, ()>(
4975 (ind,),
4976 0x21db0b8f71cae647,
4977 fidl::encoding::DynamicFlags::empty(),
4978 _decode,
4979 )
4980 }
4981
4982 type SignalReportResponseFut =
4983 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
4984 fn r#signal_report(
4985 &self,
4986 mut ind: &WlanFullmacSignalReportIndication,
4987 ) -> Self::SignalReportResponseFut {
4988 fn _decode(
4989 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4990 ) -> Result<(), fidl::Error> {
4991 let _response = fidl::client::decode_transaction_body::<
4992 fidl::encoding::EmptyPayload,
4993 fidl::encoding::DefaultFuchsiaResourceDialect,
4994 0x79679fa8789c3d9f,
4995 >(_buf?)?;
4996 Ok(_response)
4997 }
4998 self.client.send_query_and_decode::<WlanFullmacImplIfcSignalReportRequest, ()>(
4999 (ind,),
5000 0x79679fa8789c3d9f,
5001 fidl::encoding::DynamicFlags::empty(),
5002 _decode,
5003 )
5004 }
5005
5006 type EapolIndResponseFut =
5007 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
5008 fn r#eapol_ind(
5009 &self,
5010 mut payload: &WlanFullmacImplIfcEapolIndRequest,
5011 ) -> Self::EapolIndResponseFut {
5012 fn _decode(
5013 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5014 ) -> Result<(), fidl::Error> {
5015 let _response = fidl::client::decode_transaction_body::<
5016 fidl::encoding::EmptyPayload,
5017 fidl::encoding::DefaultFuchsiaResourceDialect,
5018 0x3de8ec1eda10d1d0,
5019 >(_buf?)?;
5020 Ok(_response)
5021 }
5022 self.client.send_query_and_decode::<WlanFullmacImplIfcEapolIndRequest, ()>(
5023 payload,
5024 0x3de8ec1eda10d1d0,
5025 fidl::encoding::DynamicFlags::empty(),
5026 _decode,
5027 )
5028 }
5029
5030 type OnPmkAvailableResponseFut =
5031 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
5032 fn r#on_pmk_available(
5033 &self,
5034 mut payload: &WlanFullmacImplIfcOnPmkAvailableRequest,
5035 ) -> Self::OnPmkAvailableResponseFut {
5036 fn _decode(
5037 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5038 ) -> Result<(), fidl::Error> {
5039 let _response = fidl::client::decode_transaction_body::<
5040 fidl::encoding::EmptyPayload,
5041 fidl::encoding::DefaultFuchsiaResourceDialect,
5042 0x5cedd8d9be28a17e,
5043 >(_buf?)?;
5044 Ok(_response)
5045 }
5046 self.client.send_query_and_decode::<WlanFullmacImplIfcOnPmkAvailableRequest, ()>(
5047 payload,
5048 0x5cedd8d9be28a17e,
5049 fidl::encoding::DynamicFlags::empty(),
5050 _decode,
5051 )
5052 }
5053
5054 type SaeHandshakeIndResponseFut =
5055 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
5056 fn r#sae_handshake_ind(
5057 &self,
5058 mut payload: &WlanFullmacImplIfcSaeHandshakeIndRequest,
5059 ) -> Self::SaeHandshakeIndResponseFut {
5060 fn _decode(
5061 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5062 ) -> Result<(), fidl::Error> {
5063 let _response = fidl::client::decode_transaction_body::<
5064 fidl::encoding::EmptyPayload,
5065 fidl::encoding::DefaultFuchsiaResourceDialect,
5066 0x4f3d53885503a1d8,
5067 >(_buf?)?;
5068 Ok(_response)
5069 }
5070 self.client.send_query_and_decode::<WlanFullmacImplIfcSaeHandshakeIndRequest, ()>(
5071 payload,
5072 0x4f3d53885503a1d8,
5073 fidl::encoding::DynamicFlags::empty(),
5074 _decode,
5075 )
5076 }
5077
5078 type SaeFrameRxResponseFut =
5079 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
5080 fn r#sae_frame_rx(&self, mut frame: &SaeFrame) -> Self::SaeFrameRxResponseFut {
5081 fn _decode(
5082 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5083 ) -> Result<(), fidl::Error> {
5084 let _response = fidl::client::decode_transaction_body::<
5085 fidl::encoding::EmptyPayload,
5086 fidl::encoding::DefaultFuchsiaResourceDialect,
5087 0x51650906857ed4d4,
5088 >(_buf?)?;
5089 Ok(_response)
5090 }
5091 self.client.send_query_and_decode::<WlanFullmacImplIfcSaeFrameRxRequest, ()>(
5092 (frame,),
5093 0x51650906857ed4d4,
5094 fidl::encoding::DynamicFlags::empty(),
5095 _decode,
5096 )
5097 }
5098
5099 type OnWmmStatusRespResponseFut =
5100 fidl::client::QueryResponseFut<(), fidl::encoding::DefaultFuchsiaResourceDialect>;
5101 fn r#on_wmm_status_resp(
5102 &self,
5103 mut status: i32,
5104 mut wmm_params: &fidl_fuchsia_wlan_common::WlanWmmParameters,
5105 ) -> Self::OnWmmStatusRespResponseFut {
5106 fn _decode(
5107 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5108 ) -> Result<(), fidl::Error> {
5109 let _response = fidl::client::decode_transaction_body::<
5110 fidl::encoding::EmptyPayload,
5111 fidl::encoding::DefaultFuchsiaResourceDialect,
5112 0x6823a88bf3ba8b2a,
5113 >(_buf?)?;
5114 Ok(_response)
5115 }
5116 self.client.send_query_and_decode::<WlanFullmacImplIfcOnWmmStatusRespRequest, ()>(
5117 (status, wmm_params),
5118 0x6823a88bf3ba8b2a,
5119 fidl::encoding::DynamicFlags::empty(),
5120 _decode,
5121 )
5122 }
5123}
5124
5125pub struct WlanFullmacImplIfcEventStream {
5126 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
5127}
5128
5129impl std::marker::Unpin for WlanFullmacImplIfcEventStream {}
5130
5131impl futures::stream::FusedStream for WlanFullmacImplIfcEventStream {
5132 fn is_terminated(&self) -> bool {
5133 self.event_receiver.is_terminated()
5134 }
5135}
5136
5137impl futures::Stream for WlanFullmacImplIfcEventStream {
5138 type Item = Result<WlanFullmacImplIfcEvent, fidl::Error>;
5139
5140 fn poll_next(
5141 mut self: std::pin::Pin<&mut Self>,
5142 cx: &mut std::task::Context<'_>,
5143 ) -> std::task::Poll<Option<Self::Item>> {
5144 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
5145 &mut self.event_receiver,
5146 cx
5147 )?) {
5148 Some(buf) => std::task::Poll::Ready(Some(WlanFullmacImplIfcEvent::decode(buf))),
5149 None => std::task::Poll::Ready(None),
5150 }
5151 }
5152}
5153
5154#[derive(Debug)]
5155pub enum WlanFullmacImplIfcEvent {}
5156
5157impl WlanFullmacImplIfcEvent {
5158 fn decode(
5160 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
5161 ) -> Result<WlanFullmacImplIfcEvent, fidl::Error> {
5162 let (bytes, _handles) = buf.split_mut();
5163 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
5164 debug_assert_eq!(tx_header.tx_id, 0);
5165 match tx_header.ordinal {
5166 _ => Err(fidl::Error::UnknownOrdinal {
5167 ordinal: tx_header.ordinal,
5168 protocol_name:
5169 <WlanFullmacImplIfcMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
5170 }),
5171 }
5172 }
5173}
5174
5175pub struct WlanFullmacImplIfcRequestStream {
5177 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
5178 is_terminated: bool,
5179}
5180
5181impl std::marker::Unpin for WlanFullmacImplIfcRequestStream {}
5182
5183impl futures::stream::FusedStream for WlanFullmacImplIfcRequestStream {
5184 fn is_terminated(&self) -> bool {
5185 self.is_terminated
5186 }
5187}
5188
5189impl fidl::endpoints::RequestStream for WlanFullmacImplIfcRequestStream {
5190 type Protocol = WlanFullmacImplIfcMarker;
5191 type ControlHandle = WlanFullmacImplIfcControlHandle;
5192
5193 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
5194 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
5195 }
5196
5197 fn control_handle(&self) -> Self::ControlHandle {
5198 WlanFullmacImplIfcControlHandle { inner: self.inner.clone() }
5199 }
5200
5201 fn into_inner(
5202 self,
5203 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
5204 {
5205 (self.inner, self.is_terminated)
5206 }
5207
5208 fn from_inner(
5209 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
5210 is_terminated: bool,
5211 ) -> Self {
5212 Self { inner, is_terminated }
5213 }
5214}
5215
5216impl futures::Stream for WlanFullmacImplIfcRequestStream {
5217 type Item = Result<WlanFullmacImplIfcRequest, fidl::Error>;
5218
5219 fn poll_next(
5220 mut self: std::pin::Pin<&mut Self>,
5221 cx: &mut std::task::Context<'_>,
5222 ) -> std::task::Poll<Option<Self::Item>> {
5223 let this = &mut *self;
5224 if this.inner.check_shutdown(cx) {
5225 this.is_terminated = true;
5226 return std::task::Poll::Ready(None);
5227 }
5228 if this.is_terminated {
5229 panic!("polled WlanFullmacImplIfcRequestStream after completion");
5230 }
5231 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
5232 |bytes, handles| {
5233 match this.inner.channel().read_etc(cx, bytes, handles) {
5234 std::task::Poll::Ready(Ok(())) => {}
5235 std::task::Poll::Pending => return std::task::Poll::Pending,
5236 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
5237 this.is_terminated = true;
5238 return std::task::Poll::Ready(None);
5239 }
5240 std::task::Poll::Ready(Err(e)) => {
5241 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
5242 e.into(),
5243 ))))
5244 }
5245 }
5246
5247 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
5249
5250 std::task::Poll::Ready(Some(match header.ordinal {
5251 0x29aa81dc570f7a3e => {
5252 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5253 let mut req = fidl::new_empty!(WlanFullmacImplIfcOnScanResultRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5254 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcOnScanResultRequest>(&header, _body_bytes, handles, &mut req)?;
5255 let control_handle = WlanFullmacImplIfcControlHandle {
5256 inner: this.inner.clone(),
5257 };
5258 Ok(WlanFullmacImplIfcRequest::OnScanResult {payload: req,
5259 responder: WlanFullmacImplIfcOnScanResultResponder {
5260 control_handle: std::mem::ManuallyDrop::new(control_handle),
5261 tx_id: header.tx_id,
5262 },
5263 })
5264 }
5265 0x7cd8aff80d27073c => {
5266 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5267 let mut req = fidl::new_empty!(WlanFullmacImplIfcOnScanEndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5268 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcOnScanEndRequest>(&header, _body_bytes, handles, &mut req)?;
5269 let control_handle = WlanFullmacImplIfcControlHandle {
5270 inner: this.inner.clone(),
5271 };
5272 Ok(WlanFullmacImplIfcRequest::OnScanEnd {payload: req,
5273 responder: WlanFullmacImplIfcOnScanEndResponder {
5274 control_handle: std::mem::ManuallyDrop::new(control_handle),
5275 tx_id: header.tx_id,
5276 },
5277 })
5278 }
5279 0x3c22c6d80b2a2759 => {
5280 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5281 let mut req = fidl::new_empty!(WlanFullmacImplIfcConnectConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5282 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcConnectConfRequest>(&header, _body_bytes, handles, &mut req)?;
5283 let control_handle = WlanFullmacImplIfcControlHandle {
5284 inner: this.inner.clone(),
5285 };
5286 Ok(WlanFullmacImplIfcRequest::ConnectConf {payload: req,
5287 responder: WlanFullmacImplIfcConnectConfResponder {
5288 control_handle: std::mem::ManuallyDrop::new(control_handle),
5289 tx_id: header.tx_id,
5290 },
5291 })
5292 }
5293 0x368b2a5b903b3f7b => {
5294 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5295 let mut req = fidl::new_empty!(WlanFullmacImplIfcRoamConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5296 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcRoamConfRequest>(&header, _body_bytes, handles, &mut req)?;
5297 let control_handle = WlanFullmacImplIfcControlHandle {
5298 inner: this.inner.clone(),
5299 };
5300 Ok(WlanFullmacImplIfcRequest::RoamConf {payload: req,
5301 responder: WlanFullmacImplIfcRoamConfResponder {
5302 control_handle: std::mem::ManuallyDrop::new(control_handle),
5303 tx_id: header.tx_id,
5304 },
5305 })
5306 }
5307 0x23e1d9368935e7e4 => {
5308 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5309 let mut req = fidl::new_empty!(WlanFullmacImplIfcRoamStartIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5310 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcRoamStartIndRequest>(&header, _body_bytes, handles, &mut req)?;
5311 let control_handle = WlanFullmacImplIfcControlHandle {
5312 inner: this.inner.clone(),
5313 };
5314 Ok(WlanFullmacImplIfcRequest::RoamStartInd {payload: req,
5315 responder: WlanFullmacImplIfcRoamStartIndResponder {
5316 control_handle: std::mem::ManuallyDrop::new(control_handle),
5317 tx_id: header.tx_id,
5318 },
5319 })
5320 }
5321 0x7081c1b1ceea4914 => {
5322 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5323 let mut req = fidl::new_empty!(WlanFullmacImplIfcRoamResultIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5324 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcRoamResultIndRequest>(&header, _body_bytes, handles, &mut req)?;
5325 let control_handle = WlanFullmacImplIfcControlHandle {
5326 inner: this.inner.clone(),
5327 };
5328 Ok(WlanFullmacImplIfcRequest::RoamResultInd {payload: req,
5329 responder: WlanFullmacImplIfcRoamResultIndResponder {
5330 control_handle: std::mem::ManuallyDrop::new(control_handle),
5331 tx_id: header.tx_id,
5332 },
5333 })
5334 }
5335 0x270e1f8889650d0b => {
5336 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5337 let mut req = fidl::new_empty!(WlanFullmacImplIfcAuthIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5338 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcAuthIndRequest>(&header, _body_bytes, handles, &mut req)?;
5339 let control_handle = WlanFullmacImplIfcControlHandle {
5340 inner: this.inner.clone(),
5341 };
5342 Ok(WlanFullmacImplIfcRequest::AuthInd {payload: req,
5343 responder: WlanFullmacImplIfcAuthIndResponder {
5344 control_handle: std::mem::ManuallyDrop::new(control_handle),
5345 tx_id: header.tx_id,
5346 },
5347 })
5348 }
5349 0x2c94b0d7258111b7 => {
5350 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5351 let mut req = fidl::new_empty!(WlanFullmacImplIfcDeauthConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5352 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcDeauthConfRequest>(&header, _body_bytes, handles, &mut req)?;
5353 let control_handle = WlanFullmacImplIfcControlHandle {
5354 inner: this.inner.clone(),
5355 };
5356 Ok(WlanFullmacImplIfcRequest::DeauthConf {payload: req,
5357 responder: WlanFullmacImplIfcDeauthConfResponder {
5358 control_handle: std::mem::ManuallyDrop::new(control_handle),
5359 tx_id: header.tx_id,
5360 },
5361 })
5362 }
5363 0x26cd27cdadd8dbaf => {
5364 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5365 let mut req = fidl::new_empty!(WlanFullmacImplIfcDeauthIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5366 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcDeauthIndRequest>(&header, _body_bytes, handles, &mut req)?;
5367 let control_handle = WlanFullmacImplIfcControlHandle {
5368 inner: this.inner.clone(),
5369 };
5370 Ok(WlanFullmacImplIfcRequest::DeauthInd {payload: req,
5371 responder: WlanFullmacImplIfcDeauthIndResponder {
5372 control_handle: std::mem::ManuallyDrop::new(control_handle),
5373 tx_id: header.tx_id,
5374 },
5375 })
5376 }
5377 0x3e44529e3dc179ce => {
5378 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5379 let mut req = fidl::new_empty!(WlanFullmacImplIfcAssocIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5380 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcAssocIndRequest>(&header, _body_bytes, handles, &mut req)?;
5381 let control_handle = WlanFullmacImplIfcControlHandle {
5382 inner: this.inner.clone(),
5383 };
5384 Ok(WlanFullmacImplIfcRequest::AssocInd {payload: req,
5385 responder: WlanFullmacImplIfcAssocIndResponder {
5386 control_handle: std::mem::ManuallyDrop::new(control_handle),
5387 tx_id: header.tx_id,
5388 },
5389 })
5390 }
5391 0x7c713bcd58a76cb3 => {
5392 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5393 let mut req = fidl::new_empty!(WlanFullmacImplIfcDisassocConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5394 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcDisassocConfRequest>(&header, _body_bytes, handles, &mut req)?;
5395 let control_handle = WlanFullmacImplIfcControlHandle {
5396 inner: this.inner.clone(),
5397 };
5398 Ok(WlanFullmacImplIfcRequest::DisassocConf {payload: req,
5399 responder: WlanFullmacImplIfcDisassocConfResponder {
5400 control_handle: std::mem::ManuallyDrop::new(control_handle),
5401 tx_id: header.tx_id,
5402 },
5403 })
5404 }
5405 0x6667b381b7f3990f => {
5406 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5407 let mut req = fidl::new_empty!(WlanFullmacImplIfcDisassocIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5408 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcDisassocIndRequest>(&header, _body_bytes, handles, &mut req)?;
5409 let control_handle = WlanFullmacImplIfcControlHandle {
5410 inner: this.inner.clone(),
5411 };
5412 Ok(WlanFullmacImplIfcRequest::DisassocInd {payload: req,
5413 responder: WlanFullmacImplIfcDisassocIndResponder {
5414 control_handle: std::mem::ManuallyDrop::new(control_handle),
5415 tx_id: header.tx_id,
5416 },
5417 })
5418 }
5419 0x3e9b9641f3ddc7fc => {
5420 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5421 let mut req = fidl::new_empty!(WlanFullmacImplIfcStartConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5422 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcStartConfRequest>(&header, _body_bytes, handles, &mut req)?;
5423 let control_handle = WlanFullmacImplIfcControlHandle {
5424 inner: this.inner.clone(),
5425 };
5426 Ok(WlanFullmacImplIfcRequest::StartConf {payload: req,
5427 responder: WlanFullmacImplIfcStartConfResponder {
5428 control_handle: std::mem::ManuallyDrop::new(control_handle),
5429 tx_id: header.tx_id,
5430 },
5431 })
5432 }
5433 0x320a5ff227a4e9df => {
5434 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5435 let mut req = fidl::new_empty!(WlanFullmacImplIfcStopConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5436 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcStopConfRequest>(&header, _body_bytes, handles, &mut req)?;
5437 let control_handle = WlanFullmacImplIfcControlHandle {
5438 inner: this.inner.clone(),
5439 };
5440 Ok(WlanFullmacImplIfcRequest::StopConf {payload: req,
5441 responder: WlanFullmacImplIfcStopConfResponder {
5442 control_handle: std::mem::ManuallyDrop::new(control_handle),
5443 tx_id: header.tx_id,
5444 },
5445 })
5446 }
5447 0x77364db9cc3970ec => {
5448 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5449 let mut req = fidl::new_empty!(WlanFullmacImplIfcEapolConfRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5450 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcEapolConfRequest>(&header, _body_bytes, handles, &mut req)?;
5451 let control_handle = WlanFullmacImplIfcControlHandle {
5452 inner: this.inner.clone(),
5453 };
5454 Ok(WlanFullmacImplIfcRequest::EapolConf {payload: req,
5455 responder: WlanFullmacImplIfcEapolConfResponder {
5456 control_handle: std::mem::ManuallyDrop::new(control_handle),
5457 tx_id: header.tx_id,
5458 },
5459 })
5460 }
5461 0x21db0b8f71cae647 => {
5462 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5463 let mut req = fidl::new_empty!(WlanFullmacImplIfcOnChannelSwitchRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5464 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcOnChannelSwitchRequest>(&header, _body_bytes, handles, &mut req)?;
5465 let control_handle = WlanFullmacImplIfcControlHandle {
5466 inner: this.inner.clone(),
5467 };
5468 Ok(WlanFullmacImplIfcRequest::OnChannelSwitch {ind: req.ind,
5469
5470 responder: WlanFullmacImplIfcOnChannelSwitchResponder {
5471 control_handle: std::mem::ManuallyDrop::new(control_handle),
5472 tx_id: header.tx_id,
5473 },
5474 })
5475 }
5476 0x79679fa8789c3d9f => {
5477 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5478 let mut req = fidl::new_empty!(WlanFullmacImplIfcSignalReportRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5479 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcSignalReportRequest>(&header, _body_bytes, handles, &mut req)?;
5480 let control_handle = WlanFullmacImplIfcControlHandle {
5481 inner: this.inner.clone(),
5482 };
5483 Ok(WlanFullmacImplIfcRequest::SignalReport {ind: req.ind,
5484
5485 responder: WlanFullmacImplIfcSignalReportResponder {
5486 control_handle: std::mem::ManuallyDrop::new(control_handle),
5487 tx_id: header.tx_id,
5488 },
5489 })
5490 }
5491 0x3de8ec1eda10d1d0 => {
5492 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5493 let mut req = fidl::new_empty!(WlanFullmacImplIfcEapolIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5494 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcEapolIndRequest>(&header, _body_bytes, handles, &mut req)?;
5495 let control_handle = WlanFullmacImplIfcControlHandle {
5496 inner: this.inner.clone(),
5497 };
5498 Ok(WlanFullmacImplIfcRequest::EapolInd {payload: req,
5499 responder: WlanFullmacImplIfcEapolIndResponder {
5500 control_handle: std::mem::ManuallyDrop::new(control_handle),
5501 tx_id: header.tx_id,
5502 },
5503 })
5504 }
5505 0x5cedd8d9be28a17e => {
5506 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5507 let mut req = fidl::new_empty!(WlanFullmacImplIfcOnPmkAvailableRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5508 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcOnPmkAvailableRequest>(&header, _body_bytes, handles, &mut req)?;
5509 let control_handle = WlanFullmacImplIfcControlHandle {
5510 inner: this.inner.clone(),
5511 };
5512 Ok(WlanFullmacImplIfcRequest::OnPmkAvailable {payload: req,
5513 responder: WlanFullmacImplIfcOnPmkAvailableResponder {
5514 control_handle: std::mem::ManuallyDrop::new(control_handle),
5515 tx_id: header.tx_id,
5516 },
5517 })
5518 }
5519 0x4f3d53885503a1d8 => {
5520 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5521 let mut req = fidl::new_empty!(WlanFullmacImplIfcSaeHandshakeIndRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5522 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcSaeHandshakeIndRequest>(&header, _body_bytes, handles, &mut req)?;
5523 let control_handle = WlanFullmacImplIfcControlHandle {
5524 inner: this.inner.clone(),
5525 };
5526 Ok(WlanFullmacImplIfcRequest::SaeHandshakeInd {payload: req,
5527 responder: WlanFullmacImplIfcSaeHandshakeIndResponder {
5528 control_handle: std::mem::ManuallyDrop::new(control_handle),
5529 tx_id: header.tx_id,
5530 },
5531 })
5532 }
5533 0x51650906857ed4d4 => {
5534 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5535 let mut req = fidl::new_empty!(WlanFullmacImplIfcSaeFrameRxRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5536 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcSaeFrameRxRequest>(&header, _body_bytes, handles, &mut req)?;
5537 let control_handle = WlanFullmacImplIfcControlHandle {
5538 inner: this.inner.clone(),
5539 };
5540 Ok(WlanFullmacImplIfcRequest::SaeFrameRx {frame: req.frame,
5541
5542 responder: WlanFullmacImplIfcSaeFrameRxResponder {
5543 control_handle: std::mem::ManuallyDrop::new(control_handle),
5544 tx_id: header.tx_id,
5545 },
5546 })
5547 }
5548 0x6823a88bf3ba8b2a => {
5549 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
5550 let mut req = fidl::new_empty!(WlanFullmacImplIfcOnWmmStatusRespRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
5551 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<WlanFullmacImplIfcOnWmmStatusRespRequest>(&header, _body_bytes, handles, &mut req)?;
5552 let control_handle = WlanFullmacImplIfcControlHandle {
5553 inner: this.inner.clone(),
5554 };
5555 Ok(WlanFullmacImplIfcRequest::OnWmmStatusResp {status: req.status,
5556wmm_params: req.wmm_params,
5557
5558 responder: WlanFullmacImplIfcOnWmmStatusRespResponder {
5559 control_handle: std::mem::ManuallyDrop::new(control_handle),
5560 tx_id: header.tx_id,
5561 },
5562 })
5563 }
5564 _ => Err(fidl::Error::UnknownOrdinal {
5565 ordinal: header.ordinal,
5566 protocol_name: <WlanFullmacImplIfcMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
5567 }),
5568 }))
5569 },
5570 )
5571 }
5572}
5573
5574#[derive(Debug)]
5576pub enum WlanFullmacImplIfcRequest {
5577 OnScanResult {
5578 payload: WlanFullmacImplIfcOnScanResultRequest,
5579 responder: WlanFullmacImplIfcOnScanResultResponder,
5580 },
5581 OnScanEnd {
5582 payload: WlanFullmacImplIfcOnScanEndRequest,
5583 responder: WlanFullmacImplIfcOnScanEndResponder,
5584 },
5585 ConnectConf {
5586 payload: WlanFullmacImplIfcConnectConfRequest,
5587 responder: WlanFullmacImplIfcConnectConfResponder,
5588 },
5589 RoamConf {
5591 payload: WlanFullmacImplIfcRoamConfRequest,
5592 responder: WlanFullmacImplIfcRoamConfResponder,
5593 },
5594 RoamStartInd {
5597 payload: WlanFullmacImplIfcRoamStartIndRequest,
5598 responder: WlanFullmacImplIfcRoamStartIndResponder,
5599 },
5600 RoamResultInd {
5602 payload: WlanFullmacImplIfcRoamResultIndRequest,
5603 responder: WlanFullmacImplIfcRoamResultIndResponder,
5604 },
5605 AuthInd {
5606 payload: WlanFullmacImplIfcAuthIndRequest,
5607 responder: WlanFullmacImplIfcAuthIndResponder,
5608 },
5609 DeauthConf {
5610 payload: WlanFullmacImplIfcDeauthConfRequest,
5611 responder: WlanFullmacImplIfcDeauthConfResponder,
5612 },
5613 DeauthInd {
5615 payload: WlanFullmacImplIfcDeauthIndRequest,
5616 responder: WlanFullmacImplIfcDeauthIndResponder,
5617 },
5618 AssocInd {
5619 payload: WlanFullmacImplIfcAssocIndRequest,
5620 responder: WlanFullmacImplIfcAssocIndResponder,
5621 },
5622 DisassocConf {
5624 payload: WlanFullmacImplIfcDisassocConfRequest,
5625 responder: WlanFullmacImplIfcDisassocConfResponder,
5626 },
5627 DisassocInd {
5629 payload: WlanFullmacImplIfcDisassocIndRequest,
5630 responder: WlanFullmacImplIfcDisassocIndResponder,
5631 },
5632 StartConf {
5634 payload: WlanFullmacImplIfcStartConfRequest,
5635 responder: WlanFullmacImplIfcStartConfResponder,
5636 },
5637 StopConf {
5639 payload: WlanFullmacImplIfcStopConfRequest,
5640 responder: WlanFullmacImplIfcStopConfResponder,
5641 },
5642 EapolConf {
5645 payload: WlanFullmacImplIfcEapolConfRequest,
5646 responder: WlanFullmacImplIfcEapolConfResponder,
5647 },
5648 OnChannelSwitch {
5649 ind: WlanFullmacChannelSwitchInfo,
5650 responder: WlanFullmacImplIfcOnChannelSwitchResponder,
5651 },
5652 SignalReport {
5653 ind: WlanFullmacSignalReportIndication,
5654 responder: WlanFullmacImplIfcSignalReportResponder,
5655 },
5656 EapolInd {
5658 payload: WlanFullmacImplIfcEapolIndRequest,
5659 responder: WlanFullmacImplIfcEapolIndResponder,
5660 },
5661 OnPmkAvailable {
5663 payload: WlanFullmacImplIfcOnPmkAvailableRequest,
5664 responder: WlanFullmacImplIfcOnPmkAvailableResponder,
5665 },
5666 SaeHandshakeInd {
5667 payload: WlanFullmacImplIfcSaeHandshakeIndRequest,
5668 responder: WlanFullmacImplIfcSaeHandshakeIndResponder,
5669 },
5670 SaeFrameRx { frame: SaeFrame, responder: WlanFullmacImplIfcSaeFrameRxResponder },
5672 OnWmmStatusResp {
5673 status: i32,
5674 wmm_params: fidl_fuchsia_wlan_common::WlanWmmParameters,
5675 responder: WlanFullmacImplIfcOnWmmStatusRespResponder,
5676 },
5677}
5678
5679impl WlanFullmacImplIfcRequest {
5680 #[allow(irrefutable_let_patterns)]
5681 pub fn into_on_scan_result(
5682 self,
5683 ) -> Option<(WlanFullmacImplIfcOnScanResultRequest, WlanFullmacImplIfcOnScanResultResponder)>
5684 {
5685 if let WlanFullmacImplIfcRequest::OnScanResult { payload, responder } = self {
5686 Some((payload, responder))
5687 } else {
5688 None
5689 }
5690 }
5691
5692 #[allow(irrefutable_let_patterns)]
5693 pub fn into_on_scan_end(
5694 self,
5695 ) -> Option<(WlanFullmacImplIfcOnScanEndRequest, WlanFullmacImplIfcOnScanEndResponder)> {
5696 if let WlanFullmacImplIfcRequest::OnScanEnd { payload, responder } = self {
5697 Some((payload, responder))
5698 } else {
5699 None
5700 }
5701 }
5702
5703 #[allow(irrefutable_let_patterns)]
5704 pub fn into_connect_conf(
5705 self,
5706 ) -> Option<(WlanFullmacImplIfcConnectConfRequest, WlanFullmacImplIfcConnectConfResponder)>
5707 {
5708 if let WlanFullmacImplIfcRequest::ConnectConf { payload, responder } = self {
5709 Some((payload, responder))
5710 } else {
5711 None
5712 }
5713 }
5714
5715 #[allow(irrefutable_let_patterns)]
5716 pub fn into_roam_conf(
5717 self,
5718 ) -> Option<(WlanFullmacImplIfcRoamConfRequest, WlanFullmacImplIfcRoamConfResponder)> {
5719 if let WlanFullmacImplIfcRequest::RoamConf { payload, responder } = self {
5720 Some((payload, responder))
5721 } else {
5722 None
5723 }
5724 }
5725
5726 #[allow(irrefutable_let_patterns)]
5727 pub fn into_roam_start_ind(
5728 self,
5729 ) -> Option<(WlanFullmacImplIfcRoamStartIndRequest, WlanFullmacImplIfcRoamStartIndResponder)>
5730 {
5731 if let WlanFullmacImplIfcRequest::RoamStartInd { payload, responder } = self {
5732 Some((payload, responder))
5733 } else {
5734 None
5735 }
5736 }
5737
5738 #[allow(irrefutable_let_patterns)]
5739 pub fn into_roam_result_ind(
5740 self,
5741 ) -> Option<(WlanFullmacImplIfcRoamResultIndRequest, WlanFullmacImplIfcRoamResultIndResponder)>
5742 {
5743 if let WlanFullmacImplIfcRequest::RoamResultInd { payload, responder } = self {
5744 Some((payload, responder))
5745 } else {
5746 None
5747 }
5748 }
5749
5750 #[allow(irrefutable_let_patterns)]
5751 pub fn into_auth_ind(
5752 self,
5753 ) -> Option<(WlanFullmacImplIfcAuthIndRequest, WlanFullmacImplIfcAuthIndResponder)> {
5754 if let WlanFullmacImplIfcRequest::AuthInd { payload, responder } = self {
5755 Some((payload, responder))
5756 } else {
5757 None
5758 }
5759 }
5760
5761 #[allow(irrefutable_let_patterns)]
5762 pub fn into_deauth_conf(
5763 self,
5764 ) -> Option<(WlanFullmacImplIfcDeauthConfRequest, WlanFullmacImplIfcDeauthConfResponder)> {
5765 if let WlanFullmacImplIfcRequest::DeauthConf { payload, responder } = self {
5766 Some((payload, responder))
5767 } else {
5768 None
5769 }
5770 }
5771
5772 #[allow(irrefutable_let_patterns)]
5773 pub fn into_deauth_ind(
5774 self,
5775 ) -> Option<(WlanFullmacImplIfcDeauthIndRequest, WlanFullmacImplIfcDeauthIndResponder)> {
5776 if let WlanFullmacImplIfcRequest::DeauthInd { payload, responder } = self {
5777 Some((payload, responder))
5778 } else {
5779 None
5780 }
5781 }
5782
5783 #[allow(irrefutable_let_patterns)]
5784 pub fn into_assoc_ind(
5785 self,
5786 ) -> Option<(WlanFullmacImplIfcAssocIndRequest, WlanFullmacImplIfcAssocIndResponder)> {
5787 if let WlanFullmacImplIfcRequest::AssocInd { payload, responder } = self {
5788 Some((payload, responder))
5789 } else {
5790 None
5791 }
5792 }
5793
5794 #[allow(irrefutable_let_patterns)]
5795 pub fn into_disassoc_conf(
5796 self,
5797 ) -> Option<(WlanFullmacImplIfcDisassocConfRequest, WlanFullmacImplIfcDisassocConfResponder)>
5798 {
5799 if let WlanFullmacImplIfcRequest::DisassocConf { payload, responder } = self {
5800 Some((payload, responder))
5801 } else {
5802 None
5803 }
5804 }
5805
5806 #[allow(irrefutable_let_patterns)]
5807 pub fn into_disassoc_ind(
5808 self,
5809 ) -> Option<(WlanFullmacImplIfcDisassocIndRequest, WlanFullmacImplIfcDisassocIndResponder)>
5810 {
5811 if let WlanFullmacImplIfcRequest::DisassocInd { payload, responder } = self {
5812 Some((payload, responder))
5813 } else {
5814 None
5815 }
5816 }
5817
5818 #[allow(irrefutable_let_patterns)]
5819 pub fn into_start_conf(
5820 self,
5821 ) -> Option<(WlanFullmacImplIfcStartConfRequest, WlanFullmacImplIfcStartConfResponder)> {
5822 if let WlanFullmacImplIfcRequest::StartConf { payload, responder } = self {
5823 Some((payload, responder))
5824 } else {
5825 None
5826 }
5827 }
5828
5829 #[allow(irrefutable_let_patterns)]
5830 pub fn into_stop_conf(
5831 self,
5832 ) -> Option<(WlanFullmacImplIfcStopConfRequest, WlanFullmacImplIfcStopConfResponder)> {
5833 if let WlanFullmacImplIfcRequest::StopConf { payload, responder } = self {
5834 Some((payload, responder))
5835 } else {
5836 None
5837 }
5838 }
5839
5840 #[allow(irrefutable_let_patterns)]
5841 pub fn into_eapol_conf(
5842 self,
5843 ) -> Option<(WlanFullmacImplIfcEapolConfRequest, WlanFullmacImplIfcEapolConfResponder)> {
5844 if let WlanFullmacImplIfcRequest::EapolConf { payload, responder } = self {
5845 Some((payload, responder))
5846 } else {
5847 None
5848 }
5849 }
5850
5851 #[allow(irrefutable_let_patterns)]
5852 pub fn into_on_channel_switch(
5853 self,
5854 ) -> Option<(WlanFullmacChannelSwitchInfo, WlanFullmacImplIfcOnChannelSwitchResponder)> {
5855 if let WlanFullmacImplIfcRequest::OnChannelSwitch { ind, responder } = self {
5856 Some((ind, responder))
5857 } else {
5858 None
5859 }
5860 }
5861
5862 #[allow(irrefutable_let_patterns)]
5863 pub fn into_signal_report(
5864 self,
5865 ) -> Option<(WlanFullmacSignalReportIndication, WlanFullmacImplIfcSignalReportResponder)> {
5866 if let WlanFullmacImplIfcRequest::SignalReport { ind, responder } = self {
5867 Some((ind, responder))
5868 } else {
5869 None
5870 }
5871 }
5872
5873 #[allow(irrefutable_let_patterns)]
5874 pub fn into_eapol_ind(
5875 self,
5876 ) -> Option<(WlanFullmacImplIfcEapolIndRequest, WlanFullmacImplIfcEapolIndResponder)> {
5877 if let WlanFullmacImplIfcRequest::EapolInd { payload, responder } = self {
5878 Some((payload, responder))
5879 } else {
5880 None
5881 }
5882 }
5883
5884 #[allow(irrefutable_let_patterns)]
5885 pub fn into_on_pmk_available(
5886 self,
5887 ) -> Option<(WlanFullmacImplIfcOnPmkAvailableRequest, WlanFullmacImplIfcOnPmkAvailableResponder)>
5888 {
5889 if let WlanFullmacImplIfcRequest::OnPmkAvailable { payload, responder } = self {
5890 Some((payload, responder))
5891 } else {
5892 None
5893 }
5894 }
5895
5896 #[allow(irrefutable_let_patterns)]
5897 pub fn into_sae_handshake_ind(
5898 self,
5899 ) -> Option<(
5900 WlanFullmacImplIfcSaeHandshakeIndRequest,
5901 WlanFullmacImplIfcSaeHandshakeIndResponder,
5902 )> {
5903 if let WlanFullmacImplIfcRequest::SaeHandshakeInd { payload, responder } = self {
5904 Some((payload, responder))
5905 } else {
5906 None
5907 }
5908 }
5909
5910 #[allow(irrefutable_let_patterns)]
5911 pub fn into_sae_frame_rx(self) -> Option<(SaeFrame, WlanFullmacImplIfcSaeFrameRxResponder)> {
5912 if let WlanFullmacImplIfcRequest::SaeFrameRx { frame, responder } = self {
5913 Some((frame, responder))
5914 } else {
5915 None
5916 }
5917 }
5918
5919 #[allow(irrefutable_let_patterns)]
5920 pub fn into_on_wmm_status_resp(
5921 self,
5922 ) -> Option<(
5923 i32,
5924 fidl_fuchsia_wlan_common::WlanWmmParameters,
5925 WlanFullmacImplIfcOnWmmStatusRespResponder,
5926 )> {
5927 if let WlanFullmacImplIfcRequest::OnWmmStatusResp { status, wmm_params, responder } = self {
5928 Some((status, wmm_params, responder))
5929 } else {
5930 None
5931 }
5932 }
5933
5934 pub fn method_name(&self) -> &'static str {
5936 match *self {
5937 WlanFullmacImplIfcRequest::OnScanResult { .. } => "on_scan_result",
5938 WlanFullmacImplIfcRequest::OnScanEnd { .. } => "on_scan_end",
5939 WlanFullmacImplIfcRequest::ConnectConf { .. } => "connect_conf",
5940 WlanFullmacImplIfcRequest::RoamConf { .. } => "roam_conf",
5941 WlanFullmacImplIfcRequest::RoamStartInd { .. } => "roam_start_ind",
5942 WlanFullmacImplIfcRequest::RoamResultInd { .. } => "roam_result_ind",
5943 WlanFullmacImplIfcRequest::AuthInd { .. } => "auth_ind",
5944 WlanFullmacImplIfcRequest::DeauthConf { .. } => "deauth_conf",
5945 WlanFullmacImplIfcRequest::DeauthInd { .. } => "deauth_ind",
5946 WlanFullmacImplIfcRequest::AssocInd { .. } => "assoc_ind",
5947 WlanFullmacImplIfcRequest::DisassocConf { .. } => "disassoc_conf",
5948 WlanFullmacImplIfcRequest::DisassocInd { .. } => "disassoc_ind",
5949 WlanFullmacImplIfcRequest::StartConf { .. } => "start_conf",
5950 WlanFullmacImplIfcRequest::StopConf { .. } => "stop_conf",
5951 WlanFullmacImplIfcRequest::EapolConf { .. } => "eapol_conf",
5952 WlanFullmacImplIfcRequest::OnChannelSwitch { .. } => "on_channel_switch",
5953 WlanFullmacImplIfcRequest::SignalReport { .. } => "signal_report",
5954 WlanFullmacImplIfcRequest::EapolInd { .. } => "eapol_ind",
5955 WlanFullmacImplIfcRequest::OnPmkAvailable { .. } => "on_pmk_available",
5956 WlanFullmacImplIfcRequest::SaeHandshakeInd { .. } => "sae_handshake_ind",
5957 WlanFullmacImplIfcRequest::SaeFrameRx { .. } => "sae_frame_rx",
5958 WlanFullmacImplIfcRequest::OnWmmStatusResp { .. } => "on_wmm_status_resp",
5959 }
5960 }
5961}
5962
5963#[derive(Debug, Clone)]
5964pub struct WlanFullmacImplIfcControlHandle {
5965 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
5966}
5967
5968impl fidl::endpoints::ControlHandle for WlanFullmacImplIfcControlHandle {
5969 fn shutdown(&self) {
5970 self.inner.shutdown()
5971 }
5972 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
5973 self.inner.shutdown_with_epitaph(status)
5974 }
5975
5976 fn is_closed(&self) -> bool {
5977 self.inner.channel().is_closed()
5978 }
5979 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
5980 self.inner.channel().on_closed()
5981 }
5982
5983 #[cfg(target_os = "fuchsia")]
5984 fn signal_peer(
5985 &self,
5986 clear_mask: zx::Signals,
5987 set_mask: zx::Signals,
5988 ) -> Result<(), zx_status::Status> {
5989 use fidl::Peered;
5990 self.inner.channel().signal_peer(clear_mask, set_mask)
5991 }
5992}
5993
5994impl WlanFullmacImplIfcControlHandle {}
5995
5996#[must_use = "FIDL methods require a response to be sent"]
5997#[derive(Debug)]
5998pub struct WlanFullmacImplIfcOnScanResultResponder {
5999 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6000 tx_id: u32,
6001}
6002
6003impl std::ops::Drop for WlanFullmacImplIfcOnScanResultResponder {
6007 fn drop(&mut self) {
6008 self.control_handle.shutdown();
6009 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6011 }
6012}
6013
6014impl fidl::endpoints::Responder for WlanFullmacImplIfcOnScanResultResponder {
6015 type ControlHandle = WlanFullmacImplIfcControlHandle;
6016
6017 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6018 &self.control_handle
6019 }
6020
6021 fn drop_without_shutdown(mut self) {
6022 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6024 std::mem::forget(self);
6026 }
6027}
6028
6029impl WlanFullmacImplIfcOnScanResultResponder {
6030 pub fn send(self) -> Result<(), fidl::Error> {
6034 let _result = self.send_raw();
6035 if _result.is_err() {
6036 self.control_handle.shutdown();
6037 }
6038 self.drop_without_shutdown();
6039 _result
6040 }
6041
6042 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6044 let _result = self.send_raw();
6045 self.drop_without_shutdown();
6046 _result
6047 }
6048
6049 fn send_raw(&self) -> Result<(), fidl::Error> {
6050 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6051 (),
6052 self.tx_id,
6053 0x29aa81dc570f7a3e,
6054 fidl::encoding::DynamicFlags::empty(),
6055 )
6056 }
6057}
6058
6059#[must_use = "FIDL methods require a response to be sent"]
6060#[derive(Debug)]
6061pub struct WlanFullmacImplIfcOnScanEndResponder {
6062 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6063 tx_id: u32,
6064}
6065
6066impl std::ops::Drop for WlanFullmacImplIfcOnScanEndResponder {
6070 fn drop(&mut self) {
6071 self.control_handle.shutdown();
6072 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6074 }
6075}
6076
6077impl fidl::endpoints::Responder for WlanFullmacImplIfcOnScanEndResponder {
6078 type ControlHandle = WlanFullmacImplIfcControlHandle;
6079
6080 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6081 &self.control_handle
6082 }
6083
6084 fn drop_without_shutdown(mut self) {
6085 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6087 std::mem::forget(self);
6089 }
6090}
6091
6092impl WlanFullmacImplIfcOnScanEndResponder {
6093 pub fn send(self) -> Result<(), fidl::Error> {
6097 let _result = self.send_raw();
6098 if _result.is_err() {
6099 self.control_handle.shutdown();
6100 }
6101 self.drop_without_shutdown();
6102 _result
6103 }
6104
6105 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6107 let _result = self.send_raw();
6108 self.drop_without_shutdown();
6109 _result
6110 }
6111
6112 fn send_raw(&self) -> Result<(), fidl::Error> {
6113 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6114 (),
6115 self.tx_id,
6116 0x7cd8aff80d27073c,
6117 fidl::encoding::DynamicFlags::empty(),
6118 )
6119 }
6120}
6121
6122#[must_use = "FIDL methods require a response to be sent"]
6123#[derive(Debug)]
6124pub struct WlanFullmacImplIfcConnectConfResponder {
6125 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6126 tx_id: u32,
6127}
6128
6129impl std::ops::Drop for WlanFullmacImplIfcConnectConfResponder {
6133 fn drop(&mut self) {
6134 self.control_handle.shutdown();
6135 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6137 }
6138}
6139
6140impl fidl::endpoints::Responder for WlanFullmacImplIfcConnectConfResponder {
6141 type ControlHandle = WlanFullmacImplIfcControlHandle;
6142
6143 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6144 &self.control_handle
6145 }
6146
6147 fn drop_without_shutdown(mut self) {
6148 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6150 std::mem::forget(self);
6152 }
6153}
6154
6155impl WlanFullmacImplIfcConnectConfResponder {
6156 pub fn send(self) -> Result<(), fidl::Error> {
6160 let _result = self.send_raw();
6161 if _result.is_err() {
6162 self.control_handle.shutdown();
6163 }
6164 self.drop_without_shutdown();
6165 _result
6166 }
6167
6168 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6170 let _result = self.send_raw();
6171 self.drop_without_shutdown();
6172 _result
6173 }
6174
6175 fn send_raw(&self) -> Result<(), fidl::Error> {
6176 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6177 (),
6178 self.tx_id,
6179 0x3c22c6d80b2a2759,
6180 fidl::encoding::DynamicFlags::empty(),
6181 )
6182 }
6183}
6184
6185#[must_use = "FIDL methods require a response to be sent"]
6186#[derive(Debug)]
6187pub struct WlanFullmacImplIfcRoamConfResponder {
6188 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6189 tx_id: u32,
6190}
6191
6192impl std::ops::Drop for WlanFullmacImplIfcRoamConfResponder {
6196 fn drop(&mut self) {
6197 self.control_handle.shutdown();
6198 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6200 }
6201}
6202
6203impl fidl::endpoints::Responder for WlanFullmacImplIfcRoamConfResponder {
6204 type ControlHandle = WlanFullmacImplIfcControlHandle;
6205
6206 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6207 &self.control_handle
6208 }
6209
6210 fn drop_without_shutdown(mut self) {
6211 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6213 std::mem::forget(self);
6215 }
6216}
6217
6218impl WlanFullmacImplIfcRoamConfResponder {
6219 pub fn send(self) -> Result<(), fidl::Error> {
6223 let _result = self.send_raw();
6224 if _result.is_err() {
6225 self.control_handle.shutdown();
6226 }
6227 self.drop_without_shutdown();
6228 _result
6229 }
6230
6231 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6233 let _result = self.send_raw();
6234 self.drop_without_shutdown();
6235 _result
6236 }
6237
6238 fn send_raw(&self) -> Result<(), fidl::Error> {
6239 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6240 (),
6241 self.tx_id,
6242 0x368b2a5b903b3f7b,
6243 fidl::encoding::DynamicFlags::empty(),
6244 )
6245 }
6246}
6247
6248#[must_use = "FIDL methods require a response to be sent"]
6249#[derive(Debug)]
6250pub struct WlanFullmacImplIfcRoamStartIndResponder {
6251 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6252 tx_id: u32,
6253}
6254
6255impl std::ops::Drop for WlanFullmacImplIfcRoamStartIndResponder {
6259 fn drop(&mut self) {
6260 self.control_handle.shutdown();
6261 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6263 }
6264}
6265
6266impl fidl::endpoints::Responder for WlanFullmacImplIfcRoamStartIndResponder {
6267 type ControlHandle = WlanFullmacImplIfcControlHandle;
6268
6269 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6270 &self.control_handle
6271 }
6272
6273 fn drop_without_shutdown(mut self) {
6274 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6276 std::mem::forget(self);
6278 }
6279}
6280
6281impl WlanFullmacImplIfcRoamStartIndResponder {
6282 pub fn send(self) -> Result<(), fidl::Error> {
6286 let _result = self.send_raw();
6287 if _result.is_err() {
6288 self.control_handle.shutdown();
6289 }
6290 self.drop_without_shutdown();
6291 _result
6292 }
6293
6294 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6296 let _result = self.send_raw();
6297 self.drop_without_shutdown();
6298 _result
6299 }
6300
6301 fn send_raw(&self) -> Result<(), fidl::Error> {
6302 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6303 (),
6304 self.tx_id,
6305 0x23e1d9368935e7e4,
6306 fidl::encoding::DynamicFlags::empty(),
6307 )
6308 }
6309}
6310
6311#[must_use = "FIDL methods require a response to be sent"]
6312#[derive(Debug)]
6313pub struct WlanFullmacImplIfcRoamResultIndResponder {
6314 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6315 tx_id: u32,
6316}
6317
6318impl std::ops::Drop for WlanFullmacImplIfcRoamResultIndResponder {
6322 fn drop(&mut self) {
6323 self.control_handle.shutdown();
6324 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6326 }
6327}
6328
6329impl fidl::endpoints::Responder for WlanFullmacImplIfcRoamResultIndResponder {
6330 type ControlHandle = WlanFullmacImplIfcControlHandle;
6331
6332 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6333 &self.control_handle
6334 }
6335
6336 fn drop_without_shutdown(mut self) {
6337 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6339 std::mem::forget(self);
6341 }
6342}
6343
6344impl WlanFullmacImplIfcRoamResultIndResponder {
6345 pub fn send(self) -> Result<(), fidl::Error> {
6349 let _result = self.send_raw();
6350 if _result.is_err() {
6351 self.control_handle.shutdown();
6352 }
6353 self.drop_without_shutdown();
6354 _result
6355 }
6356
6357 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6359 let _result = self.send_raw();
6360 self.drop_without_shutdown();
6361 _result
6362 }
6363
6364 fn send_raw(&self) -> Result<(), fidl::Error> {
6365 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6366 (),
6367 self.tx_id,
6368 0x7081c1b1ceea4914,
6369 fidl::encoding::DynamicFlags::empty(),
6370 )
6371 }
6372}
6373
6374#[must_use = "FIDL methods require a response to be sent"]
6375#[derive(Debug)]
6376pub struct WlanFullmacImplIfcAuthIndResponder {
6377 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6378 tx_id: u32,
6379}
6380
6381impl std::ops::Drop for WlanFullmacImplIfcAuthIndResponder {
6385 fn drop(&mut self) {
6386 self.control_handle.shutdown();
6387 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6389 }
6390}
6391
6392impl fidl::endpoints::Responder for WlanFullmacImplIfcAuthIndResponder {
6393 type ControlHandle = WlanFullmacImplIfcControlHandle;
6394
6395 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6396 &self.control_handle
6397 }
6398
6399 fn drop_without_shutdown(mut self) {
6400 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6402 std::mem::forget(self);
6404 }
6405}
6406
6407impl WlanFullmacImplIfcAuthIndResponder {
6408 pub fn send(self) -> Result<(), fidl::Error> {
6412 let _result = self.send_raw();
6413 if _result.is_err() {
6414 self.control_handle.shutdown();
6415 }
6416 self.drop_without_shutdown();
6417 _result
6418 }
6419
6420 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6422 let _result = self.send_raw();
6423 self.drop_without_shutdown();
6424 _result
6425 }
6426
6427 fn send_raw(&self) -> Result<(), fidl::Error> {
6428 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6429 (),
6430 self.tx_id,
6431 0x270e1f8889650d0b,
6432 fidl::encoding::DynamicFlags::empty(),
6433 )
6434 }
6435}
6436
6437#[must_use = "FIDL methods require a response to be sent"]
6438#[derive(Debug)]
6439pub struct WlanFullmacImplIfcDeauthConfResponder {
6440 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6441 tx_id: u32,
6442}
6443
6444impl std::ops::Drop for WlanFullmacImplIfcDeauthConfResponder {
6448 fn drop(&mut self) {
6449 self.control_handle.shutdown();
6450 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6452 }
6453}
6454
6455impl fidl::endpoints::Responder for WlanFullmacImplIfcDeauthConfResponder {
6456 type ControlHandle = WlanFullmacImplIfcControlHandle;
6457
6458 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6459 &self.control_handle
6460 }
6461
6462 fn drop_without_shutdown(mut self) {
6463 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6465 std::mem::forget(self);
6467 }
6468}
6469
6470impl WlanFullmacImplIfcDeauthConfResponder {
6471 pub fn send(self) -> Result<(), fidl::Error> {
6475 let _result = self.send_raw();
6476 if _result.is_err() {
6477 self.control_handle.shutdown();
6478 }
6479 self.drop_without_shutdown();
6480 _result
6481 }
6482
6483 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6485 let _result = self.send_raw();
6486 self.drop_without_shutdown();
6487 _result
6488 }
6489
6490 fn send_raw(&self) -> Result<(), fidl::Error> {
6491 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6492 (),
6493 self.tx_id,
6494 0x2c94b0d7258111b7,
6495 fidl::encoding::DynamicFlags::empty(),
6496 )
6497 }
6498}
6499
6500#[must_use = "FIDL methods require a response to be sent"]
6501#[derive(Debug)]
6502pub struct WlanFullmacImplIfcDeauthIndResponder {
6503 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6504 tx_id: u32,
6505}
6506
6507impl std::ops::Drop for WlanFullmacImplIfcDeauthIndResponder {
6511 fn drop(&mut self) {
6512 self.control_handle.shutdown();
6513 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6515 }
6516}
6517
6518impl fidl::endpoints::Responder for WlanFullmacImplIfcDeauthIndResponder {
6519 type ControlHandle = WlanFullmacImplIfcControlHandle;
6520
6521 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6522 &self.control_handle
6523 }
6524
6525 fn drop_without_shutdown(mut self) {
6526 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6528 std::mem::forget(self);
6530 }
6531}
6532
6533impl WlanFullmacImplIfcDeauthIndResponder {
6534 pub fn send(self) -> Result<(), fidl::Error> {
6538 let _result = self.send_raw();
6539 if _result.is_err() {
6540 self.control_handle.shutdown();
6541 }
6542 self.drop_without_shutdown();
6543 _result
6544 }
6545
6546 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6548 let _result = self.send_raw();
6549 self.drop_without_shutdown();
6550 _result
6551 }
6552
6553 fn send_raw(&self) -> Result<(), fidl::Error> {
6554 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6555 (),
6556 self.tx_id,
6557 0x26cd27cdadd8dbaf,
6558 fidl::encoding::DynamicFlags::empty(),
6559 )
6560 }
6561}
6562
6563#[must_use = "FIDL methods require a response to be sent"]
6564#[derive(Debug)]
6565pub struct WlanFullmacImplIfcAssocIndResponder {
6566 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6567 tx_id: u32,
6568}
6569
6570impl std::ops::Drop for WlanFullmacImplIfcAssocIndResponder {
6574 fn drop(&mut self) {
6575 self.control_handle.shutdown();
6576 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6578 }
6579}
6580
6581impl fidl::endpoints::Responder for WlanFullmacImplIfcAssocIndResponder {
6582 type ControlHandle = WlanFullmacImplIfcControlHandle;
6583
6584 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6585 &self.control_handle
6586 }
6587
6588 fn drop_without_shutdown(mut self) {
6589 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6591 std::mem::forget(self);
6593 }
6594}
6595
6596impl WlanFullmacImplIfcAssocIndResponder {
6597 pub fn send(self) -> Result<(), fidl::Error> {
6601 let _result = self.send_raw();
6602 if _result.is_err() {
6603 self.control_handle.shutdown();
6604 }
6605 self.drop_without_shutdown();
6606 _result
6607 }
6608
6609 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6611 let _result = self.send_raw();
6612 self.drop_without_shutdown();
6613 _result
6614 }
6615
6616 fn send_raw(&self) -> Result<(), fidl::Error> {
6617 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6618 (),
6619 self.tx_id,
6620 0x3e44529e3dc179ce,
6621 fidl::encoding::DynamicFlags::empty(),
6622 )
6623 }
6624}
6625
6626#[must_use = "FIDL methods require a response to be sent"]
6627#[derive(Debug)]
6628pub struct WlanFullmacImplIfcDisassocConfResponder {
6629 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6630 tx_id: u32,
6631}
6632
6633impl std::ops::Drop for WlanFullmacImplIfcDisassocConfResponder {
6637 fn drop(&mut self) {
6638 self.control_handle.shutdown();
6639 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6641 }
6642}
6643
6644impl fidl::endpoints::Responder for WlanFullmacImplIfcDisassocConfResponder {
6645 type ControlHandle = WlanFullmacImplIfcControlHandle;
6646
6647 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6648 &self.control_handle
6649 }
6650
6651 fn drop_without_shutdown(mut self) {
6652 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6654 std::mem::forget(self);
6656 }
6657}
6658
6659impl WlanFullmacImplIfcDisassocConfResponder {
6660 pub fn send(self) -> Result<(), fidl::Error> {
6664 let _result = self.send_raw();
6665 if _result.is_err() {
6666 self.control_handle.shutdown();
6667 }
6668 self.drop_without_shutdown();
6669 _result
6670 }
6671
6672 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6674 let _result = self.send_raw();
6675 self.drop_without_shutdown();
6676 _result
6677 }
6678
6679 fn send_raw(&self) -> Result<(), fidl::Error> {
6680 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6681 (),
6682 self.tx_id,
6683 0x7c713bcd58a76cb3,
6684 fidl::encoding::DynamicFlags::empty(),
6685 )
6686 }
6687}
6688
6689#[must_use = "FIDL methods require a response to be sent"]
6690#[derive(Debug)]
6691pub struct WlanFullmacImplIfcDisassocIndResponder {
6692 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6693 tx_id: u32,
6694}
6695
6696impl std::ops::Drop for WlanFullmacImplIfcDisassocIndResponder {
6700 fn drop(&mut self) {
6701 self.control_handle.shutdown();
6702 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6704 }
6705}
6706
6707impl fidl::endpoints::Responder for WlanFullmacImplIfcDisassocIndResponder {
6708 type ControlHandle = WlanFullmacImplIfcControlHandle;
6709
6710 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6711 &self.control_handle
6712 }
6713
6714 fn drop_without_shutdown(mut self) {
6715 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6717 std::mem::forget(self);
6719 }
6720}
6721
6722impl WlanFullmacImplIfcDisassocIndResponder {
6723 pub fn send(self) -> Result<(), fidl::Error> {
6727 let _result = self.send_raw();
6728 if _result.is_err() {
6729 self.control_handle.shutdown();
6730 }
6731 self.drop_without_shutdown();
6732 _result
6733 }
6734
6735 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6737 let _result = self.send_raw();
6738 self.drop_without_shutdown();
6739 _result
6740 }
6741
6742 fn send_raw(&self) -> Result<(), fidl::Error> {
6743 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6744 (),
6745 self.tx_id,
6746 0x6667b381b7f3990f,
6747 fidl::encoding::DynamicFlags::empty(),
6748 )
6749 }
6750}
6751
6752#[must_use = "FIDL methods require a response to be sent"]
6753#[derive(Debug)]
6754pub struct WlanFullmacImplIfcStartConfResponder {
6755 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6756 tx_id: u32,
6757}
6758
6759impl std::ops::Drop for WlanFullmacImplIfcStartConfResponder {
6763 fn drop(&mut self) {
6764 self.control_handle.shutdown();
6765 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6767 }
6768}
6769
6770impl fidl::endpoints::Responder for WlanFullmacImplIfcStartConfResponder {
6771 type ControlHandle = WlanFullmacImplIfcControlHandle;
6772
6773 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6774 &self.control_handle
6775 }
6776
6777 fn drop_without_shutdown(mut self) {
6778 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6780 std::mem::forget(self);
6782 }
6783}
6784
6785impl WlanFullmacImplIfcStartConfResponder {
6786 pub fn send(self) -> Result<(), fidl::Error> {
6790 let _result = self.send_raw();
6791 if _result.is_err() {
6792 self.control_handle.shutdown();
6793 }
6794 self.drop_without_shutdown();
6795 _result
6796 }
6797
6798 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6800 let _result = self.send_raw();
6801 self.drop_without_shutdown();
6802 _result
6803 }
6804
6805 fn send_raw(&self) -> Result<(), fidl::Error> {
6806 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6807 (),
6808 self.tx_id,
6809 0x3e9b9641f3ddc7fc,
6810 fidl::encoding::DynamicFlags::empty(),
6811 )
6812 }
6813}
6814
6815#[must_use = "FIDL methods require a response to be sent"]
6816#[derive(Debug)]
6817pub struct WlanFullmacImplIfcStopConfResponder {
6818 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6819 tx_id: u32,
6820}
6821
6822impl std::ops::Drop for WlanFullmacImplIfcStopConfResponder {
6826 fn drop(&mut self) {
6827 self.control_handle.shutdown();
6828 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6830 }
6831}
6832
6833impl fidl::endpoints::Responder for WlanFullmacImplIfcStopConfResponder {
6834 type ControlHandle = WlanFullmacImplIfcControlHandle;
6835
6836 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6837 &self.control_handle
6838 }
6839
6840 fn drop_without_shutdown(mut self) {
6841 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6843 std::mem::forget(self);
6845 }
6846}
6847
6848impl WlanFullmacImplIfcStopConfResponder {
6849 pub fn send(self) -> Result<(), fidl::Error> {
6853 let _result = self.send_raw();
6854 if _result.is_err() {
6855 self.control_handle.shutdown();
6856 }
6857 self.drop_without_shutdown();
6858 _result
6859 }
6860
6861 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6863 let _result = self.send_raw();
6864 self.drop_without_shutdown();
6865 _result
6866 }
6867
6868 fn send_raw(&self) -> Result<(), fidl::Error> {
6869 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6870 (),
6871 self.tx_id,
6872 0x320a5ff227a4e9df,
6873 fidl::encoding::DynamicFlags::empty(),
6874 )
6875 }
6876}
6877
6878#[must_use = "FIDL methods require a response to be sent"]
6879#[derive(Debug)]
6880pub struct WlanFullmacImplIfcEapolConfResponder {
6881 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6882 tx_id: u32,
6883}
6884
6885impl std::ops::Drop for WlanFullmacImplIfcEapolConfResponder {
6889 fn drop(&mut self) {
6890 self.control_handle.shutdown();
6891 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6893 }
6894}
6895
6896impl fidl::endpoints::Responder for WlanFullmacImplIfcEapolConfResponder {
6897 type ControlHandle = WlanFullmacImplIfcControlHandle;
6898
6899 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6900 &self.control_handle
6901 }
6902
6903 fn drop_without_shutdown(mut self) {
6904 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6906 std::mem::forget(self);
6908 }
6909}
6910
6911impl WlanFullmacImplIfcEapolConfResponder {
6912 pub fn send(self) -> Result<(), fidl::Error> {
6916 let _result = self.send_raw();
6917 if _result.is_err() {
6918 self.control_handle.shutdown();
6919 }
6920 self.drop_without_shutdown();
6921 _result
6922 }
6923
6924 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6926 let _result = self.send_raw();
6927 self.drop_without_shutdown();
6928 _result
6929 }
6930
6931 fn send_raw(&self) -> Result<(), fidl::Error> {
6932 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6933 (),
6934 self.tx_id,
6935 0x77364db9cc3970ec,
6936 fidl::encoding::DynamicFlags::empty(),
6937 )
6938 }
6939}
6940
6941#[must_use = "FIDL methods require a response to be sent"]
6942#[derive(Debug)]
6943pub struct WlanFullmacImplIfcOnChannelSwitchResponder {
6944 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
6945 tx_id: u32,
6946}
6947
6948impl std::ops::Drop for WlanFullmacImplIfcOnChannelSwitchResponder {
6952 fn drop(&mut self) {
6953 self.control_handle.shutdown();
6954 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6956 }
6957}
6958
6959impl fidl::endpoints::Responder for WlanFullmacImplIfcOnChannelSwitchResponder {
6960 type ControlHandle = WlanFullmacImplIfcControlHandle;
6961
6962 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
6963 &self.control_handle
6964 }
6965
6966 fn drop_without_shutdown(mut self) {
6967 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
6969 std::mem::forget(self);
6971 }
6972}
6973
6974impl WlanFullmacImplIfcOnChannelSwitchResponder {
6975 pub fn send(self) -> Result<(), fidl::Error> {
6979 let _result = self.send_raw();
6980 if _result.is_err() {
6981 self.control_handle.shutdown();
6982 }
6983 self.drop_without_shutdown();
6984 _result
6985 }
6986
6987 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
6989 let _result = self.send_raw();
6990 self.drop_without_shutdown();
6991 _result
6992 }
6993
6994 fn send_raw(&self) -> Result<(), fidl::Error> {
6995 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
6996 (),
6997 self.tx_id,
6998 0x21db0b8f71cae647,
6999 fidl::encoding::DynamicFlags::empty(),
7000 )
7001 }
7002}
7003
7004#[must_use = "FIDL methods require a response to be sent"]
7005#[derive(Debug)]
7006pub struct WlanFullmacImplIfcSignalReportResponder {
7007 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
7008 tx_id: u32,
7009}
7010
7011impl std::ops::Drop for WlanFullmacImplIfcSignalReportResponder {
7015 fn drop(&mut self) {
7016 self.control_handle.shutdown();
7017 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7019 }
7020}
7021
7022impl fidl::endpoints::Responder for WlanFullmacImplIfcSignalReportResponder {
7023 type ControlHandle = WlanFullmacImplIfcControlHandle;
7024
7025 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
7026 &self.control_handle
7027 }
7028
7029 fn drop_without_shutdown(mut self) {
7030 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7032 std::mem::forget(self);
7034 }
7035}
7036
7037impl WlanFullmacImplIfcSignalReportResponder {
7038 pub fn send(self) -> Result<(), fidl::Error> {
7042 let _result = self.send_raw();
7043 if _result.is_err() {
7044 self.control_handle.shutdown();
7045 }
7046 self.drop_without_shutdown();
7047 _result
7048 }
7049
7050 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
7052 let _result = self.send_raw();
7053 self.drop_without_shutdown();
7054 _result
7055 }
7056
7057 fn send_raw(&self) -> Result<(), fidl::Error> {
7058 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
7059 (),
7060 self.tx_id,
7061 0x79679fa8789c3d9f,
7062 fidl::encoding::DynamicFlags::empty(),
7063 )
7064 }
7065}
7066
7067#[must_use = "FIDL methods require a response to be sent"]
7068#[derive(Debug)]
7069pub struct WlanFullmacImplIfcEapolIndResponder {
7070 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
7071 tx_id: u32,
7072}
7073
7074impl std::ops::Drop for WlanFullmacImplIfcEapolIndResponder {
7078 fn drop(&mut self) {
7079 self.control_handle.shutdown();
7080 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7082 }
7083}
7084
7085impl fidl::endpoints::Responder for WlanFullmacImplIfcEapolIndResponder {
7086 type ControlHandle = WlanFullmacImplIfcControlHandle;
7087
7088 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
7089 &self.control_handle
7090 }
7091
7092 fn drop_without_shutdown(mut self) {
7093 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7095 std::mem::forget(self);
7097 }
7098}
7099
7100impl WlanFullmacImplIfcEapolIndResponder {
7101 pub fn send(self) -> Result<(), fidl::Error> {
7105 let _result = self.send_raw();
7106 if _result.is_err() {
7107 self.control_handle.shutdown();
7108 }
7109 self.drop_without_shutdown();
7110 _result
7111 }
7112
7113 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
7115 let _result = self.send_raw();
7116 self.drop_without_shutdown();
7117 _result
7118 }
7119
7120 fn send_raw(&self) -> Result<(), fidl::Error> {
7121 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
7122 (),
7123 self.tx_id,
7124 0x3de8ec1eda10d1d0,
7125 fidl::encoding::DynamicFlags::empty(),
7126 )
7127 }
7128}
7129
7130#[must_use = "FIDL methods require a response to be sent"]
7131#[derive(Debug)]
7132pub struct WlanFullmacImplIfcOnPmkAvailableResponder {
7133 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
7134 tx_id: u32,
7135}
7136
7137impl std::ops::Drop for WlanFullmacImplIfcOnPmkAvailableResponder {
7141 fn drop(&mut self) {
7142 self.control_handle.shutdown();
7143 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7145 }
7146}
7147
7148impl fidl::endpoints::Responder for WlanFullmacImplIfcOnPmkAvailableResponder {
7149 type ControlHandle = WlanFullmacImplIfcControlHandle;
7150
7151 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
7152 &self.control_handle
7153 }
7154
7155 fn drop_without_shutdown(mut self) {
7156 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7158 std::mem::forget(self);
7160 }
7161}
7162
7163impl WlanFullmacImplIfcOnPmkAvailableResponder {
7164 pub fn send(self) -> Result<(), fidl::Error> {
7168 let _result = self.send_raw();
7169 if _result.is_err() {
7170 self.control_handle.shutdown();
7171 }
7172 self.drop_without_shutdown();
7173 _result
7174 }
7175
7176 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
7178 let _result = self.send_raw();
7179 self.drop_without_shutdown();
7180 _result
7181 }
7182
7183 fn send_raw(&self) -> Result<(), fidl::Error> {
7184 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
7185 (),
7186 self.tx_id,
7187 0x5cedd8d9be28a17e,
7188 fidl::encoding::DynamicFlags::empty(),
7189 )
7190 }
7191}
7192
7193#[must_use = "FIDL methods require a response to be sent"]
7194#[derive(Debug)]
7195pub struct WlanFullmacImplIfcSaeHandshakeIndResponder {
7196 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
7197 tx_id: u32,
7198}
7199
7200impl std::ops::Drop for WlanFullmacImplIfcSaeHandshakeIndResponder {
7204 fn drop(&mut self) {
7205 self.control_handle.shutdown();
7206 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7208 }
7209}
7210
7211impl fidl::endpoints::Responder for WlanFullmacImplIfcSaeHandshakeIndResponder {
7212 type ControlHandle = WlanFullmacImplIfcControlHandle;
7213
7214 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
7215 &self.control_handle
7216 }
7217
7218 fn drop_without_shutdown(mut self) {
7219 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7221 std::mem::forget(self);
7223 }
7224}
7225
7226impl WlanFullmacImplIfcSaeHandshakeIndResponder {
7227 pub fn send(self) -> Result<(), fidl::Error> {
7231 let _result = self.send_raw();
7232 if _result.is_err() {
7233 self.control_handle.shutdown();
7234 }
7235 self.drop_without_shutdown();
7236 _result
7237 }
7238
7239 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
7241 let _result = self.send_raw();
7242 self.drop_without_shutdown();
7243 _result
7244 }
7245
7246 fn send_raw(&self) -> Result<(), fidl::Error> {
7247 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
7248 (),
7249 self.tx_id,
7250 0x4f3d53885503a1d8,
7251 fidl::encoding::DynamicFlags::empty(),
7252 )
7253 }
7254}
7255
7256#[must_use = "FIDL methods require a response to be sent"]
7257#[derive(Debug)]
7258pub struct WlanFullmacImplIfcSaeFrameRxResponder {
7259 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
7260 tx_id: u32,
7261}
7262
7263impl std::ops::Drop for WlanFullmacImplIfcSaeFrameRxResponder {
7267 fn drop(&mut self) {
7268 self.control_handle.shutdown();
7269 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7271 }
7272}
7273
7274impl fidl::endpoints::Responder for WlanFullmacImplIfcSaeFrameRxResponder {
7275 type ControlHandle = WlanFullmacImplIfcControlHandle;
7276
7277 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
7278 &self.control_handle
7279 }
7280
7281 fn drop_without_shutdown(mut self) {
7282 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7284 std::mem::forget(self);
7286 }
7287}
7288
7289impl WlanFullmacImplIfcSaeFrameRxResponder {
7290 pub fn send(self) -> Result<(), fidl::Error> {
7294 let _result = self.send_raw();
7295 if _result.is_err() {
7296 self.control_handle.shutdown();
7297 }
7298 self.drop_without_shutdown();
7299 _result
7300 }
7301
7302 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
7304 let _result = self.send_raw();
7305 self.drop_without_shutdown();
7306 _result
7307 }
7308
7309 fn send_raw(&self) -> Result<(), fidl::Error> {
7310 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
7311 (),
7312 self.tx_id,
7313 0x51650906857ed4d4,
7314 fidl::encoding::DynamicFlags::empty(),
7315 )
7316 }
7317}
7318
7319#[must_use = "FIDL methods require a response to be sent"]
7320#[derive(Debug)]
7321pub struct WlanFullmacImplIfcOnWmmStatusRespResponder {
7322 control_handle: std::mem::ManuallyDrop<WlanFullmacImplIfcControlHandle>,
7323 tx_id: u32,
7324}
7325
7326impl std::ops::Drop for WlanFullmacImplIfcOnWmmStatusRespResponder {
7330 fn drop(&mut self) {
7331 self.control_handle.shutdown();
7332 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7334 }
7335}
7336
7337impl fidl::endpoints::Responder for WlanFullmacImplIfcOnWmmStatusRespResponder {
7338 type ControlHandle = WlanFullmacImplIfcControlHandle;
7339
7340 fn control_handle(&self) -> &WlanFullmacImplIfcControlHandle {
7341 &self.control_handle
7342 }
7343
7344 fn drop_without_shutdown(mut self) {
7345 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
7347 std::mem::forget(self);
7349 }
7350}
7351
7352impl WlanFullmacImplIfcOnWmmStatusRespResponder {
7353 pub fn send(self) -> Result<(), fidl::Error> {
7357 let _result = self.send_raw();
7358 if _result.is_err() {
7359 self.control_handle.shutdown();
7360 }
7361 self.drop_without_shutdown();
7362 _result
7363 }
7364
7365 pub fn send_no_shutdown_on_err(self) -> Result<(), fidl::Error> {
7367 let _result = self.send_raw();
7368 self.drop_without_shutdown();
7369 _result
7370 }
7371
7372 fn send_raw(&self) -> Result<(), fidl::Error> {
7373 self.control_handle.inner.send::<fidl::encoding::EmptyPayload>(
7374 (),
7375 self.tx_id,
7376 0x6823a88bf3ba8b2a,
7377 fidl::encoding::DynamicFlags::empty(),
7378 )
7379 }
7380}
7381
7382#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
7383pub struct ServiceMarker;
7384
7385#[cfg(target_os = "fuchsia")]
7386impl fidl::endpoints::ServiceMarker for ServiceMarker {
7387 type Proxy = ServiceProxy;
7388 type Request = ServiceRequest;
7389 const SERVICE_NAME: &'static str = "fuchsia.wlan.fullmac.Service";
7390}
7391
7392#[cfg(target_os = "fuchsia")]
7395pub enum ServiceRequest {
7396 WlanFullmacImpl(WlanFullmacImpl_RequestStream),
7397}
7398
7399#[cfg(target_os = "fuchsia")]
7400impl fidl::endpoints::ServiceRequest for ServiceRequest {
7401 type Service = ServiceMarker;
7402
7403 fn dispatch(name: &str, _channel: fidl::AsyncChannel) -> Self {
7404 match name {
7405 "wlan_fullmac_impl" => Self::WlanFullmacImpl(
7406 <WlanFullmacImpl_RequestStream as fidl::endpoints::RequestStream>::from_channel(
7407 _channel,
7408 ),
7409 ),
7410 _ => panic!("no such member protocol name for service Service"),
7411 }
7412 }
7413
7414 fn member_names() -> &'static [&'static str] {
7415 &["wlan_fullmac_impl"]
7416 }
7417}
7418#[cfg(target_os = "fuchsia")]
7419pub struct ServiceProxy(#[allow(dead_code)] Box<dyn fidl::endpoints::MemberOpener>);
7420
7421#[cfg(target_os = "fuchsia")]
7422impl fidl::endpoints::ServiceProxy for ServiceProxy {
7423 type Service = ServiceMarker;
7424
7425 fn from_member_opener(opener: Box<dyn fidl::endpoints::MemberOpener>) -> Self {
7426 Self(opener)
7427 }
7428}
7429
7430#[cfg(target_os = "fuchsia")]
7431impl ServiceProxy {
7432 pub fn connect_to_wlan_fullmac_impl(&self) -> Result<WlanFullmacImpl_Proxy, fidl::Error> {
7433 let (proxy, server_end) = fidl::endpoints::create_proxy::<WlanFullmacImpl_Marker>();
7434 self.connect_channel_to_wlan_fullmac_impl(server_end)?;
7435 Ok(proxy)
7436 }
7437
7438 pub fn connect_to_wlan_fullmac_impl_sync(
7441 &self,
7442 ) -> Result<WlanFullmacImpl_SynchronousProxy, fidl::Error> {
7443 let (proxy, server_end) = fidl::endpoints::create_sync_proxy::<WlanFullmacImpl_Marker>();
7444 self.connect_channel_to_wlan_fullmac_impl(server_end)?;
7445 Ok(proxy)
7446 }
7447
7448 pub fn connect_channel_to_wlan_fullmac_impl(
7451 &self,
7452 server_end: fidl::endpoints::ServerEnd<WlanFullmacImpl_Marker>,
7453 ) -> Result<(), fidl::Error> {
7454 self.0.open_member("wlan_fullmac_impl", server_end.into_channel())
7455 }
7456
7457 pub fn instance_name(&self) -> &str {
7458 self.0.instance_name()
7459 }
7460}
7461
7462mod internal {
7463 use super::*;
7464
7465 impl WlanFullmacImplInitRequest {
7466 #[inline(always)]
7467 fn max_ordinal_present(&self) -> u64 {
7468 if let Some(_) = self.ifc {
7469 return 1;
7470 }
7471 0
7472 }
7473 }
7474
7475 impl fidl::encoding::ResourceTypeMarker for WlanFullmacImplInitRequest {
7476 type Borrowed<'a> = &'a mut Self;
7477 fn take_or_borrow<'a>(
7478 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
7479 ) -> Self::Borrowed<'a> {
7480 value
7481 }
7482 }
7483
7484 unsafe impl fidl::encoding::TypeMarker for WlanFullmacImplInitRequest {
7485 type Owned = Self;
7486
7487 #[inline(always)]
7488 fn inline_align(_context: fidl::encoding::Context) -> usize {
7489 8
7490 }
7491
7492 #[inline(always)]
7493 fn inline_size(_context: fidl::encoding::Context) -> usize {
7494 16
7495 }
7496 }
7497
7498 unsafe impl
7499 fidl::encoding::Encode<
7500 WlanFullmacImplInitRequest,
7501 fidl::encoding::DefaultFuchsiaResourceDialect,
7502 > for &mut WlanFullmacImplInitRequest
7503 {
7504 unsafe fn encode(
7505 self,
7506 encoder: &mut fidl::encoding::Encoder<
7507 '_,
7508 fidl::encoding::DefaultFuchsiaResourceDialect,
7509 >,
7510 offset: usize,
7511 mut depth: fidl::encoding::Depth,
7512 ) -> fidl::Result<()> {
7513 encoder.debug_check_bounds::<WlanFullmacImplInitRequest>(offset);
7514 let max_ordinal: u64 = self.max_ordinal_present();
7516 encoder.write_num(max_ordinal, offset);
7517 encoder.write_num(fidl::encoding::ALLOC_PRESENT_U64, offset + 8);
7518 if max_ordinal == 0 {
7520 return Ok(());
7521 }
7522 depth.increment()?;
7523 let envelope_size = 8;
7524 let bytes_len = max_ordinal as usize * envelope_size;
7525 #[allow(unused_variables)]
7526 let offset = encoder.out_of_line_offset(bytes_len);
7527 let mut _prev_end_offset: usize = 0;
7528 if 1 > max_ordinal {
7529 return Ok(());
7530 }
7531
7532 let cur_offset: usize = (1 - 1) * envelope_size;
7535
7536 encoder.padding(offset + _prev_end_offset, cur_offset - _prev_end_offset);
7538
7539 fidl::encoding::encode_in_envelope_optional::<fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<WlanFullmacImplIfcMarker>>, fidl::encoding::DefaultFuchsiaResourceDialect>(
7544 self.ifc.as_mut().map(<fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<WlanFullmacImplIfcMarker>> as fidl::encoding::ResourceTypeMarker>::take_or_borrow),
7545 encoder, offset + cur_offset, depth
7546 )?;
7547
7548 _prev_end_offset = cur_offset + envelope_size;
7549
7550 Ok(())
7551 }
7552 }
7553
7554 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
7555 for WlanFullmacImplInitRequest
7556 {
7557 #[inline(always)]
7558 fn new_empty() -> Self {
7559 Self::default()
7560 }
7561
7562 unsafe fn decode(
7563 &mut self,
7564 decoder: &mut fidl::encoding::Decoder<
7565 '_,
7566 fidl::encoding::DefaultFuchsiaResourceDialect,
7567 >,
7568 offset: usize,
7569 mut depth: fidl::encoding::Depth,
7570 ) -> fidl::Result<()> {
7571 decoder.debug_check_bounds::<Self>(offset);
7572 let len = match fidl::encoding::decode_vector_header(decoder, offset)? {
7573 None => return Err(fidl::Error::NotNullable),
7574 Some(len) => len,
7575 };
7576 if len == 0 {
7578 return Ok(());
7579 };
7580 depth.increment()?;
7581 let envelope_size = 8;
7582 let bytes_len = len * envelope_size;
7583 let offset = decoder.out_of_line_offset(bytes_len)?;
7584 let mut _next_ordinal_to_read = 0;
7586 let mut next_offset = offset;
7587 let end_offset = offset + bytes_len;
7588 _next_ordinal_to_read += 1;
7589 if next_offset >= end_offset {
7590 return Ok(());
7591 }
7592
7593 while _next_ordinal_to_read < 1 {
7595 fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
7596 _next_ordinal_to_read += 1;
7597 next_offset += envelope_size;
7598 }
7599
7600 let next_out_of_line = decoder.next_out_of_line();
7601 let handles_before = decoder.remaining_handles();
7602 if let Some((inlined, num_bytes, num_handles)) =
7603 fidl::encoding::decode_envelope_header(decoder, next_offset)?
7604 {
7605 let member_inline_size = <fidl::encoding::Endpoint<
7606 fidl::endpoints::ClientEnd<WlanFullmacImplIfcMarker>,
7607 > as fidl::encoding::TypeMarker>::inline_size(
7608 decoder.context
7609 );
7610 if inlined != (member_inline_size <= 4) {
7611 return Err(fidl::Error::InvalidInlineBitInEnvelope);
7612 }
7613 let inner_offset;
7614 let mut inner_depth = depth.clone();
7615 if inlined {
7616 decoder.check_inline_envelope_padding(next_offset, member_inline_size)?;
7617 inner_offset = next_offset;
7618 } else {
7619 inner_offset = decoder.out_of_line_offset(member_inline_size)?;
7620 inner_depth.increment()?;
7621 }
7622 let val_ref = self.ifc.get_or_insert_with(|| {
7623 fidl::new_empty!(
7624 fidl::encoding::Endpoint<
7625 fidl::endpoints::ClientEnd<WlanFullmacImplIfcMarker>,
7626 >,
7627 fidl::encoding::DefaultFuchsiaResourceDialect
7628 )
7629 });
7630 fidl::decode!(
7631 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<WlanFullmacImplIfcMarker>>,
7632 fidl::encoding::DefaultFuchsiaResourceDialect,
7633 val_ref,
7634 decoder,
7635 inner_offset,
7636 inner_depth
7637 )?;
7638 if !inlined && decoder.next_out_of_line() != next_out_of_line + (num_bytes as usize)
7639 {
7640 return Err(fidl::Error::InvalidNumBytesInEnvelope);
7641 }
7642 if handles_before != decoder.remaining_handles() + (num_handles as usize) {
7643 return Err(fidl::Error::InvalidNumHandlesInEnvelope);
7644 }
7645 }
7646
7647 next_offset += envelope_size;
7648
7649 while next_offset < end_offset {
7651 _next_ordinal_to_read += 1;
7652 fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
7653 next_offset += envelope_size;
7654 }
7655
7656 Ok(())
7657 }
7658 }
7659
7660 impl WlanFullmacImplInitResponse {
7661 #[inline(always)]
7662 fn max_ordinal_present(&self) -> u64 {
7663 if let Some(_) = self.sme_channel {
7664 return 1;
7665 }
7666 0
7667 }
7668 }
7669
7670 impl fidl::encoding::ResourceTypeMarker for WlanFullmacImplInitResponse {
7671 type Borrowed<'a> = &'a mut Self;
7672 fn take_or_borrow<'a>(
7673 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
7674 ) -> Self::Borrowed<'a> {
7675 value
7676 }
7677 }
7678
7679 unsafe impl fidl::encoding::TypeMarker for WlanFullmacImplInitResponse {
7680 type Owned = Self;
7681
7682 #[inline(always)]
7683 fn inline_align(_context: fidl::encoding::Context) -> usize {
7684 8
7685 }
7686
7687 #[inline(always)]
7688 fn inline_size(_context: fidl::encoding::Context) -> usize {
7689 16
7690 }
7691 }
7692
7693 unsafe impl
7694 fidl::encoding::Encode<
7695 WlanFullmacImplInitResponse,
7696 fidl::encoding::DefaultFuchsiaResourceDialect,
7697 > for &mut WlanFullmacImplInitResponse
7698 {
7699 unsafe fn encode(
7700 self,
7701 encoder: &mut fidl::encoding::Encoder<
7702 '_,
7703 fidl::encoding::DefaultFuchsiaResourceDialect,
7704 >,
7705 offset: usize,
7706 mut depth: fidl::encoding::Depth,
7707 ) -> fidl::Result<()> {
7708 encoder.debug_check_bounds::<WlanFullmacImplInitResponse>(offset);
7709 let max_ordinal: u64 = self.max_ordinal_present();
7711 encoder.write_num(max_ordinal, offset);
7712 encoder.write_num(fidl::encoding::ALLOC_PRESENT_U64, offset + 8);
7713 if max_ordinal == 0 {
7715 return Ok(());
7716 }
7717 depth.increment()?;
7718 let envelope_size = 8;
7719 let bytes_len = max_ordinal as usize * envelope_size;
7720 #[allow(unused_variables)]
7721 let offset = encoder.out_of_line_offset(bytes_len);
7722 let mut _prev_end_offset: usize = 0;
7723 if 1 > max_ordinal {
7724 return Ok(());
7725 }
7726
7727 let cur_offset: usize = (1 - 1) * envelope_size;
7730
7731 encoder.padding(offset + _prev_end_offset, cur_offset - _prev_end_offset);
7733
7734 fidl::encoding::encode_in_envelope_optional::<
7739 fidl::encoding::HandleType<
7740 fidl::Channel,
7741 { fidl::ObjectType::CHANNEL.into_raw() },
7742 2147483648,
7743 >,
7744 fidl::encoding::DefaultFuchsiaResourceDialect,
7745 >(
7746 self.sme_channel.as_mut().map(
7747 <fidl::encoding::HandleType<
7748 fidl::Channel,
7749 { fidl::ObjectType::CHANNEL.into_raw() },
7750 2147483648,
7751 > as fidl::encoding::ResourceTypeMarker>::take_or_borrow,
7752 ),
7753 encoder,
7754 offset + cur_offset,
7755 depth,
7756 )?;
7757
7758 _prev_end_offset = cur_offset + envelope_size;
7759
7760 Ok(())
7761 }
7762 }
7763
7764 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
7765 for WlanFullmacImplInitResponse
7766 {
7767 #[inline(always)]
7768 fn new_empty() -> Self {
7769 Self::default()
7770 }
7771
7772 unsafe fn decode(
7773 &mut self,
7774 decoder: &mut fidl::encoding::Decoder<
7775 '_,
7776 fidl::encoding::DefaultFuchsiaResourceDialect,
7777 >,
7778 offset: usize,
7779 mut depth: fidl::encoding::Depth,
7780 ) -> fidl::Result<()> {
7781 decoder.debug_check_bounds::<Self>(offset);
7782 let len = match fidl::encoding::decode_vector_header(decoder, offset)? {
7783 None => return Err(fidl::Error::NotNullable),
7784 Some(len) => len,
7785 };
7786 if len == 0 {
7788 return Ok(());
7789 };
7790 depth.increment()?;
7791 let envelope_size = 8;
7792 let bytes_len = len * envelope_size;
7793 let offset = decoder.out_of_line_offset(bytes_len)?;
7794 let mut _next_ordinal_to_read = 0;
7796 let mut next_offset = offset;
7797 let end_offset = offset + bytes_len;
7798 _next_ordinal_to_read += 1;
7799 if next_offset >= end_offset {
7800 return Ok(());
7801 }
7802
7803 while _next_ordinal_to_read < 1 {
7805 fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
7806 _next_ordinal_to_read += 1;
7807 next_offset += envelope_size;
7808 }
7809
7810 let next_out_of_line = decoder.next_out_of_line();
7811 let handles_before = decoder.remaining_handles();
7812 if let Some((inlined, num_bytes, num_handles)) =
7813 fidl::encoding::decode_envelope_header(decoder, next_offset)?
7814 {
7815 let member_inline_size = <fidl::encoding::HandleType<
7816 fidl::Channel,
7817 { fidl::ObjectType::CHANNEL.into_raw() },
7818 2147483648,
7819 > as fidl::encoding::TypeMarker>::inline_size(
7820 decoder.context
7821 );
7822 if inlined != (member_inline_size <= 4) {
7823 return Err(fidl::Error::InvalidInlineBitInEnvelope);
7824 }
7825 let inner_offset;
7826 let mut inner_depth = depth.clone();
7827 if inlined {
7828 decoder.check_inline_envelope_padding(next_offset, member_inline_size)?;
7829 inner_offset = next_offset;
7830 } else {
7831 inner_offset = decoder.out_of_line_offset(member_inline_size)?;
7832 inner_depth.increment()?;
7833 }
7834 let val_ref =
7835 self.sme_channel.get_or_insert_with(|| fidl::new_empty!(fidl::encoding::HandleType<fidl::Channel, { fidl::ObjectType::CHANNEL.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect));
7836 fidl::decode!(fidl::encoding::HandleType<fidl::Channel, { fidl::ObjectType::CHANNEL.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect, val_ref, decoder, inner_offset, inner_depth)?;
7837 if !inlined && decoder.next_out_of_line() != next_out_of_line + (num_bytes as usize)
7838 {
7839 return Err(fidl::Error::InvalidNumBytesInEnvelope);
7840 }
7841 if handles_before != decoder.remaining_handles() + (num_handles as usize) {
7842 return Err(fidl::Error::InvalidNumHandlesInEnvelope);
7843 }
7844 }
7845
7846 next_offset += envelope_size;
7847
7848 while next_offset < end_offset {
7850 _next_ordinal_to_read += 1;
7851 fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
7852 next_offset += envelope_size;
7853 }
7854
7855 Ok(())
7856 }
7857 }
7858}