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_posix_socket_raw_common::*;
11use futures::future::{self, MaybeDone, TryFutureExt};
12use zx_status;
13
14#[derive(Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
15pub struct ProviderSocketWithOptionsResponse {
16 pub s: fidl::endpoints::ClientEnd<SocketMarker>,
17}
18
19impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
20 for ProviderSocketWithOptionsResponse
21{
22}
23
24#[derive(Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
25pub struct ProviderSocketResponse {
26 pub s: fidl::endpoints::ClientEnd<SocketMarker>,
27}
28
29impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect> for ProviderSocketResponse {}
30
31#[derive(Debug, Default, PartialEq)]
32pub struct SocketDescribeResponse {
33 pub event: Option<fidl::EventPair>,
36 #[doc(hidden)]
37 pub __source_breaking: fidl::marker::SourceBreaking,
38}
39
40impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect> for SocketDescribeResponse {}
41
42#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
43pub struct ProviderMarker;
44
45impl fidl::endpoints::ProtocolMarker for ProviderMarker {
46 type Proxy = ProviderProxy;
47 type RequestStream = ProviderRequestStream;
48 #[cfg(target_os = "fuchsia")]
49 type SynchronousProxy = ProviderSynchronousProxy;
50
51 const DEBUG_NAME: &'static str = "fuchsia.posix.socket.raw.Provider";
52}
53impl fidl::endpoints::DiscoverableProtocolMarker for ProviderMarker {}
54pub type ProviderSocketResult =
55 Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>;
56pub type ProviderSocketWithOptionsResult =
57 Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>;
58
59pub trait ProviderProxyInterface: Send + Sync {
60 type SocketResponseFut: std::future::Future<Output = Result<ProviderSocketResult, fidl::Error>>
61 + Send;
62 fn r#socket(
63 &self,
64 domain: fidl_fuchsia_posix_socket::Domain,
65 proto: &ProtocolAssociation,
66 ) -> Self::SocketResponseFut;
67 type SocketWithOptionsResponseFut: std::future::Future<Output = Result<ProviderSocketWithOptionsResult, fidl::Error>>
68 + Send;
69 fn r#socket_with_options(
70 &self,
71 domain: fidl_fuchsia_posix_socket::Domain,
72 proto: &ProtocolAssociation,
73 opts: &fidl_fuchsia_posix_socket::SocketCreationOptions,
74 ) -> Self::SocketWithOptionsResponseFut;
75}
76#[derive(Debug)]
77#[cfg(target_os = "fuchsia")]
78pub struct ProviderSynchronousProxy {
79 client: fidl::client::sync::Client,
80}
81
82#[cfg(target_os = "fuchsia")]
83impl fidl::endpoints::SynchronousProxy for ProviderSynchronousProxy {
84 type Proxy = ProviderProxy;
85 type Protocol = ProviderMarker;
86
87 fn from_channel(inner: fidl::Channel) -> Self {
88 Self::new(inner)
89 }
90
91 fn into_channel(self) -> fidl::Channel {
92 self.client.into_channel()
93 }
94
95 fn as_channel(&self) -> &fidl::Channel {
96 self.client.as_channel()
97 }
98}
99
100#[cfg(target_os = "fuchsia")]
101impl ProviderSynchronousProxy {
102 pub fn new(channel: fidl::Channel) -> Self {
103 let protocol_name = <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
104 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
105 }
106
107 pub fn into_channel(self) -> fidl::Channel {
108 self.client.into_channel()
109 }
110
111 pub fn wait_for_event(
114 &self,
115 deadline: zx::MonotonicInstant,
116 ) -> Result<ProviderEvent, fidl::Error> {
117 ProviderEvent::decode(self.client.wait_for_event(deadline)?)
118 }
119
120 pub fn r#socket(
122 &self,
123 mut domain: fidl_fuchsia_posix_socket::Domain,
124 mut proto: &ProtocolAssociation,
125 ___deadline: zx::MonotonicInstant,
126 ) -> Result<ProviderSocketResult, fidl::Error> {
127 let _response =
128 self.client.send_query::<ProviderSocketRequest, fidl::encoding::ResultType<
129 ProviderSocketResponse,
130 fidl_fuchsia_posix::Errno,
131 >>(
132 (domain, proto),
133 0xdfa6a591ab48fd1,
134 fidl::encoding::DynamicFlags::empty(),
135 ___deadline,
136 )?;
137 Ok(_response.map(|x| x.s))
138 }
139
140 pub fn r#socket_with_options(
142 &self,
143 mut domain: fidl_fuchsia_posix_socket::Domain,
144 mut proto: &ProtocolAssociation,
145 mut opts: &fidl_fuchsia_posix_socket::SocketCreationOptions,
146 ___deadline: zx::MonotonicInstant,
147 ) -> Result<ProviderSocketWithOptionsResult, fidl::Error> {
148 let _response =
149 self.client.send_query::<ProviderSocketWithOptionsRequest, fidl::encoding::ResultType<
150 ProviderSocketWithOptionsResponse,
151 fidl_fuchsia_posix::Errno,
152 >>(
153 (domain, proto, opts),
154 0x34cd6e7e82c46f85,
155 fidl::encoding::DynamicFlags::empty(),
156 ___deadline,
157 )?;
158 Ok(_response.map(|x| x.s))
159 }
160}
161
162#[cfg(target_os = "fuchsia")]
163impl From<ProviderSynchronousProxy> for zx::Handle {
164 fn from(value: ProviderSynchronousProxy) -> Self {
165 value.into_channel().into()
166 }
167}
168
169#[cfg(target_os = "fuchsia")]
170impl From<fidl::Channel> for ProviderSynchronousProxy {
171 fn from(value: fidl::Channel) -> Self {
172 Self::new(value)
173 }
174}
175
176#[derive(Debug, Clone)]
177pub struct ProviderProxy {
178 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
179}
180
181impl fidl::endpoints::Proxy for ProviderProxy {
182 type Protocol = ProviderMarker;
183
184 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
185 Self::new(inner)
186 }
187
188 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
189 self.client.into_channel().map_err(|client| Self { client })
190 }
191
192 fn as_channel(&self) -> &::fidl::AsyncChannel {
193 self.client.as_channel()
194 }
195}
196
197impl ProviderProxy {
198 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
200 let protocol_name = <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
201 Self { client: fidl::client::Client::new(channel, protocol_name) }
202 }
203
204 pub fn take_event_stream(&self) -> ProviderEventStream {
210 ProviderEventStream { event_receiver: self.client.take_event_receiver() }
211 }
212
213 pub fn r#socket(
215 &self,
216 mut domain: fidl_fuchsia_posix_socket::Domain,
217 mut proto: &ProtocolAssociation,
218 ) -> fidl::client::QueryResponseFut<
219 ProviderSocketResult,
220 fidl::encoding::DefaultFuchsiaResourceDialect,
221 > {
222 ProviderProxyInterface::r#socket(self, domain, proto)
223 }
224
225 pub fn r#socket_with_options(
227 &self,
228 mut domain: fidl_fuchsia_posix_socket::Domain,
229 mut proto: &ProtocolAssociation,
230 mut opts: &fidl_fuchsia_posix_socket::SocketCreationOptions,
231 ) -> fidl::client::QueryResponseFut<
232 ProviderSocketWithOptionsResult,
233 fidl::encoding::DefaultFuchsiaResourceDialect,
234 > {
235 ProviderProxyInterface::r#socket_with_options(self, domain, proto, opts)
236 }
237}
238
239impl ProviderProxyInterface for ProviderProxy {
240 type SocketResponseFut = fidl::client::QueryResponseFut<
241 ProviderSocketResult,
242 fidl::encoding::DefaultFuchsiaResourceDialect,
243 >;
244 fn r#socket(
245 &self,
246 mut domain: fidl_fuchsia_posix_socket::Domain,
247 mut proto: &ProtocolAssociation,
248 ) -> Self::SocketResponseFut {
249 fn _decode(
250 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
251 ) -> Result<ProviderSocketResult, fidl::Error> {
252 let _response = fidl::client::decode_transaction_body::<
253 fidl::encoding::ResultType<ProviderSocketResponse, fidl_fuchsia_posix::Errno>,
254 fidl::encoding::DefaultFuchsiaResourceDialect,
255 0xdfa6a591ab48fd1,
256 >(_buf?)?;
257 Ok(_response.map(|x| x.s))
258 }
259 self.client.send_query_and_decode::<ProviderSocketRequest, ProviderSocketResult>(
260 (domain, proto),
261 0xdfa6a591ab48fd1,
262 fidl::encoding::DynamicFlags::empty(),
263 _decode,
264 )
265 }
266
267 type SocketWithOptionsResponseFut = fidl::client::QueryResponseFut<
268 ProviderSocketWithOptionsResult,
269 fidl::encoding::DefaultFuchsiaResourceDialect,
270 >;
271 fn r#socket_with_options(
272 &self,
273 mut domain: fidl_fuchsia_posix_socket::Domain,
274 mut proto: &ProtocolAssociation,
275 mut opts: &fidl_fuchsia_posix_socket::SocketCreationOptions,
276 ) -> Self::SocketWithOptionsResponseFut {
277 fn _decode(
278 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
279 ) -> Result<ProviderSocketWithOptionsResult, fidl::Error> {
280 let _response = fidl::client::decode_transaction_body::<
281 fidl::encoding::ResultType<
282 ProviderSocketWithOptionsResponse,
283 fidl_fuchsia_posix::Errno,
284 >,
285 fidl::encoding::DefaultFuchsiaResourceDialect,
286 0x34cd6e7e82c46f85,
287 >(_buf?)?;
288 Ok(_response.map(|x| x.s))
289 }
290 self.client.send_query_and_decode::<
291 ProviderSocketWithOptionsRequest,
292 ProviderSocketWithOptionsResult,
293 >(
294 (domain, proto, opts,),
295 0x34cd6e7e82c46f85,
296 fidl::encoding::DynamicFlags::empty(),
297 _decode,
298 )
299 }
300}
301
302pub struct ProviderEventStream {
303 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
304}
305
306impl std::marker::Unpin for ProviderEventStream {}
307
308impl futures::stream::FusedStream for ProviderEventStream {
309 fn is_terminated(&self) -> bool {
310 self.event_receiver.is_terminated()
311 }
312}
313
314impl futures::Stream for ProviderEventStream {
315 type Item = Result<ProviderEvent, fidl::Error>;
316
317 fn poll_next(
318 mut self: std::pin::Pin<&mut Self>,
319 cx: &mut std::task::Context<'_>,
320 ) -> std::task::Poll<Option<Self::Item>> {
321 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
322 &mut self.event_receiver,
323 cx
324 )?) {
325 Some(buf) => std::task::Poll::Ready(Some(ProviderEvent::decode(buf))),
326 None => std::task::Poll::Ready(None),
327 }
328 }
329}
330
331#[derive(Debug)]
332pub enum ProviderEvent {}
333
334impl ProviderEvent {
335 fn decode(
337 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
338 ) -> Result<ProviderEvent, fidl::Error> {
339 let (bytes, _handles) = buf.split_mut();
340 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
341 debug_assert_eq!(tx_header.tx_id, 0);
342 match tx_header.ordinal {
343 _ => Err(fidl::Error::UnknownOrdinal {
344 ordinal: tx_header.ordinal,
345 protocol_name: <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
346 }),
347 }
348 }
349}
350
351pub struct ProviderRequestStream {
353 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
354 is_terminated: bool,
355}
356
357impl std::marker::Unpin for ProviderRequestStream {}
358
359impl futures::stream::FusedStream for ProviderRequestStream {
360 fn is_terminated(&self) -> bool {
361 self.is_terminated
362 }
363}
364
365impl fidl::endpoints::RequestStream for ProviderRequestStream {
366 type Protocol = ProviderMarker;
367 type ControlHandle = ProviderControlHandle;
368
369 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
370 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
371 }
372
373 fn control_handle(&self) -> Self::ControlHandle {
374 ProviderControlHandle { inner: self.inner.clone() }
375 }
376
377 fn into_inner(
378 self,
379 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
380 {
381 (self.inner, self.is_terminated)
382 }
383
384 fn from_inner(
385 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
386 is_terminated: bool,
387 ) -> Self {
388 Self { inner, is_terminated }
389 }
390}
391
392impl futures::Stream for ProviderRequestStream {
393 type Item = Result<ProviderRequest, fidl::Error>;
394
395 fn poll_next(
396 mut self: std::pin::Pin<&mut Self>,
397 cx: &mut std::task::Context<'_>,
398 ) -> std::task::Poll<Option<Self::Item>> {
399 let this = &mut *self;
400 if this.inner.check_shutdown(cx) {
401 this.is_terminated = true;
402 return std::task::Poll::Ready(None);
403 }
404 if this.is_terminated {
405 panic!("polled ProviderRequestStream after completion");
406 }
407 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
408 |bytes, handles| {
409 match this.inner.channel().read_etc(cx, bytes, handles) {
410 std::task::Poll::Ready(Ok(())) => {}
411 std::task::Poll::Pending => return std::task::Poll::Pending,
412 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
413 this.is_terminated = true;
414 return std::task::Poll::Ready(None);
415 }
416 std::task::Poll::Ready(Err(e)) => {
417 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
418 e.into(),
419 ))))
420 }
421 }
422
423 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
425
426 std::task::Poll::Ready(Some(match header.ordinal {
427 0xdfa6a591ab48fd1 => {
428 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
429 let mut req = fidl::new_empty!(
430 ProviderSocketRequest,
431 fidl::encoding::DefaultFuchsiaResourceDialect
432 );
433 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<ProviderSocketRequest>(&header, _body_bytes, handles, &mut req)?;
434 let control_handle = ProviderControlHandle { inner: this.inner.clone() };
435 Ok(ProviderRequest::Socket {
436 domain: req.domain,
437 proto: req.proto,
438
439 responder: ProviderSocketResponder {
440 control_handle: std::mem::ManuallyDrop::new(control_handle),
441 tx_id: header.tx_id,
442 },
443 })
444 }
445 0x34cd6e7e82c46f85 => {
446 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
447 let mut req = fidl::new_empty!(
448 ProviderSocketWithOptionsRequest,
449 fidl::encoding::DefaultFuchsiaResourceDialect
450 );
451 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<ProviderSocketWithOptionsRequest>(&header, _body_bytes, handles, &mut req)?;
452 let control_handle = ProviderControlHandle { inner: this.inner.clone() };
453 Ok(ProviderRequest::SocketWithOptions {
454 domain: req.domain,
455 proto: req.proto,
456 opts: req.opts,
457
458 responder: ProviderSocketWithOptionsResponder {
459 control_handle: std::mem::ManuallyDrop::new(control_handle),
460 tx_id: header.tx_id,
461 },
462 })
463 }
464 _ => Err(fidl::Error::UnknownOrdinal {
465 ordinal: header.ordinal,
466 protocol_name:
467 <ProviderMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
468 }),
469 }))
470 },
471 )
472 }
473}
474
475#[derive(Debug)]
477pub enum ProviderRequest {
478 Socket {
480 domain: fidl_fuchsia_posix_socket::Domain,
481 proto: ProtocolAssociation,
482 responder: ProviderSocketResponder,
483 },
484 SocketWithOptions {
486 domain: fidl_fuchsia_posix_socket::Domain,
487 proto: ProtocolAssociation,
488 opts: fidl_fuchsia_posix_socket::SocketCreationOptions,
489 responder: ProviderSocketWithOptionsResponder,
490 },
491}
492
493impl ProviderRequest {
494 #[allow(irrefutable_let_patterns)]
495 pub fn into_socket(
496 self,
497 ) -> Option<(fidl_fuchsia_posix_socket::Domain, ProtocolAssociation, ProviderSocketResponder)>
498 {
499 if let ProviderRequest::Socket { domain, proto, responder } = self {
500 Some((domain, proto, responder))
501 } else {
502 None
503 }
504 }
505
506 #[allow(irrefutable_let_patterns)]
507 pub fn into_socket_with_options(
508 self,
509 ) -> Option<(
510 fidl_fuchsia_posix_socket::Domain,
511 ProtocolAssociation,
512 fidl_fuchsia_posix_socket::SocketCreationOptions,
513 ProviderSocketWithOptionsResponder,
514 )> {
515 if let ProviderRequest::SocketWithOptions { domain, proto, opts, responder } = self {
516 Some((domain, proto, opts, responder))
517 } else {
518 None
519 }
520 }
521
522 pub fn method_name(&self) -> &'static str {
524 match *self {
525 ProviderRequest::Socket { .. } => "socket",
526 ProviderRequest::SocketWithOptions { .. } => "socket_with_options",
527 }
528 }
529}
530
531#[derive(Debug, Clone)]
532pub struct ProviderControlHandle {
533 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
534}
535
536impl fidl::endpoints::ControlHandle for ProviderControlHandle {
537 fn shutdown(&self) {
538 self.inner.shutdown()
539 }
540 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
541 self.inner.shutdown_with_epitaph(status)
542 }
543
544 fn is_closed(&self) -> bool {
545 self.inner.channel().is_closed()
546 }
547 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
548 self.inner.channel().on_closed()
549 }
550
551 #[cfg(target_os = "fuchsia")]
552 fn signal_peer(
553 &self,
554 clear_mask: zx::Signals,
555 set_mask: zx::Signals,
556 ) -> Result<(), zx_status::Status> {
557 use fidl::Peered;
558 self.inner.channel().signal_peer(clear_mask, set_mask)
559 }
560}
561
562impl ProviderControlHandle {}
563
564#[must_use = "FIDL methods require a response to be sent"]
565#[derive(Debug)]
566pub struct ProviderSocketResponder {
567 control_handle: std::mem::ManuallyDrop<ProviderControlHandle>,
568 tx_id: u32,
569}
570
571impl std::ops::Drop for ProviderSocketResponder {
575 fn drop(&mut self) {
576 self.control_handle.shutdown();
577 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
579 }
580}
581
582impl fidl::endpoints::Responder for ProviderSocketResponder {
583 type ControlHandle = ProviderControlHandle;
584
585 fn control_handle(&self) -> &ProviderControlHandle {
586 &self.control_handle
587 }
588
589 fn drop_without_shutdown(mut self) {
590 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
592 std::mem::forget(self);
594 }
595}
596
597impl ProviderSocketResponder {
598 pub fn send(
602 self,
603 mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
604 ) -> Result<(), fidl::Error> {
605 let _result = self.send_raw(result);
606 if _result.is_err() {
607 self.control_handle.shutdown();
608 }
609 self.drop_without_shutdown();
610 _result
611 }
612
613 pub fn send_no_shutdown_on_err(
615 self,
616 mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
617 ) -> Result<(), fidl::Error> {
618 let _result = self.send_raw(result);
619 self.drop_without_shutdown();
620 _result
621 }
622
623 fn send_raw(
624 &self,
625 mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
626 ) -> Result<(), fidl::Error> {
627 self.control_handle.inner.send::<fidl::encoding::ResultType<
628 ProviderSocketResponse,
629 fidl_fuchsia_posix::Errno,
630 >>(
631 result.map(|s| (s,)),
632 self.tx_id,
633 0xdfa6a591ab48fd1,
634 fidl::encoding::DynamicFlags::empty(),
635 )
636 }
637}
638
639#[must_use = "FIDL methods require a response to be sent"]
640#[derive(Debug)]
641pub struct ProviderSocketWithOptionsResponder {
642 control_handle: std::mem::ManuallyDrop<ProviderControlHandle>,
643 tx_id: u32,
644}
645
646impl std::ops::Drop for ProviderSocketWithOptionsResponder {
650 fn drop(&mut self) {
651 self.control_handle.shutdown();
652 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
654 }
655}
656
657impl fidl::endpoints::Responder for ProviderSocketWithOptionsResponder {
658 type ControlHandle = ProviderControlHandle;
659
660 fn control_handle(&self) -> &ProviderControlHandle {
661 &self.control_handle
662 }
663
664 fn drop_without_shutdown(mut self) {
665 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
667 std::mem::forget(self);
669 }
670}
671
672impl ProviderSocketWithOptionsResponder {
673 pub fn send(
677 self,
678 mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
679 ) -> Result<(), fidl::Error> {
680 let _result = self.send_raw(result);
681 if _result.is_err() {
682 self.control_handle.shutdown();
683 }
684 self.drop_without_shutdown();
685 _result
686 }
687
688 pub fn send_no_shutdown_on_err(
690 self,
691 mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
692 ) -> Result<(), fidl::Error> {
693 let _result = self.send_raw(result);
694 self.drop_without_shutdown();
695 _result
696 }
697
698 fn send_raw(
699 &self,
700 mut result: Result<fidl::endpoints::ClientEnd<SocketMarker>, fidl_fuchsia_posix::Errno>,
701 ) -> Result<(), fidl::Error> {
702 self.control_handle.inner.send::<fidl::encoding::ResultType<
703 ProviderSocketWithOptionsResponse,
704 fidl_fuchsia_posix::Errno,
705 >>(
706 result.map(|s| (s,)),
707 self.tx_id,
708 0x34cd6e7e82c46f85,
709 fidl::encoding::DynamicFlags::empty(),
710 )
711 }
712}
713
714#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
715pub struct SocketMarker;
716
717impl fidl::endpoints::ProtocolMarker for SocketMarker {
718 type Proxy = SocketProxy;
719 type RequestStream = SocketRequestStream;
720 #[cfg(target_os = "fuchsia")]
721 type SynchronousProxy = SocketSynchronousProxy;
722
723 const DEBUG_NAME: &'static str = "fuchsia.posix.socket.raw.Socket";
724}
725impl fidl::endpoints::DiscoverableProtocolMarker for SocketMarker {}
726pub type SocketRecvMsgResult = Result<
727 (
728 Option<Box<fidl_fuchsia_net::SocketAddress>>,
729 Vec<u8>,
730 fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
731 u32,
732 ),
733 fidl_fuchsia_posix::Errno,
734>;
735pub type SocketSendMsgResult = Result<(), fidl_fuchsia_posix::Errno>;
736pub type SocketGetInfoResult =
737 Result<(fidl_fuchsia_posix_socket::Domain, ProtocolAssociation), fidl_fuchsia_posix::Errno>;
738pub type SocketSetIpHeaderIncludedResult = Result<(), fidl_fuchsia_posix::Errno>;
739pub type SocketGetIpHeaderIncludedResult = Result<bool, fidl_fuchsia_posix::Errno>;
740pub type SocketSetIcmpv6FilterResult = Result<(), fidl_fuchsia_posix::Errno>;
741pub type SocketGetIcmpv6FilterResult = Result<Icmpv6Filter, fidl_fuchsia_posix::Errno>;
742pub type SocketSetIpv6ChecksumResult = Result<(), fidl_fuchsia_posix::Errno>;
743pub type SocketGetIpv6ChecksumResult = Result<Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>;
744
745pub trait SocketProxyInterface: Send + Sync {
746 fn r#clone(
747 &self,
748 request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
749 ) -> Result<(), fidl::Error>;
750 type CloseResponseFut: std::future::Future<
751 Output = Result<fidl_fuchsia_unknown::CloseableCloseResult, fidl::Error>,
752 > + Send;
753 fn r#close(&self) -> Self::CloseResponseFut;
754 type QueryResponseFut: std::future::Future<Output = Result<Vec<u8>, fidl::Error>> + Send;
755 fn r#query(&self) -> Self::QueryResponseFut;
756 type SetReuseAddressResponseFut: std::future::Future<
757 Output = Result<
758 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
759 fidl::Error,
760 >,
761 > + Send;
762 fn r#set_reuse_address(&self, value: bool) -> Self::SetReuseAddressResponseFut;
763 type GetReuseAddressResponseFut: std::future::Future<
764 Output = Result<
765 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
766 fidl::Error,
767 >,
768 > + Send;
769 fn r#get_reuse_address(&self) -> Self::GetReuseAddressResponseFut;
770 type GetErrorResponseFut: std::future::Future<
771 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetErrorResult, fidl::Error>,
772 > + Send;
773 fn r#get_error(&self) -> Self::GetErrorResponseFut;
774 type SetBroadcastResponseFut: std::future::Future<
775 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult, fidl::Error>,
776 > + Send;
777 fn r#set_broadcast(&self, value: bool) -> Self::SetBroadcastResponseFut;
778 type GetBroadcastResponseFut: std::future::Future<
779 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult, fidl::Error>,
780 > + Send;
781 fn r#get_broadcast(&self) -> Self::GetBroadcastResponseFut;
782 type SetSendBufferResponseFut: std::future::Future<
783 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult, fidl::Error>,
784 > + Send;
785 fn r#set_send_buffer(&self, value_bytes: u64) -> Self::SetSendBufferResponseFut;
786 type GetSendBufferResponseFut: std::future::Future<
787 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult, fidl::Error>,
788 > + Send;
789 fn r#get_send_buffer(&self) -> Self::GetSendBufferResponseFut;
790 type SetReceiveBufferResponseFut: std::future::Future<
791 Output = Result<
792 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
793 fidl::Error,
794 >,
795 > + Send;
796 fn r#set_receive_buffer(&self, value_bytes: u64) -> Self::SetReceiveBufferResponseFut;
797 type GetReceiveBufferResponseFut: std::future::Future<
798 Output = Result<
799 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
800 fidl::Error,
801 >,
802 > + Send;
803 fn r#get_receive_buffer(&self) -> Self::GetReceiveBufferResponseFut;
804 type SetKeepAliveResponseFut: std::future::Future<
805 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult, fidl::Error>,
806 > + Send;
807 fn r#set_keep_alive(&self, value: bool) -> Self::SetKeepAliveResponseFut;
808 type GetKeepAliveResponseFut: std::future::Future<
809 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult, fidl::Error>,
810 > + Send;
811 fn r#get_keep_alive(&self) -> Self::GetKeepAliveResponseFut;
812 type SetOutOfBandInlineResponseFut: std::future::Future<
813 Output = Result<
814 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
815 fidl::Error,
816 >,
817 > + Send;
818 fn r#set_out_of_band_inline(&self, value: bool) -> Self::SetOutOfBandInlineResponseFut;
819 type GetOutOfBandInlineResponseFut: std::future::Future<
820 Output = Result<
821 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
822 fidl::Error,
823 >,
824 > + Send;
825 fn r#get_out_of_band_inline(&self) -> Self::GetOutOfBandInlineResponseFut;
826 type SetNoCheckResponseFut: std::future::Future<
827 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult, fidl::Error>,
828 > + Send;
829 fn r#set_no_check(&self, value: bool) -> Self::SetNoCheckResponseFut;
830 type GetNoCheckResponseFut: std::future::Future<
831 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult, fidl::Error>,
832 > + Send;
833 fn r#get_no_check(&self) -> Self::GetNoCheckResponseFut;
834 type SetLingerResponseFut: std::future::Future<
835 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetLingerResult, fidl::Error>,
836 > + Send;
837 fn r#set_linger(&self, linger: bool, length_secs: u32) -> Self::SetLingerResponseFut;
838 type GetLingerResponseFut: std::future::Future<
839 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetLingerResult, fidl::Error>,
840 > + Send;
841 fn r#get_linger(&self) -> Self::GetLingerResponseFut;
842 type SetReusePortResponseFut: std::future::Future<
843 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult, fidl::Error>,
844 > + Send;
845 fn r#set_reuse_port(&self, value: bool) -> Self::SetReusePortResponseFut;
846 type GetReusePortResponseFut: std::future::Future<
847 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult, fidl::Error>,
848 > + Send;
849 fn r#get_reuse_port(&self) -> Self::GetReusePortResponseFut;
850 type GetAcceptConnResponseFut: std::future::Future<
851 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult, fidl::Error>,
852 > + Send;
853 fn r#get_accept_conn(&self) -> Self::GetAcceptConnResponseFut;
854 type SetBindToDeviceResponseFut: std::future::Future<
855 Output = Result<
856 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
857 fidl::Error,
858 >,
859 > + Send;
860 fn r#set_bind_to_device(&self, value: &str) -> Self::SetBindToDeviceResponseFut;
861 type GetBindToDeviceResponseFut: std::future::Future<
862 Output = Result<
863 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
864 fidl::Error,
865 >,
866 > + Send;
867 fn r#get_bind_to_device(&self) -> Self::GetBindToDeviceResponseFut;
868 type SetBindToInterfaceIndexResponseFut: std::future::Future<
869 Output = Result<
870 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
871 fidl::Error,
872 >,
873 > + Send;
874 fn r#set_bind_to_interface_index(&self, value: u64)
875 -> Self::SetBindToInterfaceIndexResponseFut;
876 type GetBindToInterfaceIndexResponseFut: std::future::Future<
877 Output = Result<
878 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
879 fidl::Error,
880 >,
881 > + Send;
882 fn r#get_bind_to_interface_index(&self) -> Self::GetBindToInterfaceIndexResponseFut;
883 type SetTimestampResponseFut: std::future::Future<
884 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult, fidl::Error>,
885 > + Send;
886 fn r#set_timestamp(
887 &self,
888 value: fidl_fuchsia_posix_socket::TimestampOption,
889 ) -> Self::SetTimestampResponseFut;
890 type GetTimestampResponseFut: std::future::Future<
891 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult, fidl::Error>,
892 > + Send;
893 fn r#get_timestamp(&self) -> Self::GetTimestampResponseFut;
894 type SetMarkResponseFut: std::future::Future<
895 Output = Result<fidl_fuchsia_posix_socket::BaseSocketSetMarkResult, fidl::Error>,
896 > + Send;
897 fn r#set_mark(
898 &self,
899 domain: fidl_fuchsia_net::MarkDomain,
900 mark: &fidl_fuchsia_posix_socket::OptionalUint32,
901 ) -> Self::SetMarkResponseFut;
902 type GetMarkResponseFut: std::future::Future<
903 Output = Result<fidl_fuchsia_posix_socket::BaseSocketGetMarkResult, fidl::Error>,
904 > + Send;
905 fn r#get_mark(&self, domain: fidl_fuchsia_net::MarkDomain) -> Self::GetMarkResponseFut;
906 type BindResponseFut: std::future::Future<
907 Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult, fidl::Error>,
908 > + Send;
909 fn r#bind(&self, addr: &fidl_fuchsia_net::SocketAddress) -> Self::BindResponseFut;
910 type ConnectResponseFut: std::future::Future<
911 Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult, fidl::Error>,
912 > + Send;
913 fn r#connect(&self, addr: &fidl_fuchsia_net::SocketAddress) -> Self::ConnectResponseFut;
914 type DisconnectResponseFut: std::future::Future<
915 Output = Result<
916 fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
917 fidl::Error,
918 >,
919 > + Send;
920 fn r#disconnect(&self) -> Self::DisconnectResponseFut;
921 type GetSockNameResponseFut: std::future::Future<
922 Output = Result<
923 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
924 fidl::Error,
925 >,
926 > + Send;
927 fn r#get_sock_name(&self) -> Self::GetSockNameResponseFut;
928 type GetPeerNameResponseFut: std::future::Future<
929 Output = Result<
930 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
931 fidl::Error,
932 >,
933 > + Send;
934 fn r#get_peer_name(&self) -> Self::GetPeerNameResponseFut;
935 type ShutdownResponseFut: std::future::Future<
936 Output = Result<
937 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
938 fidl::Error,
939 >,
940 > + Send;
941 fn r#shutdown(
942 &self,
943 mode: fidl_fuchsia_posix_socket::ShutdownMode,
944 ) -> Self::ShutdownResponseFut;
945 type SetIpTypeOfServiceResponseFut: std::future::Future<
946 Output = Result<
947 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
948 fidl::Error,
949 >,
950 > + Send;
951 fn r#set_ip_type_of_service(&self, value: u8) -> Self::SetIpTypeOfServiceResponseFut;
952 type GetIpTypeOfServiceResponseFut: std::future::Future<
953 Output = Result<
954 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
955 fidl::Error,
956 >,
957 > + Send;
958 fn r#get_ip_type_of_service(&self) -> Self::GetIpTypeOfServiceResponseFut;
959 type SetIpTtlResponseFut: std::future::Future<
960 Output = Result<
961 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
962 fidl::Error,
963 >,
964 > + Send;
965 fn r#set_ip_ttl(
966 &self,
967 value: &fidl_fuchsia_posix_socket::OptionalUint8,
968 ) -> Self::SetIpTtlResponseFut;
969 type GetIpTtlResponseFut: std::future::Future<
970 Output = Result<
971 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
972 fidl::Error,
973 >,
974 > + Send;
975 fn r#get_ip_ttl(&self) -> Self::GetIpTtlResponseFut;
976 type SetIpPacketInfoResponseFut: std::future::Future<
977 Output = Result<
978 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
979 fidl::Error,
980 >,
981 > + Send;
982 fn r#set_ip_packet_info(&self, value: bool) -> Self::SetIpPacketInfoResponseFut;
983 type GetIpPacketInfoResponseFut: std::future::Future<
984 Output = Result<
985 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
986 fidl::Error,
987 >,
988 > + Send;
989 fn r#get_ip_packet_info(&self) -> Self::GetIpPacketInfoResponseFut;
990 type SetIpReceiveTypeOfServiceResponseFut: std::future::Future<
991 Output = Result<
992 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
993 fidl::Error,
994 >,
995 > + Send;
996 fn r#set_ip_receive_type_of_service(
997 &self,
998 value: bool,
999 ) -> Self::SetIpReceiveTypeOfServiceResponseFut;
1000 type GetIpReceiveTypeOfServiceResponseFut: std::future::Future<
1001 Output = Result<
1002 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
1003 fidl::Error,
1004 >,
1005 > + Send;
1006 fn r#get_ip_receive_type_of_service(&self) -> Self::GetIpReceiveTypeOfServiceResponseFut;
1007 type SetIpReceiveTtlResponseFut: std::future::Future<
1008 Output = Result<
1009 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
1010 fidl::Error,
1011 >,
1012 > + Send;
1013 fn r#set_ip_receive_ttl(&self, value: bool) -> Self::SetIpReceiveTtlResponseFut;
1014 type GetIpReceiveTtlResponseFut: std::future::Future<
1015 Output = Result<
1016 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
1017 fidl::Error,
1018 >,
1019 > + Send;
1020 fn r#get_ip_receive_ttl(&self) -> Self::GetIpReceiveTtlResponseFut;
1021 type SetIpMulticastInterfaceResponseFut: std::future::Future<
1022 Output = Result<
1023 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
1024 fidl::Error,
1025 >,
1026 > + Send;
1027 fn r#set_ip_multicast_interface(
1028 &self,
1029 iface: u64,
1030 address: &fidl_fuchsia_net::Ipv4Address,
1031 ) -> Self::SetIpMulticastInterfaceResponseFut;
1032 type GetIpMulticastInterfaceResponseFut: std::future::Future<
1033 Output = Result<
1034 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
1035 fidl::Error,
1036 >,
1037 > + Send;
1038 fn r#get_ip_multicast_interface(&self) -> Self::GetIpMulticastInterfaceResponseFut;
1039 type SetIpMulticastTtlResponseFut: std::future::Future<
1040 Output = Result<
1041 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
1042 fidl::Error,
1043 >,
1044 > + Send;
1045 fn r#set_ip_multicast_ttl(
1046 &self,
1047 value: &fidl_fuchsia_posix_socket::OptionalUint8,
1048 ) -> Self::SetIpMulticastTtlResponseFut;
1049 type GetIpMulticastTtlResponseFut: std::future::Future<
1050 Output = Result<
1051 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
1052 fidl::Error,
1053 >,
1054 > + Send;
1055 fn r#get_ip_multicast_ttl(&self) -> Self::GetIpMulticastTtlResponseFut;
1056 type SetIpMulticastLoopbackResponseFut: std::future::Future<
1057 Output = Result<
1058 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
1059 fidl::Error,
1060 >,
1061 > + Send;
1062 fn r#set_ip_multicast_loopback(&self, value: bool) -> Self::SetIpMulticastLoopbackResponseFut;
1063 type GetIpMulticastLoopbackResponseFut: std::future::Future<
1064 Output = Result<
1065 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
1066 fidl::Error,
1067 >,
1068 > + Send;
1069 fn r#get_ip_multicast_loopback(&self) -> Self::GetIpMulticastLoopbackResponseFut;
1070 type AddIpMembershipResponseFut: std::future::Future<
1071 Output = Result<
1072 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
1073 fidl::Error,
1074 >,
1075 > + Send;
1076 fn r#add_ip_membership(
1077 &self,
1078 membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
1079 ) -> Self::AddIpMembershipResponseFut;
1080 type DropIpMembershipResponseFut: std::future::Future<
1081 Output = Result<
1082 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
1083 fidl::Error,
1084 >,
1085 > + Send;
1086 fn r#drop_ip_membership(
1087 &self,
1088 membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
1089 ) -> Self::DropIpMembershipResponseFut;
1090 type SetIpTransparentResponseFut: std::future::Future<
1091 Output = Result<
1092 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
1093 fidl::Error,
1094 >,
1095 > + Send;
1096 fn r#set_ip_transparent(&self, value: bool) -> Self::SetIpTransparentResponseFut;
1097 type GetIpTransparentResponseFut: std::future::Future<
1098 Output = Result<
1099 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
1100 fidl::Error,
1101 >,
1102 > + Send;
1103 fn r#get_ip_transparent(&self) -> Self::GetIpTransparentResponseFut;
1104 type SetIpReceiveOriginalDestinationAddressResponseFut: std::future::Future<Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult, fidl::Error>> + Send;
1105 fn r#set_ip_receive_original_destination_address(
1106 &self,
1107 value: bool,
1108 ) -> Self::SetIpReceiveOriginalDestinationAddressResponseFut;
1109 type GetIpReceiveOriginalDestinationAddressResponseFut: std::future::Future<Output = Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult, fidl::Error>> + Send;
1110 fn r#get_ip_receive_original_destination_address(
1111 &self,
1112 ) -> Self::GetIpReceiveOriginalDestinationAddressResponseFut;
1113 type AddIpv6MembershipResponseFut: std::future::Future<
1114 Output = Result<
1115 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
1116 fidl::Error,
1117 >,
1118 > + Send;
1119 fn r#add_ipv6_membership(
1120 &self,
1121 membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
1122 ) -> Self::AddIpv6MembershipResponseFut;
1123 type DropIpv6MembershipResponseFut: std::future::Future<
1124 Output = Result<
1125 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
1126 fidl::Error,
1127 >,
1128 > + Send;
1129 fn r#drop_ipv6_membership(
1130 &self,
1131 membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
1132 ) -> Self::DropIpv6MembershipResponseFut;
1133 type SetIpv6MulticastInterfaceResponseFut: std::future::Future<
1134 Output = Result<
1135 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
1136 fidl::Error,
1137 >,
1138 > + Send;
1139 fn r#set_ipv6_multicast_interface(
1140 &self,
1141 value: u64,
1142 ) -> Self::SetIpv6MulticastInterfaceResponseFut;
1143 type GetIpv6MulticastInterfaceResponseFut: std::future::Future<
1144 Output = Result<
1145 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
1146 fidl::Error,
1147 >,
1148 > + Send;
1149 fn r#get_ipv6_multicast_interface(&self) -> Self::GetIpv6MulticastInterfaceResponseFut;
1150 type SetIpv6UnicastHopsResponseFut: std::future::Future<
1151 Output = Result<
1152 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
1153 fidl::Error,
1154 >,
1155 > + Send;
1156 fn r#set_ipv6_unicast_hops(
1157 &self,
1158 value: &fidl_fuchsia_posix_socket::OptionalUint8,
1159 ) -> Self::SetIpv6UnicastHopsResponseFut;
1160 type GetIpv6UnicastHopsResponseFut: std::future::Future<
1161 Output = Result<
1162 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
1163 fidl::Error,
1164 >,
1165 > + Send;
1166 fn r#get_ipv6_unicast_hops(&self) -> Self::GetIpv6UnicastHopsResponseFut;
1167 type SetIpv6ReceiveHopLimitResponseFut: std::future::Future<
1168 Output = Result<
1169 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
1170 fidl::Error,
1171 >,
1172 > + Send;
1173 fn r#set_ipv6_receive_hop_limit(&self, value: bool) -> Self::SetIpv6ReceiveHopLimitResponseFut;
1174 type GetIpv6ReceiveHopLimitResponseFut: std::future::Future<
1175 Output = Result<
1176 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
1177 fidl::Error,
1178 >,
1179 > + Send;
1180 fn r#get_ipv6_receive_hop_limit(&self) -> Self::GetIpv6ReceiveHopLimitResponseFut;
1181 type SetIpv6MulticastHopsResponseFut: std::future::Future<
1182 Output = Result<
1183 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
1184 fidl::Error,
1185 >,
1186 > + Send;
1187 fn r#set_ipv6_multicast_hops(
1188 &self,
1189 value: &fidl_fuchsia_posix_socket::OptionalUint8,
1190 ) -> Self::SetIpv6MulticastHopsResponseFut;
1191 type GetIpv6MulticastHopsResponseFut: std::future::Future<
1192 Output = Result<
1193 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
1194 fidl::Error,
1195 >,
1196 > + Send;
1197 fn r#get_ipv6_multicast_hops(&self) -> Self::GetIpv6MulticastHopsResponseFut;
1198 type SetIpv6MulticastLoopbackResponseFut: std::future::Future<
1199 Output = Result<
1200 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
1201 fidl::Error,
1202 >,
1203 > + Send;
1204 fn r#set_ipv6_multicast_loopback(
1205 &self,
1206 value: bool,
1207 ) -> Self::SetIpv6MulticastLoopbackResponseFut;
1208 type GetIpv6MulticastLoopbackResponseFut: std::future::Future<
1209 Output = Result<
1210 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
1211 fidl::Error,
1212 >,
1213 > + Send;
1214 fn r#get_ipv6_multicast_loopback(&self) -> Self::GetIpv6MulticastLoopbackResponseFut;
1215 type SetIpv6OnlyResponseFut: std::future::Future<
1216 Output = Result<
1217 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
1218 fidl::Error,
1219 >,
1220 > + Send;
1221 fn r#set_ipv6_only(&self, value: bool) -> Self::SetIpv6OnlyResponseFut;
1222 type GetIpv6OnlyResponseFut: std::future::Future<
1223 Output = Result<
1224 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
1225 fidl::Error,
1226 >,
1227 > + Send;
1228 fn r#get_ipv6_only(&self) -> Self::GetIpv6OnlyResponseFut;
1229 type SetIpv6ReceiveTrafficClassResponseFut: std::future::Future<
1230 Output = Result<
1231 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
1232 fidl::Error,
1233 >,
1234 > + Send;
1235 fn r#set_ipv6_receive_traffic_class(
1236 &self,
1237 value: bool,
1238 ) -> Self::SetIpv6ReceiveTrafficClassResponseFut;
1239 type GetIpv6ReceiveTrafficClassResponseFut: std::future::Future<
1240 Output = Result<
1241 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
1242 fidl::Error,
1243 >,
1244 > + Send;
1245 fn r#get_ipv6_receive_traffic_class(&self) -> Self::GetIpv6ReceiveTrafficClassResponseFut;
1246 type SetIpv6TrafficClassResponseFut: std::future::Future<
1247 Output = Result<
1248 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
1249 fidl::Error,
1250 >,
1251 > + Send;
1252 fn r#set_ipv6_traffic_class(
1253 &self,
1254 value: &fidl_fuchsia_posix_socket::OptionalUint8,
1255 ) -> Self::SetIpv6TrafficClassResponseFut;
1256 type GetIpv6TrafficClassResponseFut: std::future::Future<
1257 Output = Result<
1258 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
1259 fidl::Error,
1260 >,
1261 > + Send;
1262 fn r#get_ipv6_traffic_class(&self) -> Self::GetIpv6TrafficClassResponseFut;
1263 type SetIpv6ReceivePacketInfoResponseFut: std::future::Future<
1264 Output = Result<
1265 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
1266 fidl::Error,
1267 >,
1268 > + Send;
1269 fn r#set_ipv6_receive_packet_info(
1270 &self,
1271 value: bool,
1272 ) -> Self::SetIpv6ReceivePacketInfoResponseFut;
1273 type GetIpv6ReceivePacketInfoResponseFut: std::future::Future<
1274 Output = Result<
1275 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
1276 fidl::Error,
1277 >,
1278 > + Send;
1279 fn r#get_ipv6_receive_packet_info(&self) -> Self::GetIpv6ReceivePacketInfoResponseFut;
1280 type GetOriginalDestinationResponseFut: std::future::Future<
1281 Output = Result<
1282 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
1283 fidl::Error,
1284 >,
1285 > + Send;
1286 fn r#get_original_destination(&self) -> Self::GetOriginalDestinationResponseFut;
1287 type DescribeResponseFut: std::future::Future<Output = Result<SocketDescribeResponse, fidl::Error>>
1288 + Send;
1289 fn r#describe(&self) -> Self::DescribeResponseFut;
1290 type RecvMsgResponseFut: std::future::Future<Output = Result<SocketRecvMsgResult, fidl::Error>>
1291 + Send;
1292 fn r#recv_msg(
1293 &self,
1294 want_addr: bool,
1295 data_len: u32,
1296 want_control: bool,
1297 flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
1298 ) -> Self::RecvMsgResponseFut;
1299 type SendMsgResponseFut: std::future::Future<Output = Result<SocketSendMsgResult, fidl::Error>>
1300 + Send;
1301 fn r#send_msg(
1302 &self,
1303 addr: Option<&fidl_fuchsia_net::SocketAddress>,
1304 data: &[u8],
1305 control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
1306 flags: fidl_fuchsia_posix_socket::SendMsgFlags,
1307 ) -> Self::SendMsgResponseFut;
1308 type GetInfoResponseFut: std::future::Future<Output = Result<SocketGetInfoResult, fidl::Error>>
1309 + Send;
1310 fn r#get_info(&self) -> Self::GetInfoResponseFut;
1311 type SetIpHeaderIncludedResponseFut: std::future::Future<Output = Result<SocketSetIpHeaderIncludedResult, fidl::Error>>
1312 + Send;
1313 fn r#set_ip_header_included(&self, value: bool) -> Self::SetIpHeaderIncludedResponseFut;
1314 type GetIpHeaderIncludedResponseFut: std::future::Future<Output = Result<SocketGetIpHeaderIncludedResult, fidl::Error>>
1315 + Send;
1316 fn r#get_ip_header_included(&self) -> Self::GetIpHeaderIncludedResponseFut;
1317 type SetIcmpv6FilterResponseFut: std::future::Future<Output = Result<SocketSetIcmpv6FilterResult, fidl::Error>>
1318 + Send;
1319 fn r#set_icmpv6_filter(&self, filter: &Icmpv6Filter) -> Self::SetIcmpv6FilterResponseFut;
1320 type GetIcmpv6FilterResponseFut: std::future::Future<Output = Result<SocketGetIcmpv6FilterResult, fidl::Error>>
1321 + Send;
1322 fn r#get_icmpv6_filter(&self) -> Self::GetIcmpv6FilterResponseFut;
1323 type SetIpv6ChecksumResponseFut: std::future::Future<Output = Result<SocketSetIpv6ChecksumResult, fidl::Error>>
1324 + Send;
1325 fn r#set_ipv6_checksum(
1326 &self,
1327 config: &Ipv6ChecksumConfiguration,
1328 ) -> Self::SetIpv6ChecksumResponseFut;
1329 type GetIpv6ChecksumResponseFut: std::future::Future<Output = Result<SocketGetIpv6ChecksumResult, fidl::Error>>
1330 + Send;
1331 fn r#get_ipv6_checksum(&self) -> Self::GetIpv6ChecksumResponseFut;
1332}
1333#[derive(Debug)]
1334#[cfg(target_os = "fuchsia")]
1335pub struct SocketSynchronousProxy {
1336 client: fidl::client::sync::Client,
1337}
1338
1339#[cfg(target_os = "fuchsia")]
1340impl fidl::endpoints::SynchronousProxy for SocketSynchronousProxy {
1341 type Proxy = SocketProxy;
1342 type Protocol = SocketMarker;
1343
1344 fn from_channel(inner: fidl::Channel) -> Self {
1345 Self::new(inner)
1346 }
1347
1348 fn into_channel(self) -> fidl::Channel {
1349 self.client.into_channel()
1350 }
1351
1352 fn as_channel(&self) -> &fidl::Channel {
1353 self.client.as_channel()
1354 }
1355}
1356
1357#[cfg(target_os = "fuchsia")]
1358impl SocketSynchronousProxy {
1359 pub fn new(channel: fidl::Channel) -> Self {
1360 let protocol_name = <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
1361 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
1362 }
1363
1364 pub fn into_channel(self) -> fidl::Channel {
1365 self.client.into_channel()
1366 }
1367
1368 pub fn wait_for_event(
1371 &self,
1372 deadline: zx::MonotonicInstant,
1373 ) -> Result<SocketEvent, fidl::Error> {
1374 SocketEvent::decode(self.client.wait_for_event(deadline)?)
1375 }
1376
1377 pub fn r#clone(
1378 &self,
1379 mut request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
1380 ) -> Result<(), fidl::Error> {
1381 self.client.send::<fidl_fuchsia_unknown::CloneableCloneRequest>(
1382 (request,),
1383 0x20d8a7aba2168a79,
1384 fidl::encoding::DynamicFlags::empty(),
1385 )
1386 }
1387
1388 pub fn r#close(
1399 &self,
1400 ___deadline: zx::MonotonicInstant,
1401 ) -> Result<fidl_fuchsia_unknown::CloseableCloseResult, fidl::Error> {
1402 let _response = self.client.send_query::<
1403 fidl::encoding::EmptyPayload,
1404 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
1405 >(
1406 (),
1407 0x5ac5d459ad7f657e,
1408 fidl::encoding::DynamicFlags::empty(),
1409 ___deadline,
1410 )?;
1411 Ok(_response.map(|x| x))
1412 }
1413
1414 pub fn r#query(&self, ___deadline: zx::MonotonicInstant) -> Result<Vec<u8>, fidl::Error> {
1415 let _response = self.client.send_query::<
1416 fidl::encoding::EmptyPayload,
1417 fidl_fuchsia_unknown::QueryableQueryResponse,
1418 >(
1419 (),
1420 0x2658edee9decfc06,
1421 fidl::encoding::DynamicFlags::empty(),
1422 ___deadline,
1423 )?;
1424 Ok(_response.protocol)
1425 }
1426
1427 pub fn r#set_reuse_address(
1429 &self,
1430 mut value: bool,
1431 ___deadline: zx::MonotonicInstant,
1432 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult, fidl::Error> {
1433 let _response = self.client.send_query::<
1434 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest,
1435 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1436 >(
1437 (value,),
1438 0x1fd74ee8b9a4a876,
1439 fidl::encoding::DynamicFlags::empty(),
1440 ___deadline,
1441 )?;
1442 Ok(_response.map(|x| x))
1443 }
1444
1445 pub fn r#get_reuse_address(
1447 &self,
1448 ___deadline: zx::MonotonicInstant,
1449 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult, fidl::Error> {
1450 let _response = self
1451 .client
1452 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1453 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResponse,
1454 fidl_fuchsia_posix::Errno,
1455 >>(
1456 (), 0x67b7206b8d1bc0a5, fidl::encoding::DynamicFlags::empty(), ___deadline
1457 )?;
1458 Ok(_response.map(|x| x.value))
1459 }
1460
1461 pub fn r#get_error(
1464 &self,
1465 ___deadline: zx::MonotonicInstant,
1466 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetErrorResult, fidl::Error> {
1467 let _response =
1468 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1469 fidl::encoding::EmptyStruct,
1470 fidl_fuchsia_posix::Errno,
1471 >>(
1472 (),
1473 0x5aad39b33e5f6ebb,
1474 fidl::encoding::DynamicFlags::empty(),
1475 ___deadline,
1476 )?;
1477 Ok(_response.map(|x| x))
1478 }
1479
1480 pub fn r#set_broadcast(
1482 &self,
1483 mut value: bool,
1484 ___deadline: zx::MonotonicInstant,
1485 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult, fidl::Error> {
1486 let _response = self.client.send_query::<
1487 fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest,
1488 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1489 >(
1490 (value,),
1491 0x6023e081ce3cd947,
1492 fidl::encoding::DynamicFlags::empty(),
1493 ___deadline,
1494 )?;
1495 Ok(_response.map(|x| x))
1496 }
1497
1498 pub fn r#get_broadcast(
1500 &self,
1501 ___deadline: zx::MonotonicInstant,
1502 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult, fidl::Error> {
1503 let _response = self
1504 .client
1505 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1506 fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResponse,
1507 fidl_fuchsia_posix::Errno,
1508 >>(
1509 (), 0x68796fc556f9780d, fidl::encoding::DynamicFlags::empty(), ___deadline
1510 )?;
1511 Ok(_response.map(|x| x.value))
1512 }
1513
1514 pub fn r#set_send_buffer(
1516 &self,
1517 mut value_bytes: u64,
1518 ___deadline: zx::MonotonicInstant,
1519 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult, fidl::Error> {
1520 let _response = self.client.send_query::<
1521 fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest,
1522 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1523 >(
1524 (value_bytes,),
1525 0x756eac32d73a7a70,
1526 fidl::encoding::DynamicFlags::empty(),
1527 ___deadline,
1528 )?;
1529 Ok(_response.map(|x| x))
1530 }
1531
1532 pub fn r#get_send_buffer(
1534 &self,
1535 ___deadline: zx::MonotonicInstant,
1536 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult, fidl::Error> {
1537 let _response = self
1538 .client
1539 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1540 fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResponse,
1541 fidl_fuchsia_posix::Errno,
1542 >>(
1543 (), 0x78a52fd9c7b2410b, fidl::encoding::DynamicFlags::empty(), ___deadline
1544 )?;
1545 Ok(_response.map(|x| x.value_bytes))
1546 }
1547
1548 pub fn r#set_receive_buffer(
1550 &self,
1551 mut value_bytes: u64,
1552 ___deadline: zx::MonotonicInstant,
1553 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult, fidl::Error> {
1554 let _response = self.client.send_query::<
1555 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest,
1556 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1557 >(
1558 (value_bytes,),
1559 0x6b0cf2f1919c7001,
1560 fidl::encoding::DynamicFlags::empty(),
1561 ___deadline,
1562 )?;
1563 Ok(_response.map(|x| x))
1564 }
1565
1566 pub fn r#get_receive_buffer(
1568 &self,
1569 ___deadline: zx::MonotonicInstant,
1570 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult, fidl::Error> {
1571 let _response = self
1572 .client
1573 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1574 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResponse,
1575 fidl_fuchsia_posix::Errno,
1576 >>(
1577 (), 0x14c1a4b64f709e5c, fidl::encoding::DynamicFlags::empty(), ___deadline
1578 )?;
1579 Ok(_response.map(|x| x.value_bytes))
1580 }
1581
1582 pub fn r#set_keep_alive(
1584 &self,
1585 mut value: bool,
1586 ___deadline: zx::MonotonicInstant,
1587 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult, fidl::Error> {
1588 let _response = self.client.send_query::<
1589 fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest,
1590 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1591 >(
1592 (value,),
1593 0x572df8f0b920d2c7,
1594 fidl::encoding::DynamicFlags::empty(),
1595 ___deadline,
1596 )?;
1597 Ok(_response.map(|x| x))
1598 }
1599
1600 pub fn r#get_keep_alive(
1602 &self,
1603 ___deadline: zx::MonotonicInstant,
1604 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult, fidl::Error> {
1605 let _response = self
1606 .client
1607 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1608 fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResponse,
1609 fidl_fuchsia_posix::Errno,
1610 >>(
1611 (), 0x2dd29d3215f2c9d2, fidl::encoding::DynamicFlags::empty(), ___deadline
1612 )?;
1613 Ok(_response.map(|x| x.value))
1614 }
1615
1616 pub fn r#set_out_of_band_inline(
1618 &self,
1619 mut value: bool,
1620 ___deadline: zx::MonotonicInstant,
1621 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult, fidl::Error> {
1622 let _response = self.client.send_query::<
1623 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest,
1624 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1625 >(
1626 (value,),
1627 0x3ecb49968bee439,
1628 fidl::encoding::DynamicFlags::empty(),
1629 ___deadline,
1630 )?;
1631 Ok(_response.map(|x| x))
1632 }
1633
1634 pub fn r#get_out_of_band_inline(
1636 &self,
1637 ___deadline: zx::MonotonicInstant,
1638 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult, fidl::Error> {
1639 let _response = self
1640 .client
1641 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1642 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResponse,
1643 fidl_fuchsia_posix::Errno,
1644 >>(
1645 (), 0x348c1ab3aeca1745, fidl::encoding::DynamicFlags::empty(), ___deadline
1646 )?;
1647 Ok(_response.map(|x| x.value))
1648 }
1649
1650 pub fn r#set_no_check(
1652 &self,
1653 mut value: bool,
1654 ___deadline: zx::MonotonicInstant,
1655 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult, fidl::Error> {
1656 let _response = self.client.send_query::<
1657 fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest,
1658 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1659 >(
1660 (value,),
1661 0x6bbf00c53a4c78c2,
1662 fidl::encoding::DynamicFlags::empty(),
1663 ___deadline,
1664 )?;
1665 Ok(_response.map(|x| x))
1666 }
1667
1668 pub fn r#get_no_check(
1670 &self,
1671 ___deadline: zx::MonotonicInstant,
1672 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult, fidl::Error> {
1673 let _response = self
1674 .client
1675 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1676 fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResponse,
1677 fidl_fuchsia_posix::Errno,
1678 >>(
1679 (), 0x2cd4249286417694, fidl::encoding::DynamicFlags::empty(), ___deadline
1680 )?;
1681 Ok(_response.map(|x| x.value))
1682 }
1683
1684 pub fn r#set_linger(
1686 &self,
1687 mut linger: bool,
1688 mut length_secs: u32,
1689 ___deadline: zx::MonotonicInstant,
1690 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetLingerResult, fidl::Error> {
1691 let _response = self.client.send_query::<
1692 fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest,
1693 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1694 >(
1695 (linger, length_secs,),
1696 0x45386351246e998e,
1697 fidl::encoding::DynamicFlags::empty(),
1698 ___deadline,
1699 )?;
1700 Ok(_response.map(|x| x))
1701 }
1702
1703 pub fn r#get_linger(
1705 &self,
1706 ___deadline: zx::MonotonicInstant,
1707 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetLingerResult, fidl::Error> {
1708 let _response = self
1709 .client
1710 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1711 fidl_fuchsia_posix_socket::BaseSocketGetLingerResponse,
1712 fidl_fuchsia_posix::Errno,
1713 >>(
1714 (), 0x48eb20fc5ccb0e45, fidl::encoding::DynamicFlags::empty(), ___deadline
1715 )?;
1716 Ok(_response.map(|x| (x.linger, x.length_secs)))
1717 }
1718
1719 pub fn r#set_reuse_port(
1721 &self,
1722 mut value: bool,
1723 ___deadline: zx::MonotonicInstant,
1724 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult, fidl::Error> {
1725 let _response = self.client.send_query::<
1726 fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest,
1727 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1728 >(
1729 (value,),
1730 0x24dd3e5cb36d9ccb,
1731 fidl::encoding::DynamicFlags::empty(),
1732 ___deadline,
1733 )?;
1734 Ok(_response.map(|x| x))
1735 }
1736
1737 pub fn r#get_reuse_port(
1739 &self,
1740 ___deadline: zx::MonotonicInstant,
1741 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult, fidl::Error> {
1742 let _response = self
1743 .client
1744 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1745 fidl_fuchsia_posix_socket::BaseSocketGetReusePortResponse,
1746 fidl_fuchsia_posix::Errno,
1747 >>(
1748 (), 0x7a112c1ab54ff828, fidl::encoding::DynamicFlags::empty(), ___deadline
1749 )?;
1750 Ok(_response.map(|x| x.value))
1751 }
1752
1753 pub fn r#get_accept_conn(
1755 &self,
1756 ___deadline: zx::MonotonicInstant,
1757 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult, fidl::Error> {
1758 let _response = self
1759 .client
1760 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1761 fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResponse,
1762 fidl_fuchsia_posix::Errno,
1763 >>(
1764 (), 0x67ce6db6c2ec8966, fidl::encoding::DynamicFlags::empty(), ___deadline
1765 )?;
1766 Ok(_response.map(|x| x.value))
1767 }
1768
1769 pub fn r#set_bind_to_device(
1771 &self,
1772 mut value: &str,
1773 ___deadline: zx::MonotonicInstant,
1774 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult, fidl::Error> {
1775 let _response = self.client.send_query::<
1776 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest,
1777 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1778 >(
1779 (value,),
1780 0x2118b483f28aafc4,
1781 fidl::encoding::DynamicFlags::empty(),
1782 ___deadline,
1783 )?;
1784 Ok(_response.map(|x| x))
1785 }
1786
1787 pub fn r#get_bind_to_device(
1789 &self,
1790 ___deadline: zx::MonotonicInstant,
1791 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult, fidl::Error> {
1792 let _response = self
1793 .client
1794 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1795 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResponse,
1796 fidl_fuchsia_posix::Errno,
1797 >>(
1798 (), 0x1ab1fbf0ef7906c8, fidl::encoding::DynamicFlags::empty(), ___deadline
1799 )?;
1800 Ok(_response.map(|x| x.value))
1801 }
1802
1803 pub fn r#set_bind_to_interface_index(
1806 &self,
1807 mut value: u64,
1808 ___deadline: zx::MonotonicInstant,
1809 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult, fidl::Error>
1810 {
1811 let _response = self.client.send_query::<
1812 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest,
1813 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1814 >(
1815 (value,),
1816 0x6e387a0def00821,
1817 fidl::encoding::DynamicFlags::empty(),
1818 ___deadline,
1819 )?;
1820 Ok(_response.map(|x| x))
1821 }
1822
1823 pub fn r#get_bind_to_interface_index(
1825 &self,
1826 ___deadline: zx::MonotonicInstant,
1827 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult, fidl::Error>
1828 {
1829 let _response = self
1830 .client
1831 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1832 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResponse,
1833 fidl_fuchsia_posix::Errno,
1834 >>(
1835 (), 0x59c31dd3e3078295, fidl::encoding::DynamicFlags::empty(), ___deadline
1836 )?;
1837 Ok(_response.map(|x| x.value))
1838 }
1839
1840 pub fn r#set_timestamp(
1842 &self,
1843 mut value: fidl_fuchsia_posix_socket::TimestampOption,
1844 ___deadline: zx::MonotonicInstant,
1845 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult, fidl::Error> {
1846 let _response = self.client.send_query::<
1847 fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest,
1848 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1849 >(
1850 (value,),
1851 0x285d6516c263d839,
1852 fidl::encoding::DynamicFlags::empty(),
1853 ___deadline,
1854 )?;
1855 Ok(_response.map(|x| x))
1856 }
1857
1858 pub fn r#get_timestamp(
1860 &self,
1861 ___deadline: zx::MonotonicInstant,
1862 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult, fidl::Error> {
1863 let _response = self
1864 .client
1865 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1866 fidl_fuchsia_posix_socket::BaseSocketGetTimestampResponse,
1867 fidl_fuchsia_posix::Errno,
1868 >>(
1869 (), 0x49f2fffbbcc2bd27, fidl::encoding::DynamicFlags::empty(), ___deadline
1870 )?;
1871 Ok(_response.map(|x| x.value))
1872 }
1873
1874 pub fn r#set_mark(
1878 &self,
1879 mut domain: fidl_fuchsia_net::MarkDomain,
1880 mut mark: &fidl_fuchsia_posix_socket::OptionalUint32,
1881 ___deadline: zx::MonotonicInstant,
1882 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetMarkResult, fidl::Error> {
1883 let _response = self.client.send_query::<
1884 fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest,
1885 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1886 >(
1887 (domain, mark,),
1888 0x6ead6de09f653236,
1889 fidl::encoding::DynamicFlags::empty(),
1890 ___deadline,
1891 )?;
1892 Ok(_response.map(|x| x))
1893 }
1894
1895 pub fn r#get_mark(
1899 &self,
1900 mut domain: fidl_fuchsia_net::MarkDomain,
1901 ___deadline: zx::MonotonicInstant,
1902 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetMarkResult, fidl::Error> {
1903 let _response = self.client.send_query::<
1904 fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest,
1905 fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseSocketGetMarkResponse, fidl_fuchsia_posix::Errno>,
1906 >(
1907 (domain,),
1908 0x57a2752c61d93d47,
1909 fidl::encoding::DynamicFlags::empty(),
1910 ___deadline,
1911 )?;
1912 Ok(_response.map(|x| x.mark))
1913 }
1914
1915 pub fn r#bind(
1917 &self,
1918 mut addr: &fidl_fuchsia_net::SocketAddress,
1919 ___deadline: zx::MonotonicInstant,
1920 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult, fidl::Error> {
1921 let _response = self.client.send_query::<
1922 fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest,
1923 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1924 >(
1925 (addr,),
1926 0x4bc6400ae92125d,
1927 fidl::encoding::DynamicFlags::empty(),
1928 ___deadline,
1929 )?;
1930 Ok(_response.map(|x| x))
1931 }
1932
1933 pub fn r#connect(
1935 &self,
1936 mut addr: &fidl_fuchsia_net::SocketAddress,
1937 ___deadline: zx::MonotonicInstant,
1938 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult, fidl::Error> {
1939 let _response = self.client.send_query::<
1940 fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest,
1941 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
1942 >(
1943 (addr,),
1944 0x5f05f19bfdd38871,
1945 fidl::encoding::DynamicFlags::empty(),
1946 ___deadline,
1947 )?;
1948 Ok(_response.map(|x| x))
1949 }
1950
1951 pub fn r#disconnect(
1953 &self,
1954 ___deadline: zx::MonotonicInstant,
1955 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult, fidl::Error> {
1956 let _response =
1957 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1958 fidl::encoding::EmptyStruct,
1959 fidl_fuchsia_posix::Errno,
1960 >>(
1961 (),
1962 0x74e63b91f7b29b2,
1963 fidl::encoding::DynamicFlags::empty(),
1964 ___deadline,
1965 )?;
1966 Ok(_response.map(|x| x))
1967 }
1968
1969 pub fn r#get_sock_name(
1971 &self,
1972 ___deadline: zx::MonotonicInstant,
1973 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult, fidl::Error> {
1974 let _response = self
1975 .client
1976 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1977 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResponse,
1978 fidl_fuchsia_posix::Errno,
1979 >>(
1980 (), 0x475f23f84a1a4f85, fidl::encoding::DynamicFlags::empty(), ___deadline
1981 )?;
1982 Ok(_response.map(|x| x.addr))
1983 }
1984
1985 pub fn r#get_peer_name(
1987 &self,
1988 ___deadline: zx::MonotonicInstant,
1989 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult, fidl::Error> {
1990 let _response = self
1991 .client
1992 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
1993 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResponse,
1994 fidl_fuchsia_posix::Errno,
1995 >>(
1996 (), 0x1ffecf4bd5b6432e, fidl::encoding::DynamicFlags::empty(), ___deadline
1997 )?;
1998 Ok(_response.map(|x| x.addr))
1999 }
2000
2001 pub fn r#shutdown(
2003 &self,
2004 mut mode: fidl_fuchsia_posix_socket::ShutdownMode,
2005 ___deadline: zx::MonotonicInstant,
2006 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult, fidl::Error> {
2007 let _response = self.client.send_query::<
2008 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest,
2009 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2010 >(
2011 (mode,),
2012 0x247f38b6db68c336,
2013 fidl::encoding::DynamicFlags::empty(),
2014 ___deadline,
2015 )?;
2016 Ok(_response.map(|x| x))
2017 }
2018
2019 pub fn r#set_ip_type_of_service(
2021 &self,
2022 mut value: u8,
2023 ___deadline: zx::MonotonicInstant,
2024 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult, fidl::Error>
2025 {
2026 let _response = self.client.send_query::<
2027 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest,
2028 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2029 >(
2030 (value,),
2031 0x995c600475b6d46,
2032 fidl::encoding::DynamicFlags::empty(),
2033 ___deadline,
2034 )?;
2035 Ok(_response.map(|x| x))
2036 }
2037
2038 pub fn r#get_ip_type_of_service(
2040 &self,
2041 ___deadline: zx::MonotonicInstant,
2042 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult, fidl::Error>
2043 {
2044 let _response = self
2045 .client
2046 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2047 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResponse,
2048 fidl_fuchsia_posix::Errno,
2049 >>(
2050 (), 0x3814a04259f75fcb, fidl::encoding::DynamicFlags::empty(), ___deadline
2051 )?;
2052 Ok(_response.map(|x| x.value))
2053 }
2054
2055 pub fn r#set_ip_ttl(
2057 &self,
2058 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
2059 ___deadline: zx::MonotonicInstant,
2060 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult, fidl::Error> {
2061 let _response = self.client.send_query::<
2062 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest,
2063 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2064 >(
2065 (value,),
2066 0x29e2424b433ae1ef,
2067 fidl::encoding::DynamicFlags::empty(),
2068 ___deadline,
2069 )?;
2070 Ok(_response.map(|x| x))
2071 }
2072
2073 pub fn r#get_ip_ttl(
2075 &self,
2076 ___deadline: zx::MonotonicInstant,
2077 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult, fidl::Error> {
2078 let _response = self
2079 .client
2080 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2081 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResponse,
2082 fidl_fuchsia_posix::Errno,
2083 >>(
2084 (), 0x47e47fa1f24da471, fidl::encoding::DynamicFlags::empty(), ___deadline
2085 )?;
2086 Ok(_response.map(|x| x.value))
2087 }
2088
2089 pub fn r#set_ip_packet_info(
2091 &self,
2092 mut value: bool,
2093 ___deadline: zx::MonotonicInstant,
2094 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult, fidl::Error>
2095 {
2096 let _response = self.client.send_query::<
2097 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest,
2098 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2099 >(
2100 (value,),
2101 0x392d16bee20c0e16,
2102 fidl::encoding::DynamicFlags::empty(),
2103 ___deadline,
2104 )?;
2105 Ok(_response.map(|x| x))
2106 }
2107
2108 pub fn r#get_ip_packet_info(
2110 &self,
2111 ___deadline: zx::MonotonicInstant,
2112 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult, fidl::Error>
2113 {
2114 let _response = self
2115 .client
2116 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2117 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResponse,
2118 fidl_fuchsia_posix::Errno,
2119 >>(
2120 (), 0x54b505f242280740, fidl::encoding::DynamicFlags::empty(), ___deadline
2121 )?;
2122 Ok(_response.map(|x| x.value))
2123 }
2124
2125 pub fn r#set_ip_receive_type_of_service(
2127 &self,
2128 mut value: bool,
2129 ___deadline: zx::MonotonicInstant,
2130 ) -> Result<
2131 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
2132 fidl::Error,
2133 > {
2134 let _response = self.client.send_query::<
2135 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest,
2136 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2137 >(
2138 (value,),
2139 0x6c4f6714995f84ef,
2140 fidl::encoding::DynamicFlags::empty(),
2141 ___deadline,
2142 )?;
2143 Ok(_response.map(|x| x))
2144 }
2145
2146 pub fn r#get_ip_receive_type_of_service(
2148 &self,
2149 ___deadline: zx::MonotonicInstant,
2150 ) -> Result<
2151 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
2152 fidl::Error,
2153 > {
2154 let _response = self
2155 .client
2156 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2157 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResponse,
2158 fidl_fuchsia_posix::Errno,
2159 >>(
2160 (), 0x4158ba7dc2795960, fidl::encoding::DynamicFlags::empty(), ___deadline
2161 )?;
2162 Ok(_response.map(|x| x.value))
2163 }
2164
2165 pub fn r#set_ip_receive_ttl(
2167 &self,
2168 mut value: bool,
2169 ___deadline: zx::MonotonicInstant,
2170 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult, fidl::Error>
2171 {
2172 let _response = self.client.send_query::<
2173 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest,
2174 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2175 >(
2176 (value,),
2177 0x46f15be0ce0ab82b,
2178 fidl::encoding::DynamicFlags::empty(),
2179 ___deadline,
2180 )?;
2181 Ok(_response.map(|x| x))
2182 }
2183
2184 pub fn r#get_ip_receive_ttl(
2186 &self,
2187 ___deadline: zx::MonotonicInstant,
2188 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult, fidl::Error>
2189 {
2190 let _response = self
2191 .client
2192 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2193 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResponse,
2194 fidl_fuchsia_posix::Errno,
2195 >>(
2196 (), 0x678ddd5a5dfa2eb5, fidl::encoding::DynamicFlags::empty(), ___deadline
2197 )?;
2198 Ok(_response.map(|x| x.value))
2199 }
2200
2201 pub fn r#set_ip_multicast_interface(
2203 &self,
2204 mut iface: u64,
2205 mut address: &fidl_fuchsia_net::Ipv4Address,
2206 ___deadline: zx::MonotonicInstant,
2207 ) -> Result<
2208 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
2209 fidl::Error,
2210 > {
2211 let _response = self.client.send_query::<
2212 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest,
2213 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2214 >(
2215 (iface, address,),
2216 0x752fbfa9b12befe,
2217 fidl::encoding::DynamicFlags::empty(),
2218 ___deadline,
2219 )?;
2220 Ok(_response.map(|x| x))
2221 }
2222
2223 pub fn r#get_ip_multicast_interface(
2225 &self,
2226 ___deadline: zx::MonotonicInstant,
2227 ) -> Result<
2228 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
2229 fidl::Error,
2230 > {
2231 let _response = self
2232 .client
2233 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2234 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResponse,
2235 fidl_fuchsia_posix::Errno,
2236 >>(
2237 (), 0x320bd14c4df046c4, fidl::encoding::DynamicFlags::empty(), ___deadline
2238 )?;
2239 Ok(_response.map(|x| x.value))
2240 }
2241
2242 pub fn r#set_ip_multicast_ttl(
2244 &self,
2245 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
2246 ___deadline: zx::MonotonicInstant,
2247 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult, fidl::Error>
2248 {
2249 let _response = self.client.send_query::<
2250 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest,
2251 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2252 >(
2253 (value,),
2254 0x63134d53772916a1,
2255 fidl::encoding::DynamicFlags::empty(),
2256 ___deadline,
2257 )?;
2258 Ok(_response.map(|x| x))
2259 }
2260
2261 pub fn r#get_ip_multicast_ttl(
2263 &self,
2264 ___deadline: zx::MonotonicInstant,
2265 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult, fidl::Error>
2266 {
2267 let _response = self
2268 .client
2269 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2270 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResponse,
2271 fidl_fuchsia_posix::Errno,
2272 >>(
2273 (), 0x4665cd378f39e1a, fidl::encoding::DynamicFlags::empty(), ___deadline
2274 )?;
2275 Ok(_response.map(|x| x.value))
2276 }
2277
2278 pub fn r#set_ip_multicast_loopback(
2280 &self,
2281 mut value: bool,
2282 ___deadline: zx::MonotonicInstant,
2283 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult, fidl::Error>
2284 {
2285 let _response = self.client.send_query::<
2286 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest,
2287 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2288 >(
2289 (value,),
2290 0x20c55c11f00943ea,
2291 fidl::encoding::DynamicFlags::empty(),
2292 ___deadline,
2293 )?;
2294 Ok(_response.map(|x| x))
2295 }
2296
2297 pub fn r#get_ip_multicast_loopback(
2299 &self,
2300 ___deadline: zx::MonotonicInstant,
2301 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult, fidl::Error>
2302 {
2303 let _response = self
2304 .client
2305 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2306 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResponse,
2307 fidl_fuchsia_posix::Errno,
2308 >>(
2309 (), 0x3b6b26ff558298f2, fidl::encoding::DynamicFlags::empty(), ___deadline
2310 )?;
2311 Ok(_response.map(|x| x.value))
2312 }
2313
2314 pub fn r#add_ip_membership(
2316 &self,
2317 mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
2318 ___deadline: zx::MonotonicInstant,
2319 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult, fidl::Error>
2320 {
2321 let _response = self.client.send_query::<
2322 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest,
2323 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2324 >(
2325 (membership,),
2326 0x76bc7df115a3b4d0,
2327 fidl::encoding::DynamicFlags::empty(),
2328 ___deadline,
2329 )?;
2330 Ok(_response.map(|x| x))
2331 }
2332
2333 pub fn r#drop_ip_membership(
2335 &self,
2336 mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
2337 ___deadline: zx::MonotonicInstant,
2338 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult, fidl::Error>
2339 {
2340 let _response = self.client.send_query::<
2341 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest,
2342 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2343 >(
2344 (membership,),
2345 0x2888f3099188d03,
2346 fidl::encoding::DynamicFlags::empty(),
2347 ___deadline,
2348 )?;
2349 Ok(_response.map(|x| x))
2350 }
2351
2352 pub fn r#set_ip_transparent(
2354 &self,
2355 mut value: bool,
2356 ___deadline: zx::MonotonicInstant,
2357 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult, fidl::Error>
2358 {
2359 let _response = self.client.send_query::<
2360 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest,
2361 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2362 >(
2363 (value,),
2364 0x1ae532b0c066e3a0,
2365 fidl::encoding::DynamicFlags::empty(),
2366 ___deadline,
2367 )?;
2368 Ok(_response.map(|x| x))
2369 }
2370
2371 pub fn r#get_ip_transparent(
2373 &self,
2374 ___deadline: zx::MonotonicInstant,
2375 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult, fidl::Error>
2376 {
2377 let _response = self
2378 .client
2379 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2380 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResponse,
2381 fidl_fuchsia_posix::Errno,
2382 >>(
2383 (), 0x51d43695962ebfb5, fidl::encoding::DynamicFlags::empty(), ___deadline
2384 )?;
2385 Ok(_response.map(|x| x.value))
2386 }
2387
2388 pub fn r#set_ip_receive_original_destination_address(
2390 &self,
2391 mut value: bool,
2392 ___deadline: zx::MonotonicInstant,
2393 ) -> Result<
2394 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
2395 fidl::Error,
2396 > {
2397 let _response = self.client.send_query::<
2398 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest,
2399 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2400 >(
2401 (value,),
2402 0x4722b4ce52f7840,
2403 fidl::encoding::DynamicFlags::empty(),
2404 ___deadline,
2405 )?;
2406 Ok(_response.map(|x| x))
2407 }
2408
2409 pub fn r#get_ip_receive_original_destination_address(
2411 &self,
2412 ___deadline: zx::MonotonicInstant,
2413 ) -> Result<
2414 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
2415 fidl::Error,
2416 > {
2417 let _response = self.client.send_query::<
2418 fidl::encoding::EmptyPayload,
2419 fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResponse, fidl_fuchsia_posix::Errno>,
2420 >(
2421 (),
2422 0x2a0e7dc5d6bfdfe9,
2423 fidl::encoding::DynamicFlags::empty(),
2424 ___deadline,
2425 )?;
2426 Ok(_response.map(|x| x.value))
2427 }
2428
2429 pub fn r#add_ipv6_membership(
2431 &self,
2432 mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
2433 ___deadline: zx::MonotonicInstant,
2434 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult, fidl::Error>
2435 {
2436 let _response = self.client.send_query::<
2437 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest,
2438 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2439 >(
2440 (membership,),
2441 0x7c94727acb4ea4b3,
2442 fidl::encoding::DynamicFlags::empty(),
2443 ___deadline,
2444 )?;
2445 Ok(_response.map(|x| x))
2446 }
2447
2448 pub fn r#drop_ipv6_membership(
2450 &self,
2451 mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
2452 ___deadline: zx::MonotonicInstant,
2453 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult, fidl::Error>
2454 {
2455 let _response = self.client.send_query::<
2456 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest,
2457 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2458 >(
2459 (membership,),
2460 0x42104c70ccaba304,
2461 fidl::encoding::DynamicFlags::empty(),
2462 ___deadline,
2463 )?;
2464 Ok(_response.map(|x| x))
2465 }
2466
2467 pub fn r#set_ipv6_multicast_interface(
2469 &self,
2470 mut value: u64,
2471 ___deadline: zx::MonotonicInstant,
2472 ) -> Result<
2473 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
2474 fidl::Error,
2475 > {
2476 let _response = self.client.send_query::<
2477 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest,
2478 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2479 >(
2480 (value,),
2481 0x135f76db3774ab3b,
2482 fidl::encoding::DynamicFlags::empty(),
2483 ___deadline,
2484 )?;
2485 Ok(_response.map(|x| x))
2486 }
2487
2488 pub fn r#get_ipv6_multicast_interface(
2490 &self,
2491 ___deadline: zx::MonotonicInstant,
2492 ) -> Result<
2493 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
2494 fidl::Error,
2495 > {
2496 let _response = self
2497 .client
2498 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2499 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResponse,
2500 fidl_fuchsia_posix::Errno,
2501 >>(
2502 (), 0x1f26fcdd348f1882, fidl::encoding::DynamicFlags::empty(), ___deadline
2503 )?;
2504 Ok(_response.map(|x| x.value))
2505 }
2506
2507 pub fn r#set_ipv6_unicast_hops(
2509 &self,
2510 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
2511 ___deadline: zx::MonotonicInstant,
2512 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult, fidl::Error>
2513 {
2514 let _response = self.client.send_query::<
2515 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest,
2516 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2517 >(
2518 (value,),
2519 0x157d51e98f462859,
2520 fidl::encoding::DynamicFlags::empty(),
2521 ___deadline,
2522 )?;
2523 Ok(_response.map(|x| x))
2524 }
2525
2526 pub fn r#get_ipv6_unicast_hops(
2528 &self,
2529 ___deadline: zx::MonotonicInstant,
2530 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult, fidl::Error>
2531 {
2532 let _response = self
2533 .client
2534 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2535 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResponse,
2536 fidl_fuchsia_posix::Errno,
2537 >>(
2538 (), 0x21f4641cad8bd8d2, fidl::encoding::DynamicFlags::empty(), ___deadline
2539 )?;
2540 Ok(_response.map(|x| x.value))
2541 }
2542
2543 pub fn r#set_ipv6_receive_hop_limit(
2545 &self,
2546 mut value: bool,
2547 ___deadline: zx::MonotonicInstant,
2548 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult, fidl::Error>
2549 {
2550 let _response = self.client.send_query::<
2551 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest,
2552 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2553 >(
2554 (value,),
2555 0x5c24808ed2e84a1e,
2556 fidl::encoding::DynamicFlags::empty(),
2557 ___deadline,
2558 )?;
2559 Ok(_response.map(|x| x))
2560 }
2561
2562 pub fn r#get_ipv6_receive_hop_limit(
2564 &self,
2565 ___deadline: zx::MonotonicInstant,
2566 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult, fidl::Error>
2567 {
2568 let _response = self
2569 .client
2570 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2571 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResponse,
2572 fidl_fuchsia_posix::Errno,
2573 >>(
2574 (), 0x341e06689885b4c0, fidl::encoding::DynamicFlags::empty(), ___deadline
2575 )?;
2576 Ok(_response.map(|x| x.value))
2577 }
2578
2579 pub fn r#set_ipv6_multicast_hops(
2581 &self,
2582 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
2583 ___deadline: zx::MonotonicInstant,
2584 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult, fidl::Error>
2585 {
2586 let _response = self.client.send_query::<
2587 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest,
2588 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2589 >(
2590 (value,),
2591 0x25b9cd4d181f82c1,
2592 fidl::encoding::DynamicFlags::empty(),
2593 ___deadline,
2594 )?;
2595 Ok(_response.map(|x| x))
2596 }
2597
2598 pub fn r#get_ipv6_multicast_hops(
2600 &self,
2601 ___deadline: zx::MonotonicInstant,
2602 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult, fidl::Error>
2603 {
2604 let _response = self
2605 .client
2606 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2607 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResponse,
2608 fidl_fuchsia_posix::Errno,
2609 >>(
2610 (), 0x52916948a365012a, fidl::encoding::DynamicFlags::empty(), ___deadline
2611 )?;
2612 Ok(_response.map(|x| x.value))
2613 }
2614
2615 pub fn r#set_ipv6_multicast_loopback(
2617 &self,
2618 mut value: bool,
2619 ___deadline: zx::MonotonicInstant,
2620 ) -> Result<
2621 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
2622 fidl::Error,
2623 > {
2624 let _response = self.client.send_query::<
2625 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest,
2626 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2627 >(
2628 (value,),
2629 0x55701c409ff41b40,
2630 fidl::encoding::DynamicFlags::empty(),
2631 ___deadline,
2632 )?;
2633 Ok(_response.map(|x| x))
2634 }
2635
2636 pub fn r#get_ipv6_multicast_loopback(
2638 &self,
2639 ___deadline: zx::MonotonicInstant,
2640 ) -> Result<
2641 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
2642 fidl::Error,
2643 > {
2644 let _response = self
2645 .client
2646 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2647 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResponse,
2648 fidl_fuchsia_posix::Errno,
2649 >>(
2650 (), 0x4415b701fde319c3, fidl::encoding::DynamicFlags::empty(), ___deadline
2651 )?;
2652 Ok(_response.map(|x| x.value))
2653 }
2654
2655 pub fn r#set_ipv6_only(
2657 &self,
2658 mut value: bool,
2659 ___deadline: zx::MonotonicInstant,
2660 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult, fidl::Error> {
2661 let _response = self.client.send_query::<
2662 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest,
2663 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2664 >(
2665 (value,),
2666 0x4873f1364758cbba,
2667 fidl::encoding::DynamicFlags::empty(),
2668 ___deadline,
2669 )?;
2670 Ok(_response.map(|x| x))
2671 }
2672
2673 pub fn r#get_ipv6_only(
2675 &self,
2676 ___deadline: zx::MonotonicInstant,
2677 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult, fidl::Error> {
2678 let _response = self
2679 .client
2680 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2681 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResponse,
2682 fidl_fuchsia_posix::Errno,
2683 >>(
2684 (), 0x4aa3340a1a26b89c, fidl::encoding::DynamicFlags::empty(), ___deadline
2685 )?;
2686 Ok(_response.map(|x| x.value))
2687 }
2688
2689 pub fn r#set_ipv6_receive_traffic_class(
2691 &self,
2692 mut value: bool,
2693 ___deadline: zx::MonotonicInstant,
2694 ) -> Result<
2695 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
2696 fidl::Error,
2697 > {
2698 let _response = self.client.send_query::<
2699 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest,
2700 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2701 >(
2702 (value,),
2703 0x58f07c8788d099a0,
2704 fidl::encoding::DynamicFlags::empty(),
2705 ___deadline,
2706 )?;
2707 Ok(_response.map(|x| x))
2708 }
2709
2710 pub fn r#get_ipv6_receive_traffic_class(
2712 &self,
2713 ___deadline: zx::MonotonicInstant,
2714 ) -> Result<
2715 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
2716 fidl::Error,
2717 > {
2718 let _response = self
2719 .client
2720 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2721 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResponse,
2722 fidl_fuchsia_posix::Errno,
2723 >>(
2724 (), 0x2e334df1da553ffa, fidl::encoding::DynamicFlags::empty(), ___deadline
2725 )?;
2726 Ok(_response.map(|x| x.value))
2727 }
2728
2729 pub fn r#set_ipv6_traffic_class(
2731 &self,
2732 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
2733 ___deadline: zx::MonotonicInstant,
2734 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult, fidl::Error>
2735 {
2736 let _response = self.client.send_query::<
2737 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest,
2738 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2739 >(
2740 (value,),
2741 0x6af077800c5a0b4f,
2742 fidl::encoding::DynamicFlags::empty(),
2743 ___deadline,
2744 )?;
2745 Ok(_response.map(|x| x))
2746 }
2747
2748 pub fn r#get_ipv6_traffic_class(
2750 &self,
2751 ___deadline: zx::MonotonicInstant,
2752 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult, fidl::Error>
2753 {
2754 let _response = self
2755 .client
2756 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2757 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResponse,
2758 fidl_fuchsia_posix::Errno,
2759 >>(
2760 (), 0x6baf6eed8fc2f04, fidl::encoding::DynamicFlags::empty(), ___deadline
2761 )?;
2762 Ok(_response.map(|x| x.value))
2763 }
2764
2765 pub fn r#set_ipv6_receive_packet_info(
2767 &self,
2768 mut value: bool,
2769 ___deadline: zx::MonotonicInstant,
2770 ) -> Result<
2771 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
2772 fidl::Error,
2773 > {
2774 let _response = self.client.send_query::<
2775 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest,
2776 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
2777 >(
2778 (value,),
2779 0x19259775b1a92768,
2780 fidl::encoding::DynamicFlags::empty(),
2781 ___deadline,
2782 )?;
2783 Ok(_response.map(|x| x))
2784 }
2785
2786 pub fn r#get_ipv6_receive_packet_info(
2788 &self,
2789 ___deadline: zx::MonotonicInstant,
2790 ) -> Result<
2791 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
2792 fidl::Error,
2793 > {
2794 let _response = self
2795 .client
2796 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2797 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResponse,
2798 fidl_fuchsia_posix::Errno,
2799 >>(
2800 (), 0x7acd4a2775baec75, fidl::encoding::DynamicFlags::empty(), ___deadline
2801 )?;
2802 Ok(_response.map(|x| x.value))
2803 }
2804
2805 pub fn r#get_original_destination(
2807 &self,
2808 ___deadline: zx::MonotonicInstant,
2809 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult, fidl::Error>
2810 {
2811 let _response = self
2812 .client
2813 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2814 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResponse,
2815 fidl_fuchsia_posix::Errno,
2816 >>(
2817 (), 0x38bf28f0dafdbac0, fidl::encoding::DynamicFlags::empty(), ___deadline
2818 )?;
2819 Ok(_response.map(|x| x.value))
2820 }
2821
2822 pub fn r#describe(
2823 &self,
2824 ___deadline: zx::MonotonicInstant,
2825 ) -> Result<SocketDescribeResponse, fidl::Error> {
2826 let _response =
2827 self.client.send_query::<fidl::encoding::EmptyPayload, SocketDescribeResponse>(
2828 (),
2829 0x335706eccf54a135,
2830 fidl::encoding::DynamicFlags::empty(),
2831 ___deadline,
2832 )?;
2833 Ok(_response)
2834 }
2835
2836 pub fn r#recv_msg(
2851 &self,
2852 mut want_addr: bool,
2853 mut data_len: u32,
2854 mut want_control: bool,
2855 mut flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
2856 ___deadline: zx::MonotonicInstant,
2857 ) -> Result<SocketRecvMsgResult, fidl::Error> {
2858 let _response = self.client.send_query::<SocketRecvMsgRequest, fidl::encoding::ResultType<
2859 SocketRecvMsgResponse,
2860 fidl_fuchsia_posix::Errno,
2861 >>(
2862 (want_addr, data_len, want_control, flags),
2863 0x1dfb695351d3aa1d,
2864 fidl::encoding::DynamicFlags::empty(),
2865 ___deadline,
2866 )?;
2867 Ok(_response.map(|x| (x.addr, x.data, x.control, x.truncated)))
2868 }
2869
2870 pub fn r#send_msg(
2878 &self,
2879 mut addr: Option<&fidl_fuchsia_net::SocketAddress>,
2880 mut data: &[u8],
2881 mut control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
2882 mut flags: fidl_fuchsia_posix_socket::SendMsgFlags,
2883 ___deadline: zx::MonotonicInstant,
2884 ) -> Result<SocketSendMsgResult, fidl::Error> {
2885 let _response = self.client.send_query::<SocketSendMsgRequest, fidl::encoding::ResultType<
2886 fidl::encoding::EmptyStruct,
2887 fidl_fuchsia_posix::Errno,
2888 >>(
2889 (addr, data, control, flags),
2890 0x2cf1eac9a7fc8958,
2891 fidl::encoding::DynamicFlags::empty(),
2892 ___deadline,
2893 )?;
2894 Ok(_response.map(|x| x))
2895 }
2896
2897 pub fn r#get_info(
2902 &self,
2903 ___deadline: zx::MonotonicInstant,
2904 ) -> Result<SocketGetInfoResult, fidl::Error> {
2905 let _response =
2906 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2907 SocketGetInfoResponse,
2908 fidl_fuchsia_posix::Errno,
2909 >>(
2910 (),
2911 0x39676f75aec339ba,
2912 fidl::encoding::DynamicFlags::empty(),
2913 ___deadline,
2914 )?;
2915 Ok(_response.map(|x| (x.domain, x.proto)))
2916 }
2917
2918 pub fn r#set_ip_header_included(
2920 &self,
2921 mut value: bool,
2922 ___deadline: zx::MonotonicInstant,
2923 ) -> Result<SocketSetIpHeaderIncludedResult, fidl::Error> {
2924 let _response =
2925 self.client.send_query::<SocketSetIpHeaderIncludedRequest, fidl::encoding::ResultType<
2926 fidl::encoding::EmptyStruct,
2927 fidl_fuchsia_posix::Errno,
2928 >>(
2929 (value,),
2930 0x5d06a606d95e8f3,
2931 fidl::encoding::DynamicFlags::empty(),
2932 ___deadline,
2933 )?;
2934 Ok(_response.map(|x| x))
2935 }
2936
2937 pub fn r#get_ip_header_included(
2939 &self,
2940 ___deadline: zx::MonotonicInstant,
2941 ) -> Result<SocketGetIpHeaderIncludedResult, fidl::Error> {
2942 let _response = self
2943 .client
2944 .send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2945 SocketGetIpHeaderIncludedResponse,
2946 fidl_fuchsia_posix::Errno,
2947 >>(
2948 (), 0x76125ad1f4d175f6, fidl::encoding::DynamicFlags::empty(), ___deadline
2949 )?;
2950 Ok(_response.map(|x| x.value))
2951 }
2952
2953 pub fn r#set_icmpv6_filter(
2955 &self,
2956 mut filter: &Icmpv6Filter,
2957 ___deadline: zx::MonotonicInstant,
2958 ) -> Result<SocketSetIcmpv6FilterResult, fidl::Error> {
2959 let _response =
2960 self.client.send_query::<SocketSetIcmpv6FilterRequest, fidl::encoding::ResultType<
2961 fidl::encoding::EmptyStruct,
2962 fidl_fuchsia_posix::Errno,
2963 >>(
2964 (filter,),
2965 0x4ebea92a43ae68a9,
2966 fidl::encoding::DynamicFlags::empty(),
2967 ___deadline,
2968 )?;
2969 Ok(_response.map(|x| x))
2970 }
2971
2972 pub fn r#get_icmpv6_filter(
2974 &self,
2975 ___deadline: zx::MonotonicInstant,
2976 ) -> Result<SocketGetIcmpv6FilterResult, fidl::Error> {
2977 let _response =
2978 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
2979 SocketGetIcmpv6FilterResponse,
2980 fidl_fuchsia_posix::Errno,
2981 >>(
2982 (),
2983 0x43bd4f3bc0970ace,
2984 fidl::encoding::DynamicFlags::empty(),
2985 ___deadline,
2986 )?;
2987 Ok(_response.map(|x| x.filter))
2988 }
2989
2990 pub fn r#set_ipv6_checksum(
2992 &self,
2993 mut config: &Ipv6ChecksumConfiguration,
2994 ___deadline: zx::MonotonicInstant,
2995 ) -> Result<SocketSetIpv6ChecksumResult, fidl::Error> {
2996 let _response =
2997 self.client.send_query::<SocketSetIpv6ChecksumRequest, fidl::encoding::ResultType<
2998 fidl::encoding::EmptyStruct,
2999 fidl_fuchsia_posix::Errno,
3000 >>(
3001 (config,),
3002 0x18b7809577199cb4,
3003 fidl::encoding::DynamicFlags::empty(),
3004 ___deadline,
3005 )?;
3006 Ok(_response.map(|x| x))
3007 }
3008
3009 pub fn r#get_ipv6_checksum(
3011 &self,
3012 ___deadline: zx::MonotonicInstant,
3013 ) -> Result<SocketGetIpv6ChecksumResult, fidl::Error> {
3014 let _response =
3015 self.client.send_query::<fidl::encoding::EmptyPayload, fidl::encoding::ResultType<
3016 SocketGetIpv6ChecksumResponse,
3017 fidl_fuchsia_posix::Errno,
3018 >>(
3019 (),
3020 0x1847bf5b2d263dd,
3021 fidl::encoding::DynamicFlags::empty(),
3022 ___deadline,
3023 )?;
3024 Ok(_response.map(|x| x.config))
3025 }
3026}
3027
3028#[cfg(target_os = "fuchsia")]
3029impl From<SocketSynchronousProxy> for zx::Handle {
3030 fn from(value: SocketSynchronousProxy) -> Self {
3031 value.into_channel().into()
3032 }
3033}
3034
3035#[cfg(target_os = "fuchsia")]
3036impl From<fidl::Channel> for SocketSynchronousProxy {
3037 fn from(value: fidl::Channel) -> Self {
3038 Self::new(value)
3039 }
3040}
3041
3042#[derive(Debug, Clone)]
3043pub struct SocketProxy {
3044 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
3045}
3046
3047impl fidl::endpoints::Proxy for SocketProxy {
3048 type Protocol = SocketMarker;
3049
3050 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
3051 Self::new(inner)
3052 }
3053
3054 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
3055 self.client.into_channel().map_err(|client| Self { client })
3056 }
3057
3058 fn as_channel(&self) -> &::fidl::AsyncChannel {
3059 self.client.as_channel()
3060 }
3061}
3062
3063impl SocketProxy {
3064 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
3066 let protocol_name = <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
3067 Self { client: fidl::client::Client::new(channel, protocol_name) }
3068 }
3069
3070 pub fn take_event_stream(&self) -> SocketEventStream {
3076 SocketEventStream { event_receiver: self.client.take_event_receiver() }
3077 }
3078
3079 pub fn r#clone(
3080 &self,
3081 mut request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
3082 ) -> Result<(), fidl::Error> {
3083 SocketProxyInterface::r#clone(self, request)
3084 }
3085
3086 pub fn r#close(
3097 &self,
3098 ) -> fidl::client::QueryResponseFut<
3099 fidl_fuchsia_unknown::CloseableCloseResult,
3100 fidl::encoding::DefaultFuchsiaResourceDialect,
3101 > {
3102 SocketProxyInterface::r#close(self)
3103 }
3104
3105 pub fn r#query(
3106 &self,
3107 ) -> fidl::client::QueryResponseFut<Vec<u8>, fidl::encoding::DefaultFuchsiaResourceDialect>
3108 {
3109 SocketProxyInterface::r#query(self)
3110 }
3111
3112 pub fn r#set_reuse_address(
3114 &self,
3115 mut value: bool,
3116 ) -> fidl::client::QueryResponseFut<
3117 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
3118 fidl::encoding::DefaultFuchsiaResourceDialect,
3119 > {
3120 SocketProxyInterface::r#set_reuse_address(self, value)
3121 }
3122
3123 pub fn r#get_reuse_address(
3125 &self,
3126 ) -> fidl::client::QueryResponseFut<
3127 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
3128 fidl::encoding::DefaultFuchsiaResourceDialect,
3129 > {
3130 SocketProxyInterface::r#get_reuse_address(self)
3131 }
3132
3133 pub fn r#get_error(
3136 &self,
3137 ) -> fidl::client::QueryResponseFut<
3138 fidl_fuchsia_posix_socket::BaseSocketGetErrorResult,
3139 fidl::encoding::DefaultFuchsiaResourceDialect,
3140 > {
3141 SocketProxyInterface::r#get_error(self)
3142 }
3143
3144 pub fn r#set_broadcast(
3146 &self,
3147 mut value: bool,
3148 ) -> fidl::client::QueryResponseFut<
3149 fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult,
3150 fidl::encoding::DefaultFuchsiaResourceDialect,
3151 > {
3152 SocketProxyInterface::r#set_broadcast(self, value)
3153 }
3154
3155 pub fn r#get_broadcast(
3157 &self,
3158 ) -> fidl::client::QueryResponseFut<
3159 fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult,
3160 fidl::encoding::DefaultFuchsiaResourceDialect,
3161 > {
3162 SocketProxyInterface::r#get_broadcast(self)
3163 }
3164
3165 pub fn r#set_send_buffer(
3167 &self,
3168 mut value_bytes: u64,
3169 ) -> fidl::client::QueryResponseFut<
3170 fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult,
3171 fidl::encoding::DefaultFuchsiaResourceDialect,
3172 > {
3173 SocketProxyInterface::r#set_send_buffer(self, value_bytes)
3174 }
3175
3176 pub fn r#get_send_buffer(
3178 &self,
3179 ) -> fidl::client::QueryResponseFut<
3180 fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult,
3181 fidl::encoding::DefaultFuchsiaResourceDialect,
3182 > {
3183 SocketProxyInterface::r#get_send_buffer(self)
3184 }
3185
3186 pub fn r#set_receive_buffer(
3188 &self,
3189 mut value_bytes: u64,
3190 ) -> fidl::client::QueryResponseFut<
3191 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
3192 fidl::encoding::DefaultFuchsiaResourceDialect,
3193 > {
3194 SocketProxyInterface::r#set_receive_buffer(self, value_bytes)
3195 }
3196
3197 pub fn r#get_receive_buffer(
3199 &self,
3200 ) -> fidl::client::QueryResponseFut<
3201 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
3202 fidl::encoding::DefaultFuchsiaResourceDialect,
3203 > {
3204 SocketProxyInterface::r#get_receive_buffer(self)
3205 }
3206
3207 pub fn r#set_keep_alive(
3209 &self,
3210 mut value: bool,
3211 ) -> fidl::client::QueryResponseFut<
3212 fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult,
3213 fidl::encoding::DefaultFuchsiaResourceDialect,
3214 > {
3215 SocketProxyInterface::r#set_keep_alive(self, value)
3216 }
3217
3218 pub fn r#get_keep_alive(
3220 &self,
3221 ) -> fidl::client::QueryResponseFut<
3222 fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult,
3223 fidl::encoding::DefaultFuchsiaResourceDialect,
3224 > {
3225 SocketProxyInterface::r#get_keep_alive(self)
3226 }
3227
3228 pub fn r#set_out_of_band_inline(
3230 &self,
3231 mut value: bool,
3232 ) -> fidl::client::QueryResponseFut<
3233 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
3234 fidl::encoding::DefaultFuchsiaResourceDialect,
3235 > {
3236 SocketProxyInterface::r#set_out_of_band_inline(self, value)
3237 }
3238
3239 pub fn r#get_out_of_band_inline(
3241 &self,
3242 ) -> fidl::client::QueryResponseFut<
3243 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
3244 fidl::encoding::DefaultFuchsiaResourceDialect,
3245 > {
3246 SocketProxyInterface::r#get_out_of_band_inline(self)
3247 }
3248
3249 pub fn r#set_no_check(
3251 &self,
3252 mut value: bool,
3253 ) -> fidl::client::QueryResponseFut<
3254 fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult,
3255 fidl::encoding::DefaultFuchsiaResourceDialect,
3256 > {
3257 SocketProxyInterface::r#set_no_check(self, value)
3258 }
3259
3260 pub fn r#get_no_check(
3262 &self,
3263 ) -> fidl::client::QueryResponseFut<
3264 fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult,
3265 fidl::encoding::DefaultFuchsiaResourceDialect,
3266 > {
3267 SocketProxyInterface::r#get_no_check(self)
3268 }
3269
3270 pub fn r#set_linger(
3272 &self,
3273 mut linger: bool,
3274 mut length_secs: u32,
3275 ) -> fidl::client::QueryResponseFut<
3276 fidl_fuchsia_posix_socket::BaseSocketSetLingerResult,
3277 fidl::encoding::DefaultFuchsiaResourceDialect,
3278 > {
3279 SocketProxyInterface::r#set_linger(self, linger, length_secs)
3280 }
3281
3282 pub fn r#get_linger(
3284 &self,
3285 ) -> fidl::client::QueryResponseFut<
3286 fidl_fuchsia_posix_socket::BaseSocketGetLingerResult,
3287 fidl::encoding::DefaultFuchsiaResourceDialect,
3288 > {
3289 SocketProxyInterface::r#get_linger(self)
3290 }
3291
3292 pub fn r#set_reuse_port(
3294 &self,
3295 mut value: bool,
3296 ) -> fidl::client::QueryResponseFut<
3297 fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult,
3298 fidl::encoding::DefaultFuchsiaResourceDialect,
3299 > {
3300 SocketProxyInterface::r#set_reuse_port(self, value)
3301 }
3302
3303 pub fn r#get_reuse_port(
3305 &self,
3306 ) -> fidl::client::QueryResponseFut<
3307 fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult,
3308 fidl::encoding::DefaultFuchsiaResourceDialect,
3309 > {
3310 SocketProxyInterface::r#get_reuse_port(self)
3311 }
3312
3313 pub fn r#get_accept_conn(
3315 &self,
3316 ) -> fidl::client::QueryResponseFut<
3317 fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult,
3318 fidl::encoding::DefaultFuchsiaResourceDialect,
3319 > {
3320 SocketProxyInterface::r#get_accept_conn(self)
3321 }
3322
3323 pub fn r#set_bind_to_device(
3325 &self,
3326 mut value: &str,
3327 ) -> fidl::client::QueryResponseFut<
3328 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
3329 fidl::encoding::DefaultFuchsiaResourceDialect,
3330 > {
3331 SocketProxyInterface::r#set_bind_to_device(self, value)
3332 }
3333
3334 pub fn r#get_bind_to_device(
3336 &self,
3337 ) -> fidl::client::QueryResponseFut<
3338 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
3339 fidl::encoding::DefaultFuchsiaResourceDialect,
3340 > {
3341 SocketProxyInterface::r#get_bind_to_device(self)
3342 }
3343
3344 pub fn r#set_bind_to_interface_index(
3347 &self,
3348 mut value: u64,
3349 ) -> fidl::client::QueryResponseFut<
3350 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
3351 fidl::encoding::DefaultFuchsiaResourceDialect,
3352 > {
3353 SocketProxyInterface::r#set_bind_to_interface_index(self, value)
3354 }
3355
3356 pub fn r#get_bind_to_interface_index(
3358 &self,
3359 ) -> fidl::client::QueryResponseFut<
3360 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
3361 fidl::encoding::DefaultFuchsiaResourceDialect,
3362 > {
3363 SocketProxyInterface::r#get_bind_to_interface_index(self)
3364 }
3365
3366 pub fn r#set_timestamp(
3368 &self,
3369 mut value: fidl_fuchsia_posix_socket::TimestampOption,
3370 ) -> fidl::client::QueryResponseFut<
3371 fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult,
3372 fidl::encoding::DefaultFuchsiaResourceDialect,
3373 > {
3374 SocketProxyInterface::r#set_timestamp(self, value)
3375 }
3376
3377 pub fn r#get_timestamp(
3379 &self,
3380 ) -> fidl::client::QueryResponseFut<
3381 fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult,
3382 fidl::encoding::DefaultFuchsiaResourceDialect,
3383 > {
3384 SocketProxyInterface::r#get_timestamp(self)
3385 }
3386
3387 pub fn r#set_mark(
3391 &self,
3392 mut domain: fidl_fuchsia_net::MarkDomain,
3393 mut mark: &fidl_fuchsia_posix_socket::OptionalUint32,
3394 ) -> fidl::client::QueryResponseFut<
3395 fidl_fuchsia_posix_socket::BaseSocketSetMarkResult,
3396 fidl::encoding::DefaultFuchsiaResourceDialect,
3397 > {
3398 SocketProxyInterface::r#set_mark(self, domain, mark)
3399 }
3400
3401 pub fn r#get_mark(
3405 &self,
3406 mut domain: fidl_fuchsia_net::MarkDomain,
3407 ) -> fidl::client::QueryResponseFut<
3408 fidl_fuchsia_posix_socket::BaseSocketGetMarkResult,
3409 fidl::encoding::DefaultFuchsiaResourceDialect,
3410 > {
3411 SocketProxyInterface::r#get_mark(self, domain)
3412 }
3413
3414 pub fn r#bind(
3416 &self,
3417 mut addr: &fidl_fuchsia_net::SocketAddress,
3418 ) -> fidl::client::QueryResponseFut<
3419 fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult,
3420 fidl::encoding::DefaultFuchsiaResourceDialect,
3421 > {
3422 SocketProxyInterface::r#bind(self, addr)
3423 }
3424
3425 pub fn r#connect(
3427 &self,
3428 mut addr: &fidl_fuchsia_net::SocketAddress,
3429 ) -> fidl::client::QueryResponseFut<
3430 fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult,
3431 fidl::encoding::DefaultFuchsiaResourceDialect,
3432 > {
3433 SocketProxyInterface::r#connect(self, addr)
3434 }
3435
3436 pub fn r#disconnect(
3438 &self,
3439 ) -> fidl::client::QueryResponseFut<
3440 fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
3441 fidl::encoding::DefaultFuchsiaResourceDialect,
3442 > {
3443 SocketProxyInterface::r#disconnect(self)
3444 }
3445
3446 pub fn r#get_sock_name(
3448 &self,
3449 ) -> fidl::client::QueryResponseFut<
3450 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
3451 fidl::encoding::DefaultFuchsiaResourceDialect,
3452 > {
3453 SocketProxyInterface::r#get_sock_name(self)
3454 }
3455
3456 pub fn r#get_peer_name(
3458 &self,
3459 ) -> fidl::client::QueryResponseFut<
3460 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
3461 fidl::encoding::DefaultFuchsiaResourceDialect,
3462 > {
3463 SocketProxyInterface::r#get_peer_name(self)
3464 }
3465
3466 pub fn r#shutdown(
3468 &self,
3469 mut mode: fidl_fuchsia_posix_socket::ShutdownMode,
3470 ) -> fidl::client::QueryResponseFut<
3471 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
3472 fidl::encoding::DefaultFuchsiaResourceDialect,
3473 > {
3474 SocketProxyInterface::r#shutdown(self, mode)
3475 }
3476
3477 pub fn r#set_ip_type_of_service(
3479 &self,
3480 mut value: u8,
3481 ) -> fidl::client::QueryResponseFut<
3482 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
3483 fidl::encoding::DefaultFuchsiaResourceDialect,
3484 > {
3485 SocketProxyInterface::r#set_ip_type_of_service(self, value)
3486 }
3487
3488 pub fn r#get_ip_type_of_service(
3490 &self,
3491 ) -> fidl::client::QueryResponseFut<
3492 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
3493 fidl::encoding::DefaultFuchsiaResourceDialect,
3494 > {
3495 SocketProxyInterface::r#get_ip_type_of_service(self)
3496 }
3497
3498 pub fn r#set_ip_ttl(
3500 &self,
3501 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
3502 ) -> fidl::client::QueryResponseFut<
3503 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
3504 fidl::encoding::DefaultFuchsiaResourceDialect,
3505 > {
3506 SocketProxyInterface::r#set_ip_ttl(self, value)
3507 }
3508
3509 pub fn r#get_ip_ttl(
3511 &self,
3512 ) -> fidl::client::QueryResponseFut<
3513 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
3514 fidl::encoding::DefaultFuchsiaResourceDialect,
3515 > {
3516 SocketProxyInterface::r#get_ip_ttl(self)
3517 }
3518
3519 pub fn r#set_ip_packet_info(
3521 &self,
3522 mut value: bool,
3523 ) -> fidl::client::QueryResponseFut<
3524 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
3525 fidl::encoding::DefaultFuchsiaResourceDialect,
3526 > {
3527 SocketProxyInterface::r#set_ip_packet_info(self, value)
3528 }
3529
3530 pub fn r#get_ip_packet_info(
3532 &self,
3533 ) -> fidl::client::QueryResponseFut<
3534 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
3535 fidl::encoding::DefaultFuchsiaResourceDialect,
3536 > {
3537 SocketProxyInterface::r#get_ip_packet_info(self)
3538 }
3539
3540 pub fn r#set_ip_receive_type_of_service(
3542 &self,
3543 mut value: bool,
3544 ) -> fidl::client::QueryResponseFut<
3545 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
3546 fidl::encoding::DefaultFuchsiaResourceDialect,
3547 > {
3548 SocketProxyInterface::r#set_ip_receive_type_of_service(self, value)
3549 }
3550
3551 pub fn r#get_ip_receive_type_of_service(
3553 &self,
3554 ) -> fidl::client::QueryResponseFut<
3555 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
3556 fidl::encoding::DefaultFuchsiaResourceDialect,
3557 > {
3558 SocketProxyInterface::r#get_ip_receive_type_of_service(self)
3559 }
3560
3561 pub fn r#set_ip_receive_ttl(
3563 &self,
3564 mut value: bool,
3565 ) -> fidl::client::QueryResponseFut<
3566 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
3567 fidl::encoding::DefaultFuchsiaResourceDialect,
3568 > {
3569 SocketProxyInterface::r#set_ip_receive_ttl(self, value)
3570 }
3571
3572 pub fn r#get_ip_receive_ttl(
3574 &self,
3575 ) -> fidl::client::QueryResponseFut<
3576 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
3577 fidl::encoding::DefaultFuchsiaResourceDialect,
3578 > {
3579 SocketProxyInterface::r#get_ip_receive_ttl(self)
3580 }
3581
3582 pub fn r#set_ip_multicast_interface(
3584 &self,
3585 mut iface: u64,
3586 mut address: &fidl_fuchsia_net::Ipv4Address,
3587 ) -> fidl::client::QueryResponseFut<
3588 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
3589 fidl::encoding::DefaultFuchsiaResourceDialect,
3590 > {
3591 SocketProxyInterface::r#set_ip_multicast_interface(self, iface, address)
3592 }
3593
3594 pub fn r#get_ip_multicast_interface(
3596 &self,
3597 ) -> fidl::client::QueryResponseFut<
3598 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
3599 fidl::encoding::DefaultFuchsiaResourceDialect,
3600 > {
3601 SocketProxyInterface::r#get_ip_multicast_interface(self)
3602 }
3603
3604 pub fn r#set_ip_multicast_ttl(
3606 &self,
3607 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
3608 ) -> fidl::client::QueryResponseFut<
3609 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
3610 fidl::encoding::DefaultFuchsiaResourceDialect,
3611 > {
3612 SocketProxyInterface::r#set_ip_multicast_ttl(self, value)
3613 }
3614
3615 pub fn r#get_ip_multicast_ttl(
3617 &self,
3618 ) -> fidl::client::QueryResponseFut<
3619 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
3620 fidl::encoding::DefaultFuchsiaResourceDialect,
3621 > {
3622 SocketProxyInterface::r#get_ip_multicast_ttl(self)
3623 }
3624
3625 pub fn r#set_ip_multicast_loopback(
3627 &self,
3628 mut value: bool,
3629 ) -> fidl::client::QueryResponseFut<
3630 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
3631 fidl::encoding::DefaultFuchsiaResourceDialect,
3632 > {
3633 SocketProxyInterface::r#set_ip_multicast_loopback(self, value)
3634 }
3635
3636 pub fn r#get_ip_multicast_loopback(
3638 &self,
3639 ) -> fidl::client::QueryResponseFut<
3640 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
3641 fidl::encoding::DefaultFuchsiaResourceDialect,
3642 > {
3643 SocketProxyInterface::r#get_ip_multicast_loopback(self)
3644 }
3645
3646 pub fn r#add_ip_membership(
3648 &self,
3649 mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
3650 ) -> fidl::client::QueryResponseFut<
3651 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
3652 fidl::encoding::DefaultFuchsiaResourceDialect,
3653 > {
3654 SocketProxyInterface::r#add_ip_membership(self, membership)
3655 }
3656
3657 pub fn r#drop_ip_membership(
3659 &self,
3660 mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
3661 ) -> fidl::client::QueryResponseFut<
3662 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
3663 fidl::encoding::DefaultFuchsiaResourceDialect,
3664 > {
3665 SocketProxyInterface::r#drop_ip_membership(self, membership)
3666 }
3667
3668 pub fn r#set_ip_transparent(
3670 &self,
3671 mut value: bool,
3672 ) -> fidl::client::QueryResponseFut<
3673 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
3674 fidl::encoding::DefaultFuchsiaResourceDialect,
3675 > {
3676 SocketProxyInterface::r#set_ip_transparent(self, value)
3677 }
3678
3679 pub fn r#get_ip_transparent(
3681 &self,
3682 ) -> fidl::client::QueryResponseFut<
3683 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
3684 fidl::encoding::DefaultFuchsiaResourceDialect,
3685 > {
3686 SocketProxyInterface::r#get_ip_transparent(self)
3687 }
3688
3689 pub fn r#set_ip_receive_original_destination_address(
3691 &self,
3692 mut value: bool,
3693 ) -> fidl::client::QueryResponseFut<
3694 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
3695 fidl::encoding::DefaultFuchsiaResourceDialect,
3696 > {
3697 SocketProxyInterface::r#set_ip_receive_original_destination_address(self, value)
3698 }
3699
3700 pub fn r#get_ip_receive_original_destination_address(
3702 &self,
3703 ) -> fidl::client::QueryResponseFut<
3704 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
3705 fidl::encoding::DefaultFuchsiaResourceDialect,
3706 > {
3707 SocketProxyInterface::r#get_ip_receive_original_destination_address(self)
3708 }
3709
3710 pub fn r#add_ipv6_membership(
3712 &self,
3713 mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
3714 ) -> fidl::client::QueryResponseFut<
3715 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
3716 fidl::encoding::DefaultFuchsiaResourceDialect,
3717 > {
3718 SocketProxyInterface::r#add_ipv6_membership(self, membership)
3719 }
3720
3721 pub fn r#drop_ipv6_membership(
3723 &self,
3724 mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
3725 ) -> fidl::client::QueryResponseFut<
3726 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
3727 fidl::encoding::DefaultFuchsiaResourceDialect,
3728 > {
3729 SocketProxyInterface::r#drop_ipv6_membership(self, membership)
3730 }
3731
3732 pub fn r#set_ipv6_multicast_interface(
3734 &self,
3735 mut value: u64,
3736 ) -> fidl::client::QueryResponseFut<
3737 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
3738 fidl::encoding::DefaultFuchsiaResourceDialect,
3739 > {
3740 SocketProxyInterface::r#set_ipv6_multicast_interface(self, value)
3741 }
3742
3743 pub fn r#get_ipv6_multicast_interface(
3745 &self,
3746 ) -> fidl::client::QueryResponseFut<
3747 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
3748 fidl::encoding::DefaultFuchsiaResourceDialect,
3749 > {
3750 SocketProxyInterface::r#get_ipv6_multicast_interface(self)
3751 }
3752
3753 pub fn r#set_ipv6_unicast_hops(
3755 &self,
3756 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
3757 ) -> fidl::client::QueryResponseFut<
3758 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
3759 fidl::encoding::DefaultFuchsiaResourceDialect,
3760 > {
3761 SocketProxyInterface::r#set_ipv6_unicast_hops(self, value)
3762 }
3763
3764 pub fn r#get_ipv6_unicast_hops(
3766 &self,
3767 ) -> fidl::client::QueryResponseFut<
3768 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
3769 fidl::encoding::DefaultFuchsiaResourceDialect,
3770 > {
3771 SocketProxyInterface::r#get_ipv6_unicast_hops(self)
3772 }
3773
3774 pub fn r#set_ipv6_receive_hop_limit(
3776 &self,
3777 mut value: bool,
3778 ) -> fidl::client::QueryResponseFut<
3779 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
3780 fidl::encoding::DefaultFuchsiaResourceDialect,
3781 > {
3782 SocketProxyInterface::r#set_ipv6_receive_hop_limit(self, value)
3783 }
3784
3785 pub fn r#get_ipv6_receive_hop_limit(
3787 &self,
3788 ) -> fidl::client::QueryResponseFut<
3789 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
3790 fidl::encoding::DefaultFuchsiaResourceDialect,
3791 > {
3792 SocketProxyInterface::r#get_ipv6_receive_hop_limit(self)
3793 }
3794
3795 pub fn r#set_ipv6_multicast_hops(
3797 &self,
3798 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
3799 ) -> fidl::client::QueryResponseFut<
3800 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
3801 fidl::encoding::DefaultFuchsiaResourceDialect,
3802 > {
3803 SocketProxyInterface::r#set_ipv6_multicast_hops(self, value)
3804 }
3805
3806 pub fn r#get_ipv6_multicast_hops(
3808 &self,
3809 ) -> fidl::client::QueryResponseFut<
3810 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
3811 fidl::encoding::DefaultFuchsiaResourceDialect,
3812 > {
3813 SocketProxyInterface::r#get_ipv6_multicast_hops(self)
3814 }
3815
3816 pub fn r#set_ipv6_multicast_loopback(
3818 &self,
3819 mut value: bool,
3820 ) -> fidl::client::QueryResponseFut<
3821 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
3822 fidl::encoding::DefaultFuchsiaResourceDialect,
3823 > {
3824 SocketProxyInterface::r#set_ipv6_multicast_loopback(self, value)
3825 }
3826
3827 pub fn r#get_ipv6_multicast_loopback(
3829 &self,
3830 ) -> fidl::client::QueryResponseFut<
3831 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
3832 fidl::encoding::DefaultFuchsiaResourceDialect,
3833 > {
3834 SocketProxyInterface::r#get_ipv6_multicast_loopback(self)
3835 }
3836
3837 pub fn r#set_ipv6_only(
3839 &self,
3840 mut value: bool,
3841 ) -> fidl::client::QueryResponseFut<
3842 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
3843 fidl::encoding::DefaultFuchsiaResourceDialect,
3844 > {
3845 SocketProxyInterface::r#set_ipv6_only(self, value)
3846 }
3847
3848 pub fn r#get_ipv6_only(
3850 &self,
3851 ) -> fidl::client::QueryResponseFut<
3852 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
3853 fidl::encoding::DefaultFuchsiaResourceDialect,
3854 > {
3855 SocketProxyInterface::r#get_ipv6_only(self)
3856 }
3857
3858 pub fn r#set_ipv6_receive_traffic_class(
3860 &self,
3861 mut value: bool,
3862 ) -> fidl::client::QueryResponseFut<
3863 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
3864 fidl::encoding::DefaultFuchsiaResourceDialect,
3865 > {
3866 SocketProxyInterface::r#set_ipv6_receive_traffic_class(self, value)
3867 }
3868
3869 pub fn r#get_ipv6_receive_traffic_class(
3871 &self,
3872 ) -> fidl::client::QueryResponseFut<
3873 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
3874 fidl::encoding::DefaultFuchsiaResourceDialect,
3875 > {
3876 SocketProxyInterface::r#get_ipv6_receive_traffic_class(self)
3877 }
3878
3879 pub fn r#set_ipv6_traffic_class(
3881 &self,
3882 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
3883 ) -> fidl::client::QueryResponseFut<
3884 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
3885 fidl::encoding::DefaultFuchsiaResourceDialect,
3886 > {
3887 SocketProxyInterface::r#set_ipv6_traffic_class(self, value)
3888 }
3889
3890 pub fn r#get_ipv6_traffic_class(
3892 &self,
3893 ) -> fidl::client::QueryResponseFut<
3894 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
3895 fidl::encoding::DefaultFuchsiaResourceDialect,
3896 > {
3897 SocketProxyInterface::r#get_ipv6_traffic_class(self)
3898 }
3899
3900 pub fn r#set_ipv6_receive_packet_info(
3902 &self,
3903 mut value: bool,
3904 ) -> fidl::client::QueryResponseFut<
3905 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
3906 fidl::encoding::DefaultFuchsiaResourceDialect,
3907 > {
3908 SocketProxyInterface::r#set_ipv6_receive_packet_info(self, value)
3909 }
3910
3911 pub fn r#get_ipv6_receive_packet_info(
3913 &self,
3914 ) -> fidl::client::QueryResponseFut<
3915 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
3916 fidl::encoding::DefaultFuchsiaResourceDialect,
3917 > {
3918 SocketProxyInterface::r#get_ipv6_receive_packet_info(self)
3919 }
3920
3921 pub fn r#get_original_destination(
3923 &self,
3924 ) -> fidl::client::QueryResponseFut<
3925 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
3926 fidl::encoding::DefaultFuchsiaResourceDialect,
3927 > {
3928 SocketProxyInterface::r#get_original_destination(self)
3929 }
3930
3931 pub fn r#describe(
3932 &self,
3933 ) -> fidl::client::QueryResponseFut<
3934 SocketDescribeResponse,
3935 fidl::encoding::DefaultFuchsiaResourceDialect,
3936 > {
3937 SocketProxyInterface::r#describe(self)
3938 }
3939
3940 pub fn r#recv_msg(
3955 &self,
3956 mut want_addr: bool,
3957 mut data_len: u32,
3958 mut want_control: bool,
3959 mut flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
3960 ) -> fidl::client::QueryResponseFut<
3961 SocketRecvMsgResult,
3962 fidl::encoding::DefaultFuchsiaResourceDialect,
3963 > {
3964 SocketProxyInterface::r#recv_msg(self, want_addr, data_len, want_control, flags)
3965 }
3966
3967 pub fn r#send_msg(
3975 &self,
3976 mut addr: Option<&fidl_fuchsia_net::SocketAddress>,
3977 mut data: &[u8],
3978 mut control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
3979 mut flags: fidl_fuchsia_posix_socket::SendMsgFlags,
3980 ) -> fidl::client::QueryResponseFut<
3981 SocketSendMsgResult,
3982 fidl::encoding::DefaultFuchsiaResourceDialect,
3983 > {
3984 SocketProxyInterface::r#send_msg(self, addr, data, control, flags)
3985 }
3986
3987 pub fn r#get_info(
3992 &self,
3993 ) -> fidl::client::QueryResponseFut<
3994 SocketGetInfoResult,
3995 fidl::encoding::DefaultFuchsiaResourceDialect,
3996 > {
3997 SocketProxyInterface::r#get_info(self)
3998 }
3999
4000 pub fn r#set_ip_header_included(
4002 &self,
4003 mut value: bool,
4004 ) -> fidl::client::QueryResponseFut<
4005 SocketSetIpHeaderIncludedResult,
4006 fidl::encoding::DefaultFuchsiaResourceDialect,
4007 > {
4008 SocketProxyInterface::r#set_ip_header_included(self, value)
4009 }
4010
4011 pub fn r#get_ip_header_included(
4013 &self,
4014 ) -> fidl::client::QueryResponseFut<
4015 SocketGetIpHeaderIncludedResult,
4016 fidl::encoding::DefaultFuchsiaResourceDialect,
4017 > {
4018 SocketProxyInterface::r#get_ip_header_included(self)
4019 }
4020
4021 pub fn r#set_icmpv6_filter(
4023 &self,
4024 mut filter: &Icmpv6Filter,
4025 ) -> fidl::client::QueryResponseFut<
4026 SocketSetIcmpv6FilterResult,
4027 fidl::encoding::DefaultFuchsiaResourceDialect,
4028 > {
4029 SocketProxyInterface::r#set_icmpv6_filter(self, filter)
4030 }
4031
4032 pub fn r#get_icmpv6_filter(
4034 &self,
4035 ) -> fidl::client::QueryResponseFut<
4036 SocketGetIcmpv6FilterResult,
4037 fidl::encoding::DefaultFuchsiaResourceDialect,
4038 > {
4039 SocketProxyInterface::r#get_icmpv6_filter(self)
4040 }
4041
4042 pub fn r#set_ipv6_checksum(
4044 &self,
4045 mut config: &Ipv6ChecksumConfiguration,
4046 ) -> fidl::client::QueryResponseFut<
4047 SocketSetIpv6ChecksumResult,
4048 fidl::encoding::DefaultFuchsiaResourceDialect,
4049 > {
4050 SocketProxyInterface::r#set_ipv6_checksum(self, config)
4051 }
4052
4053 pub fn r#get_ipv6_checksum(
4055 &self,
4056 ) -> fidl::client::QueryResponseFut<
4057 SocketGetIpv6ChecksumResult,
4058 fidl::encoding::DefaultFuchsiaResourceDialect,
4059 > {
4060 SocketProxyInterface::r#get_ipv6_checksum(self)
4061 }
4062}
4063
4064impl SocketProxyInterface for SocketProxy {
4065 fn r#clone(
4066 &self,
4067 mut request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
4068 ) -> Result<(), fidl::Error> {
4069 self.client.send::<fidl_fuchsia_unknown::CloneableCloneRequest>(
4070 (request,),
4071 0x20d8a7aba2168a79,
4072 fidl::encoding::DynamicFlags::empty(),
4073 )
4074 }
4075
4076 type CloseResponseFut = fidl::client::QueryResponseFut<
4077 fidl_fuchsia_unknown::CloseableCloseResult,
4078 fidl::encoding::DefaultFuchsiaResourceDialect,
4079 >;
4080 fn r#close(&self) -> Self::CloseResponseFut {
4081 fn _decode(
4082 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4083 ) -> Result<fidl_fuchsia_unknown::CloseableCloseResult, fidl::Error> {
4084 let _response = fidl::client::decode_transaction_body::<
4085 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>,
4086 fidl::encoding::DefaultFuchsiaResourceDialect,
4087 0x5ac5d459ad7f657e,
4088 >(_buf?)?;
4089 Ok(_response.map(|x| x))
4090 }
4091 self.client.send_query_and_decode::<
4092 fidl::encoding::EmptyPayload,
4093 fidl_fuchsia_unknown::CloseableCloseResult,
4094 >(
4095 (),
4096 0x5ac5d459ad7f657e,
4097 fidl::encoding::DynamicFlags::empty(),
4098 _decode,
4099 )
4100 }
4101
4102 type QueryResponseFut =
4103 fidl::client::QueryResponseFut<Vec<u8>, fidl::encoding::DefaultFuchsiaResourceDialect>;
4104 fn r#query(&self) -> Self::QueryResponseFut {
4105 fn _decode(
4106 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4107 ) -> Result<Vec<u8>, fidl::Error> {
4108 let _response = fidl::client::decode_transaction_body::<
4109 fidl_fuchsia_unknown::QueryableQueryResponse,
4110 fidl::encoding::DefaultFuchsiaResourceDialect,
4111 0x2658edee9decfc06,
4112 >(_buf?)?;
4113 Ok(_response.protocol)
4114 }
4115 self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, Vec<u8>>(
4116 (),
4117 0x2658edee9decfc06,
4118 fidl::encoding::DynamicFlags::empty(),
4119 _decode,
4120 )
4121 }
4122
4123 type SetReuseAddressResponseFut = fidl::client::QueryResponseFut<
4124 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
4125 fidl::encoding::DefaultFuchsiaResourceDialect,
4126 >;
4127 fn r#set_reuse_address(&self, mut value: bool) -> Self::SetReuseAddressResponseFut {
4128 fn _decode(
4129 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4130 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult, fidl::Error>
4131 {
4132 let _response = fidl::client::decode_transaction_body::<
4133 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4134 fidl::encoding::DefaultFuchsiaResourceDialect,
4135 0x1fd74ee8b9a4a876,
4136 >(_buf?)?;
4137 Ok(_response.map(|x| x))
4138 }
4139 self.client.send_query_and_decode::<
4140 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest,
4141 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressResult,
4142 >(
4143 (value,),
4144 0x1fd74ee8b9a4a876,
4145 fidl::encoding::DynamicFlags::empty(),
4146 _decode,
4147 )
4148 }
4149
4150 type GetReuseAddressResponseFut = fidl::client::QueryResponseFut<
4151 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
4152 fidl::encoding::DefaultFuchsiaResourceDialect,
4153 >;
4154 fn r#get_reuse_address(&self) -> Self::GetReuseAddressResponseFut {
4155 fn _decode(
4156 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4157 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult, fidl::Error>
4158 {
4159 let _response = fidl::client::decode_transaction_body::<
4160 fidl::encoding::ResultType<
4161 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResponse,
4162 fidl_fuchsia_posix::Errno,
4163 >,
4164 fidl::encoding::DefaultFuchsiaResourceDialect,
4165 0x67b7206b8d1bc0a5,
4166 >(_buf?)?;
4167 Ok(_response.map(|x| x.value))
4168 }
4169 self.client.send_query_and_decode::<
4170 fidl::encoding::EmptyPayload,
4171 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResult,
4172 >(
4173 (),
4174 0x67b7206b8d1bc0a5,
4175 fidl::encoding::DynamicFlags::empty(),
4176 _decode,
4177 )
4178 }
4179
4180 type GetErrorResponseFut = fidl::client::QueryResponseFut<
4181 fidl_fuchsia_posix_socket::BaseSocketGetErrorResult,
4182 fidl::encoding::DefaultFuchsiaResourceDialect,
4183 >;
4184 fn r#get_error(&self) -> Self::GetErrorResponseFut {
4185 fn _decode(
4186 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4187 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetErrorResult, fidl::Error> {
4188 let _response = fidl::client::decode_transaction_body::<
4189 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4190 fidl::encoding::DefaultFuchsiaResourceDialect,
4191 0x5aad39b33e5f6ebb,
4192 >(_buf?)?;
4193 Ok(_response.map(|x| x))
4194 }
4195 self.client.send_query_and_decode::<
4196 fidl::encoding::EmptyPayload,
4197 fidl_fuchsia_posix_socket::BaseSocketGetErrorResult,
4198 >(
4199 (),
4200 0x5aad39b33e5f6ebb,
4201 fidl::encoding::DynamicFlags::empty(),
4202 _decode,
4203 )
4204 }
4205
4206 type SetBroadcastResponseFut = fidl::client::QueryResponseFut<
4207 fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult,
4208 fidl::encoding::DefaultFuchsiaResourceDialect,
4209 >;
4210 fn r#set_broadcast(&self, mut value: bool) -> Self::SetBroadcastResponseFut {
4211 fn _decode(
4212 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4213 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult, fidl::Error> {
4214 let _response = fidl::client::decode_transaction_body::<
4215 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4216 fidl::encoding::DefaultFuchsiaResourceDialect,
4217 0x6023e081ce3cd947,
4218 >(_buf?)?;
4219 Ok(_response.map(|x| x))
4220 }
4221 self.client.send_query_and_decode::<
4222 fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest,
4223 fidl_fuchsia_posix_socket::BaseSocketSetBroadcastResult,
4224 >(
4225 (value,),
4226 0x6023e081ce3cd947,
4227 fidl::encoding::DynamicFlags::empty(),
4228 _decode,
4229 )
4230 }
4231
4232 type GetBroadcastResponseFut = fidl::client::QueryResponseFut<
4233 fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult,
4234 fidl::encoding::DefaultFuchsiaResourceDialect,
4235 >;
4236 fn r#get_broadcast(&self) -> Self::GetBroadcastResponseFut {
4237 fn _decode(
4238 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4239 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult, fidl::Error> {
4240 let _response = fidl::client::decode_transaction_body::<
4241 fidl::encoding::ResultType<
4242 fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResponse,
4243 fidl_fuchsia_posix::Errno,
4244 >,
4245 fidl::encoding::DefaultFuchsiaResourceDialect,
4246 0x68796fc556f9780d,
4247 >(_buf?)?;
4248 Ok(_response.map(|x| x.value))
4249 }
4250 self.client.send_query_and_decode::<
4251 fidl::encoding::EmptyPayload,
4252 fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResult,
4253 >(
4254 (),
4255 0x68796fc556f9780d,
4256 fidl::encoding::DynamicFlags::empty(),
4257 _decode,
4258 )
4259 }
4260
4261 type SetSendBufferResponseFut = fidl::client::QueryResponseFut<
4262 fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult,
4263 fidl::encoding::DefaultFuchsiaResourceDialect,
4264 >;
4265 fn r#set_send_buffer(&self, mut value_bytes: u64) -> Self::SetSendBufferResponseFut {
4266 fn _decode(
4267 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4268 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult, fidl::Error> {
4269 let _response = fidl::client::decode_transaction_body::<
4270 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4271 fidl::encoding::DefaultFuchsiaResourceDialect,
4272 0x756eac32d73a7a70,
4273 >(_buf?)?;
4274 Ok(_response.map(|x| x))
4275 }
4276 self.client.send_query_and_decode::<
4277 fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest,
4278 fidl_fuchsia_posix_socket::BaseSocketSetSendBufferResult,
4279 >(
4280 (value_bytes,),
4281 0x756eac32d73a7a70,
4282 fidl::encoding::DynamicFlags::empty(),
4283 _decode,
4284 )
4285 }
4286
4287 type GetSendBufferResponseFut = fidl::client::QueryResponseFut<
4288 fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult,
4289 fidl::encoding::DefaultFuchsiaResourceDialect,
4290 >;
4291 fn r#get_send_buffer(&self) -> Self::GetSendBufferResponseFut {
4292 fn _decode(
4293 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4294 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult, fidl::Error> {
4295 let _response = fidl::client::decode_transaction_body::<
4296 fidl::encoding::ResultType<
4297 fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResponse,
4298 fidl_fuchsia_posix::Errno,
4299 >,
4300 fidl::encoding::DefaultFuchsiaResourceDialect,
4301 0x78a52fd9c7b2410b,
4302 >(_buf?)?;
4303 Ok(_response.map(|x| x.value_bytes))
4304 }
4305 self.client.send_query_and_decode::<
4306 fidl::encoding::EmptyPayload,
4307 fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResult,
4308 >(
4309 (),
4310 0x78a52fd9c7b2410b,
4311 fidl::encoding::DynamicFlags::empty(),
4312 _decode,
4313 )
4314 }
4315
4316 type SetReceiveBufferResponseFut = fidl::client::QueryResponseFut<
4317 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
4318 fidl::encoding::DefaultFuchsiaResourceDialect,
4319 >;
4320 fn r#set_receive_buffer(&self, mut value_bytes: u64) -> Self::SetReceiveBufferResponseFut {
4321 fn _decode(
4322 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4323 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult, fidl::Error>
4324 {
4325 let _response = fidl::client::decode_transaction_body::<
4326 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4327 fidl::encoding::DefaultFuchsiaResourceDialect,
4328 0x6b0cf2f1919c7001,
4329 >(_buf?)?;
4330 Ok(_response.map(|x| x))
4331 }
4332 self.client.send_query_and_decode::<
4333 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest,
4334 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferResult,
4335 >(
4336 (value_bytes,),
4337 0x6b0cf2f1919c7001,
4338 fidl::encoding::DynamicFlags::empty(),
4339 _decode,
4340 )
4341 }
4342
4343 type GetReceiveBufferResponseFut = fidl::client::QueryResponseFut<
4344 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
4345 fidl::encoding::DefaultFuchsiaResourceDialect,
4346 >;
4347 fn r#get_receive_buffer(&self) -> Self::GetReceiveBufferResponseFut {
4348 fn _decode(
4349 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4350 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult, fidl::Error>
4351 {
4352 let _response = fidl::client::decode_transaction_body::<
4353 fidl::encoding::ResultType<
4354 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResponse,
4355 fidl_fuchsia_posix::Errno,
4356 >,
4357 fidl::encoding::DefaultFuchsiaResourceDialect,
4358 0x14c1a4b64f709e5c,
4359 >(_buf?)?;
4360 Ok(_response.map(|x| x.value_bytes))
4361 }
4362 self.client.send_query_and_decode::<
4363 fidl::encoding::EmptyPayload,
4364 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResult,
4365 >(
4366 (),
4367 0x14c1a4b64f709e5c,
4368 fidl::encoding::DynamicFlags::empty(),
4369 _decode,
4370 )
4371 }
4372
4373 type SetKeepAliveResponseFut = fidl::client::QueryResponseFut<
4374 fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult,
4375 fidl::encoding::DefaultFuchsiaResourceDialect,
4376 >;
4377 fn r#set_keep_alive(&self, mut value: bool) -> Self::SetKeepAliveResponseFut {
4378 fn _decode(
4379 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4380 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult, fidl::Error> {
4381 let _response = fidl::client::decode_transaction_body::<
4382 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4383 fidl::encoding::DefaultFuchsiaResourceDialect,
4384 0x572df8f0b920d2c7,
4385 >(_buf?)?;
4386 Ok(_response.map(|x| x))
4387 }
4388 self.client.send_query_and_decode::<
4389 fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest,
4390 fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveResult,
4391 >(
4392 (value,),
4393 0x572df8f0b920d2c7,
4394 fidl::encoding::DynamicFlags::empty(),
4395 _decode,
4396 )
4397 }
4398
4399 type GetKeepAliveResponseFut = fidl::client::QueryResponseFut<
4400 fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult,
4401 fidl::encoding::DefaultFuchsiaResourceDialect,
4402 >;
4403 fn r#get_keep_alive(&self) -> Self::GetKeepAliveResponseFut {
4404 fn _decode(
4405 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4406 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult, fidl::Error> {
4407 let _response = fidl::client::decode_transaction_body::<
4408 fidl::encoding::ResultType<
4409 fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResponse,
4410 fidl_fuchsia_posix::Errno,
4411 >,
4412 fidl::encoding::DefaultFuchsiaResourceDialect,
4413 0x2dd29d3215f2c9d2,
4414 >(_buf?)?;
4415 Ok(_response.map(|x| x.value))
4416 }
4417 self.client.send_query_and_decode::<
4418 fidl::encoding::EmptyPayload,
4419 fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResult,
4420 >(
4421 (),
4422 0x2dd29d3215f2c9d2,
4423 fidl::encoding::DynamicFlags::empty(),
4424 _decode,
4425 )
4426 }
4427
4428 type SetOutOfBandInlineResponseFut = fidl::client::QueryResponseFut<
4429 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
4430 fidl::encoding::DefaultFuchsiaResourceDialect,
4431 >;
4432 fn r#set_out_of_band_inline(&self, mut value: bool) -> Self::SetOutOfBandInlineResponseFut {
4433 fn _decode(
4434 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4435 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult, fidl::Error>
4436 {
4437 let _response = fidl::client::decode_transaction_body::<
4438 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4439 fidl::encoding::DefaultFuchsiaResourceDialect,
4440 0x3ecb49968bee439,
4441 >(_buf?)?;
4442 Ok(_response.map(|x| x))
4443 }
4444 self.client.send_query_and_decode::<
4445 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest,
4446 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineResult,
4447 >(
4448 (value,),
4449 0x3ecb49968bee439,
4450 fidl::encoding::DynamicFlags::empty(),
4451 _decode,
4452 )
4453 }
4454
4455 type GetOutOfBandInlineResponseFut = fidl::client::QueryResponseFut<
4456 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
4457 fidl::encoding::DefaultFuchsiaResourceDialect,
4458 >;
4459 fn r#get_out_of_band_inline(&self) -> Self::GetOutOfBandInlineResponseFut {
4460 fn _decode(
4461 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4462 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult, fidl::Error>
4463 {
4464 let _response = fidl::client::decode_transaction_body::<
4465 fidl::encoding::ResultType<
4466 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResponse,
4467 fidl_fuchsia_posix::Errno,
4468 >,
4469 fidl::encoding::DefaultFuchsiaResourceDialect,
4470 0x348c1ab3aeca1745,
4471 >(_buf?)?;
4472 Ok(_response.map(|x| x.value))
4473 }
4474 self.client.send_query_and_decode::<
4475 fidl::encoding::EmptyPayload,
4476 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResult,
4477 >(
4478 (),
4479 0x348c1ab3aeca1745,
4480 fidl::encoding::DynamicFlags::empty(),
4481 _decode,
4482 )
4483 }
4484
4485 type SetNoCheckResponseFut = fidl::client::QueryResponseFut<
4486 fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult,
4487 fidl::encoding::DefaultFuchsiaResourceDialect,
4488 >;
4489 fn r#set_no_check(&self, mut value: bool) -> Self::SetNoCheckResponseFut {
4490 fn _decode(
4491 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4492 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult, fidl::Error> {
4493 let _response = fidl::client::decode_transaction_body::<
4494 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4495 fidl::encoding::DefaultFuchsiaResourceDialect,
4496 0x6bbf00c53a4c78c2,
4497 >(_buf?)?;
4498 Ok(_response.map(|x| x))
4499 }
4500 self.client.send_query_and_decode::<
4501 fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest,
4502 fidl_fuchsia_posix_socket::BaseSocketSetNoCheckResult,
4503 >(
4504 (value,),
4505 0x6bbf00c53a4c78c2,
4506 fidl::encoding::DynamicFlags::empty(),
4507 _decode,
4508 )
4509 }
4510
4511 type GetNoCheckResponseFut = fidl::client::QueryResponseFut<
4512 fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult,
4513 fidl::encoding::DefaultFuchsiaResourceDialect,
4514 >;
4515 fn r#get_no_check(&self) -> Self::GetNoCheckResponseFut {
4516 fn _decode(
4517 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4518 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult, fidl::Error> {
4519 let _response = fidl::client::decode_transaction_body::<
4520 fidl::encoding::ResultType<
4521 fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResponse,
4522 fidl_fuchsia_posix::Errno,
4523 >,
4524 fidl::encoding::DefaultFuchsiaResourceDialect,
4525 0x2cd4249286417694,
4526 >(_buf?)?;
4527 Ok(_response.map(|x| x.value))
4528 }
4529 self.client.send_query_and_decode::<
4530 fidl::encoding::EmptyPayload,
4531 fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResult,
4532 >(
4533 (),
4534 0x2cd4249286417694,
4535 fidl::encoding::DynamicFlags::empty(),
4536 _decode,
4537 )
4538 }
4539
4540 type SetLingerResponseFut = fidl::client::QueryResponseFut<
4541 fidl_fuchsia_posix_socket::BaseSocketSetLingerResult,
4542 fidl::encoding::DefaultFuchsiaResourceDialect,
4543 >;
4544 fn r#set_linger(&self, mut linger: bool, mut length_secs: u32) -> Self::SetLingerResponseFut {
4545 fn _decode(
4546 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4547 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetLingerResult, fidl::Error> {
4548 let _response = fidl::client::decode_transaction_body::<
4549 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4550 fidl::encoding::DefaultFuchsiaResourceDialect,
4551 0x45386351246e998e,
4552 >(_buf?)?;
4553 Ok(_response.map(|x| x))
4554 }
4555 self.client.send_query_and_decode::<
4556 fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest,
4557 fidl_fuchsia_posix_socket::BaseSocketSetLingerResult,
4558 >(
4559 (linger, length_secs,),
4560 0x45386351246e998e,
4561 fidl::encoding::DynamicFlags::empty(),
4562 _decode,
4563 )
4564 }
4565
4566 type GetLingerResponseFut = fidl::client::QueryResponseFut<
4567 fidl_fuchsia_posix_socket::BaseSocketGetLingerResult,
4568 fidl::encoding::DefaultFuchsiaResourceDialect,
4569 >;
4570 fn r#get_linger(&self) -> Self::GetLingerResponseFut {
4571 fn _decode(
4572 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4573 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetLingerResult, fidl::Error> {
4574 let _response = fidl::client::decode_transaction_body::<
4575 fidl::encoding::ResultType<
4576 fidl_fuchsia_posix_socket::BaseSocketGetLingerResponse,
4577 fidl_fuchsia_posix::Errno,
4578 >,
4579 fidl::encoding::DefaultFuchsiaResourceDialect,
4580 0x48eb20fc5ccb0e45,
4581 >(_buf?)?;
4582 Ok(_response.map(|x| (x.linger, x.length_secs)))
4583 }
4584 self.client.send_query_and_decode::<
4585 fidl::encoding::EmptyPayload,
4586 fidl_fuchsia_posix_socket::BaseSocketGetLingerResult,
4587 >(
4588 (),
4589 0x48eb20fc5ccb0e45,
4590 fidl::encoding::DynamicFlags::empty(),
4591 _decode,
4592 )
4593 }
4594
4595 type SetReusePortResponseFut = fidl::client::QueryResponseFut<
4596 fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult,
4597 fidl::encoding::DefaultFuchsiaResourceDialect,
4598 >;
4599 fn r#set_reuse_port(&self, mut value: bool) -> Self::SetReusePortResponseFut {
4600 fn _decode(
4601 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4602 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult, fidl::Error> {
4603 let _response = fidl::client::decode_transaction_body::<
4604 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4605 fidl::encoding::DefaultFuchsiaResourceDialect,
4606 0x24dd3e5cb36d9ccb,
4607 >(_buf?)?;
4608 Ok(_response.map(|x| x))
4609 }
4610 self.client.send_query_and_decode::<
4611 fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest,
4612 fidl_fuchsia_posix_socket::BaseSocketSetReusePortResult,
4613 >(
4614 (value,),
4615 0x24dd3e5cb36d9ccb,
4616 fidl::encoding::DynamicFlags::empty(),
4617 _decode,
4618 )
4619 }
4620
4621 type GetReusePortResponseFut = fidl::client::QueryResponseFut<
4622 fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult,
4623 fidl::encoding::DefaultFuchsiaResourceDialect,
4624 >;
4625 fn r#get_reuse_port(&self) -> Self::GetReusePortResponseFut {
4626 fn _decode(
4627 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4628 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult, fidl::Error> {
4629 let _response = fidl::client::decode_transaction_body::<
4630 fidl::encoding::ResultType<
4631 fidl_fuchsia_posix_socket::BaseSocketGetReusePortResponse,
4632 fidl_fuchsia_posix::Errno,
4633 >,
4634 fidl::encoding::DefaultFuchsiaResourceDialect,
4635 0x7a112c1ab54ff828,
4636 >(_buf?)?;
4637 Ok(_response.map(|x| x.value))
4638 }
4639 self.client.send_query_and_decode::<
4640 fidl::encoding::EmptyPayload,
4641 fidl_fuchsia_posix_socket::BaseSocketGetReusePortResult,
4642 >(
4643 (),
4644 0x7a112c1ab54ff828,
4645 fidl::encoding::DynamicFlags::empty(),
4646 _decode,
4647 )
4648 }
4649
4650 type GetAcceptConnResponseFut = fidl::client::QueryResponseFut<
4651 fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult,
4652 fidl::encoding::DefaultFuchsiaResourceDialect,
4653 >;
4654 fn r#get_accept_conn(&self) -> Self::GetAcceptConnResponseFut {
4655 fn _decode(
4656 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4657 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult, fidl::Error> {
4658 let _response = fidl::client::decode_transaction_body::<
4659 fidl::encoding::ResultType<
4660 fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResponse,
4661 fidl_fuchsia_posix::Errno,
4662 >,
4663 fidl::encoding::DefaultFuchsiaResourceDialect,
4664 0x67ce6db6c2ec8966,
4665 >(_buf?)?;
4666 Ok(_response.map(|x| x.value))
4667 }
4668 self.client.send_query_and_decode::<
4669 fidl::encoding::EmptyPayload,
4670 fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResult,
4671 >(
4672 (),
4673 0x67ce6db6c2ec8966,
4674 fidl::encoding::DynamicFlags::empty(),
4675 _decode,
4676 )
4677 }
4678
4679 type SetBindToDeviceResponseFut = fidl::client::QueryResponseFut<
4680 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
4681 fidl::encoding::DefaultFuchsiaResourceDialect,
4682 >;
4683 fn r#set_bind_to_device(&self, mut value: &str) -> Self::SetBindToDeviceResponseFut {
4684 fn _decode(
4685 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4686 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult, fidl::Error>
4687 {
4688 let _response = fidl::client::decode_transaction_body::<
4689 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4690 fidl::encoding::DefaultFuchsiaResourceDialect,
4691 0x2118b483f28aafc4,
4692 >(_buf?)?;
4693 Ok(_response.map(|x| x))
4694 }
4695 self.client.send_query_and_decode::<
4696 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest,
4697 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceResult,
4698 >(
4699 (value,),
4700 0x2118b483f28aafc4,
4701 fidl::encoding::DynamicFlags::empty(),
4702 _decode,
4703 )
4704 }
4705
4706 type GetBindToDeviceResponseFut = fidl::client::QueryResponseFut<
4707 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
4708 fidl::encoding::DefaultFuchsiaResourceDialect,
4709 >;
4710 fn r#get_bind_to_device(&self) -> Self::GetBindToDeviceResponseFut {
4711 fn _decode(
4712 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4713 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult, fidl::Error>
4714 {
4715 let _response = fidl::client::decode_transaction_body::<
4716 fidl::encoding::ResultType<
4717 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResponse,
4718 fidl_fuchsia_posix::Errno,
4719 >,
4720 fidl::encoding::DefaultFuchsiaResourceDialect,
4721 0x1ab1fbf0ef7906c8,
4722 >(_buf?)?;
4723 Ok(_response.map(|x| x.value))
4724 }
4725 self.client.send_query_and_decode::<
4726 fidl::encoding::EmptyPayload,
4727 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResult,
4728 >(
4729 (),
4730 0x1ab1fbf0ef7906c8,
4731 fidl::encoding::DynamicFlags::empty(),
4732 _decode,
4733 )
4734 }
4735
4736 type SetBindToInterfaceIndexResponseFut = fidl::client::QueryResponseFut<
4737 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
4738 fidl::encoding::DefaultFuchsiaResourceDialect,
4739 >;
4740 fn r#set_bind_to_interface_index(
4741 &self,
4742 mut value: u64,
4743 ) -> Self::SetBindToInterfaceIndexResponseFut {
4744 fn _decode(
4745 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4746 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult, fidl::Error>
4747 {
4748 let _response = fidl::client::decode_transaction_body::<
4749 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4750 fidl::encoding::DefaultFuchsiaResourceDialect,
4751 0x6e387a0def00821,
4752 >(_buf?)?;
4753 Ok(_response.map(|x| x))
4754 }
4755 self.client.send_query_and_decode::<
4756 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest,
4757 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexResult,
4758 >(
4759 (value,),
4760 0x6e387a0def00821,
4761 fidl::encoding::DynamicFlags::empty(),
4762 _decode,
4763 )
4764 }
4765
4766 type GetBindToInterfaceIndexResponseFut = fidl::client::QueryResponseFut<
4767 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
4768 fidl::encoding::DefaultFuchsiaResourceDialect,
4769 >;
4770 fn r#get_bind_to_interface_index(&self) -> Self::GetBindToInterfaceIndexResponseFut {
4771 fn _decode(
4772 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4773 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult, fidl::Error>
4774 {
4775 let _response = fidl::client::decode_transaction_body::<
4776 fidl::encoding::ResultType<
4777 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResponse,
4778 fidl_fuchsia_posix::Errno,
4779 >,
4780 fidl::encoding::DefaultFuchsiaResourceDialect,
4781 0x59c31dd3e3078295,
4782 >(_buf?)?;
4783 Ok(_response.map(|x| x.value))
4784 }
4785 self.client.send_query_and_decode::<
4786 fidl::encoding::EmptyPayload,
4787 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResult,
4788 >(
4789 (),
4790 0x59c31dd3e3078295,
4791 fidl::encoding::DynamicFlags::empty(),
4792 _decode,
4793 )
4794 }
4795
4796 type SetTimestampResponseFut = fidl::client::QueryResponseFut<
4797 fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult,
4798 fidl::encoding::DefaultFuchsiaResourceDialect,
4799 >;
4800 fn r#set_timestamp(
4801 &self,
4802 mut value: fidl_fuchsia_posix_socket::TimestampOption,
4803 ) -> Self::SetTimestampResponseFut {
4804 fn _decode(
4805 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4806 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult, fidl::Error> {
4807 let _response = fidl::client::decode_transaction_body::<
4808 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4809 fidl::encoding::DefaultFuchsiaResourceDialect,
4810 0x285d6516c263d839,
4811 >(_buf?)?;
4812 Ok(_response.map(|x| x))
4813 }
4814 self.client.send_query_and_decode::<
4815 fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest,
4816 fidl_fuchsia_posix_socket::BaseSocketSetTimestampResult,
4817 >(
4818 (value,),
4819 0x285d6516c263d839,
4820 fidl::encoding::DynamicFlags::empty(),
4821 _decode,
4822 )
4823 }
4824
4825 type GetTimestampResponseFut = fidl::client::QueryResponseFut<
4826 fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult,
4827 fidl::encoding::DefaultFuchsiaResourceDialect,
4828 >;
4829 fn r#get_timestamp(&self) -> Self::GetTimestampResponseFut {
4830 fn _decode(
4831 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4832 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult, fidl::Error> {
4833 let _response = fidl::client::decode_transaction_body::<
4834 fidl::encoding::ResultType<
4835 fidl_fuchsia_posix_socket::BaseSocketGetTimestampResponse,
4836 fidl_fuchsia_posix::Errno,
4837 >,
4838 fidl::encoding::DefaultFuchsiaResourceDialect,
4839 0x49f2fffbbcc2bd27,
4840 >(_buf?)?;
4841 Ok(_response.map(|x| x.value))
4842 }
4843 self.client.send_query_and_decode::<
4844 fidl::encoding::EmptyPayload,
4845 fidl_fuchsia_posix_socket::BaseSocketGetTimestampResult,
4846 >(
4847 (),
4848 0x49f2fffbbcc2bd27,
4849 fidl::encoding::DynamicFlags::empty(),
4850 _decode,
4851 )
4852 }
4853
4854 type SetMarkResponseFut = fidl::client::QueryResponseFut<
4855 fidl_fuchsia_posix_socket::BaseSocketSetMarkResult,
4856 fidl::encoding::DefaultFuchsiaResourceDialect,
4857 >;
4858 fn r#set_mark(
4859 &self,
4860 mut domain: fidl_fuchsia_net::MarkDomain,
4861 mut mark: &fidl_fuchsia_posix_socket::OptionalUint32,
4862 ) -> Self::SetMarkResponseFut {
4863 fn _decode(
4864 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4865 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketSetMarkResult, fidl::Error> {
4866 let _response = fidl::client::decode_transaction_body::<
4867 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4868 fidl::encoding::DefaultFuchsiaResourceDialect,
4869 0x6ead6de09f653236,
4870 >(_buf?)?;
4871 Ok(_response.map(|x| x))
4872 }
4873 self.client.send_query_and_decode::<
4874 fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest,
4875 fidl_fuchsia_posix_socket::BaseSocketSetMarkResult,
4876 >(
4877 (domain, mark,),
4878 0x6ead6de09f653236,
4879 fidl::encoding::DynamicFlags::empty(),
4880 _decode,
4881 )
4882 }
4883
4884 type GetMarkResponseFut = fidl::client::QueryResponseFut<
4885 fidl_fuchsia_posix_socket::BaseSocketGetMarkResult,
4886 fidl::encoding::DefaultFuchsiaResourceDialect,
4887 >;
4888 fn r#get_mark(&self, mut domain: fidl_fuchsia_net::MarkDomain) -> Self::GetMarkResponseFut {
4889 fn _decode(
4890 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4891 ) -> Result<fidl_fuchsia_posix_socket::BaseSocketGetMarkResult, fidl::Error> {
4892 let _response = fidl::client::decode_transaction_body::<
4893 fidl::encoding::ResultType<
4894 fidl_fuchsia_posix_socket::BaseSocketGetMarkResponse,
4895 fidl_fuchsia_posix::Errno,
4896 >,
4897 fidl::encoding::DefaultFuchsiaResourceDialect,
4898 0x57a2752c61d93d47,
4899 >(_buf?)?;
4900 Ok(_response.map(|x| x.mark))
4901 }
4902 self.client.send_query_and_decode::<
4903 fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest,
4904 fidl_fuchsia_posix_socket::BaseSocketGetMarkResult,
4905 >(
4906 (domain,),
4907 0x57a2752c61d93d47,
4908 fidl::encoding::DynamicFlags::empty(),
4909 _decode,
4910 )
4911 }
4912
4913 type BindResponseFut = fidl::client::QueryResponseFut<
4914 fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult,
4915 fidl::encoding::DefaultFuchsiaResourceDialect,
4916 >;
4917 fn r#bind(&self, mut addr: &fidl_fuchsia_net::SocketAddress) -> Self::BindResponseFut {
4918 fn _decode(
4919 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4920 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult, fidl::Error> {
4921 let _response = fidl::client::decode_transaction_body::<
4922 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4923 fidl::encoding::DefaultFuchsiaResourceDialect,
4924 0x4bc6400ae92125d,
4925 >(_buf?)?;
4926 Ok(_response.map(|x| x))
4927 }
4928 self.client.send_query_and_decode::<
4929 fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest,
4930 fidl_fuchsia_posix_socket::BaseNetworkSocketBindResult,
4931 >(
4932 (addr,),
4933 0x4bc6400ae92125d,
4934 fidl::encoding::DynamicFlags::empty(),
4935 _decode,
4936 )
4937 }
4938
4939 type ConnectResponseFut = fidl::client::QueryResponseFut<
4940 fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult,
4941 fidl::encoding::DefaultFuchsiaResourceDialect,
4942 >;
4943 fn r#connect(&self, mut addr: &fidl_fuchsia_net::SocketAddress) -> Self::ConnectResponseFut {
4944 fn _decode(
4945 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4946 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult, fidl::Error>
4947 {
4948 let _response = fidl::client::decode_transaction_body::<
4949 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4950 fidl::encoding::DefaultFuchsiaResourceDialect,
4951 0x5f05f19bfdd38871,
4952 >(_buf?)?;
4953 Ok(_response.map(|x| x))
4954 }
4955 self.client.send_query_and_decode::<
4956 fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest,
4957 fidl_fuchsia_posix_socket::BaseNetworkSocketConnectResult,
4958 >(
4959 (addr,),
4960 0x5f05f19bfdd38871,
4961 fidl::encoding::DynamicFlags::empty(),
4962 _decode,
4963 )
4964 }
4965
4966 type DisconnectResponseFut = fidl::client::QueryResponseFut<
4967 fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
4968 fidl::encoding::DefaultFuchsiaResourceDialect,
4969 >;
4970 fn r#disconnect(&self) -> Self::DisconnectResponseFut {
4971 fn _decode(
4972 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
4973 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult, fidl::Error>
4974 {
4975 let _response = fidl::client::decode_transaction_body::<
4976 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
4977 fidl::encoding::DefaultFuchsiaResourceDialect,
4978 0x74e63b91f7b29b2,
4979 >(_buf?)?;
4980 Ok(_response.map(|x| x))
4981 }
4982 self.client.send_query_and_decode::<
4983 fidl::encoding::EmptyPayload,
4984 fidl_fuchsia_posix_socket::BaseNetworkSocketDisconnectResult,
4985 >(
4986 (),
4987 0x74e63b91f7b29b2,
4988 fidl::encoding::DynamicFlags::empty(),
4989 _decode,
4990 )
4991 }
4992
4993 type GetSockNameResponseFut = fidl::client::QueryResponseFut<
4994 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
4995 fidl::encoding::DefaultFuchsiaResourceDialect,
4996 >;
4997 fn r#get_sock_name(&self) -> Self::GetSockNameResponseFut {
4998 fn _decode(
4999 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5000 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult, fidl::Error>
5001 {
5002 let _response = fidl::client::decode_transaction_body::<
5003 fidl::encoding::ResultType<
5004 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResponse,
5005 fidl_fuchsia_posix::Errno,
5006 >,
5007 fidl::encoding::DefaultFuchsiaResourceDialect,
5008 0x475f23f84a1a4f85,
5009 >(_buf?)?;
5010 Ok(_response.map(|x| x.addr))
5011 }
5012 self.client.send_query_and_decode::<
5013 fidl::encoding::EmptyPayload,
5014 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResult,
5015 >(
5016 (),
5017 0x475f23f84a1a4f85,
5018 fidl::encoding::DynamicFlags::empty(),
5019 _decode,
5020 )
5021 }
5022
5023 type GetPeerNameResponseFut = fidl::client::QueryResponseFut<
5024 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
5025 fidl::encoding::DefaultFuchsiaResourceDialect,
5026 >;
5027 fn r#get_peer_name(&self) -> Self::GetPeerNameResponseFut {
5028 fn _decode(
5029 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5030 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult, fidl::Error>
5031 {
5032 let _response = fidl::client::decode_transaction_body::<
5033 fidl::encoding::ResultType<
5034 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResponse,
5035 fidl_fuchsia_posix::Errno,
5036 >,
5037 fidl::encoding::DefaultFuchsiaResourceDialect,
5038 0x1ffecf4bd5b6432e,
5039 >(_buf?)?;
5040 Ok(_response.map(|x| x.addr))
5041 }
5042 self.client.send_query_and_decode::<
5043 fidl::encoding::EmptyPayload,
5044 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResult,
5045 >(
5046 (),
5047 0x1ffecf4bd5b6432e,
5048 fidl::encoding::DynamicFlags::empty(),
5049 _decode,
5050 )
5051 }
5052
5053 type ShutdownResponseFut = fidl::client::QueryResponseFut<
5054 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
5055 fidl::encoding::DefaultFuchsiaResourceDialect,
5056 >;
5057 fn r#shutdown(
5058 &self,
5059 mut mode: fidl_fuchsia_posix_socket::ShutdownMode,
5060 ) -> Self::ShutdownResponseFut {
5061 fn _decode(
5062 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5063 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult, fidl::Error>
5064 {
5065 let _response = fidl::client::decode_transaction_body::<
5066 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5067 fidl::encoding::DefaultFuchsiaResourceDialect,
5068 0x247f38b6db68c336,
5069 >(_buf?)?;
5070 Ok(_response.map(|x| x))
5071 }
5072 self.client.send_query_and_decode::<
5073 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest,
5074 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownResult,
5075 >(
5076 (mode,),
5077 0x247f38b6db68c336,
5078 fidl::encoding::DynamicFlags::empty(),
5079 _decode,
5080 )
5081 }
5082
5083 type SetIpTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
5084 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
5085 fidl::encoding::DefaultFuchsiaResourceDialect,
5086 >;
5087 fn r#set_ip_type_of_service(&self, mut value: u8) -> Self::SetIpTypeOfServiceResponseFut {
5088 fn _decode(
5089 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5090 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult, fidl::Error>
5091 {
5092 let _response = fidl::client::decode_transaction_body::<
5093 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5094 fidl::encoding::DefaultFuchsiaResourceDialect,
5095 0x995c600475b6d46,
5096 >(_buf?)?;
5097 Ok(_response.map(|x| x))
5098 }
5099 self.client.send_query_and_decode::<
5100 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest,
5101 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceResult,
5102 >(
5103 (value,),
5104 0x995c600475b6d46,
5105 fidl::encoding::DynamicFlags::empty(),
5106 _decode,
5107 )
5108 }
5109
5110 type GetIpTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
5111 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
5112 fidl::encoding::DefaultFuchsiaResourceDialect,
5113 >;
5114 fn r#get_ip_type_of_service(&self) -> Self::GetIpTypeOfServiceResponseFut {
5115 fn _decode(
5116 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5117 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult, fidl::Error>
5118 {
5119 let _response = fidl::client::decode_transaction_body::<
5120 fidl::encoding::ResultType<
5121 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResponse,
5122 fidl_fuchsia_posix::Errno,
5123 >,
5124 fidl::encoding::DefaultFuchsiaResourceDialect,
5125 0x3814a04259f75fcb,
5126 >(_buf?)?;
5127 Ok(_response.map(|x| x.value))
5128 }
5129 self.client.send_query_and_decode::<
5130 fidl::encoding::EmptyPayload,
5131 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResult,
5132 >(
5133 (),
5134 0x3814a04259f75fcb,
5135 fidl::encoding::DynamicFlags::empty(),
5136 _decode,
5137 )
5138 }
5139
5140 type SetIpTtlResponseFut = fidl::client::QueryResponseFut<
5141 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
5142 fidl::encoding::DefaultFuchsiaResourceDialect,
5143 >;
5144 fn r#set_ip_ttl(
5145 &self,
5146 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
5147 ) -> Self::SetIpTtlResponseFut {
5148 fn _decode(
5149 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5150 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult, fidl::Error>
5151 {
5152 let _response = fidl::client::decode_transaction_body::<
5153 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5154 fidl::encoding::DefaultFuchsiaResourceDialect,
5155 0x29e2424b433ae1ef,
5156 >(_buf?)?;
5157 Ok(_response.map(|x| x))
5158 }
5159 self.client.send_query_and_decode::<
5160 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest,
5161 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlResult,
5162 >(
5163 (value,),
5164 0x29e2424b433ae1ef,
5165 fidl::encoding::DynamicFlags::empty(),
5166 _decode,
5167 )
5168 }
5169
5170 type GetIpTtlResponseFut = fidl::client::QueryResponseFut<
5171 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
5172 fidl::encoding::DefaultFuchsiaResourceDialect,
5173 >;
5174 fn r#get_ip_ttl(&self) -> Self::GetIpTtlResponseFut {
5175 fn _decode(
5176 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5177 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult, fidl::Error>
5178 {
5179 let _response = fidl::client::decode_transaction_body::<
5180 fidl::encoding::ResultType<
5181 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResponse,
5182 fidl_fuchsia_posix::Errno,
5183 >,
5184 fidl::encoding::DefaultFuchsiaResourceDialect,
5185 0x47e47fa1f24da471,
5186 >(_buf?)?;
5187 Ok(_response.map(|x| x.value))
5188 }
5189 self.client.send_query_and_decode::<
5190 fidl::encoding::EmptyPayload,
5191 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResult,
5192 >(
5193 (),
5194 0x47e47fa1f24da471,
5195 fidl::encoding::DynamicFlags::empty(),
5196 _decode,
5197 )
5198 }
5199
5200 type SetIpPacketInfoResponseFut = fidl::client::QueryResponseFut<
5201 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
5202 fidl::encoding::DefaultFuchsiaResourceDialect,
5203 >;
5204 fn r#set_ip_packet_info(&self, mut value: bool) -> Self::SetIpPacketInfoResponseFut {
5205 fn _decode(
5206 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5207 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult, fidl::Error>
5208 {
5209 let _response = fidl::client::decode_transaction_body::<
5210 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5211 fidl::encoding::DefaultFuchsiaResourceDialect,
5212 0x392d16bee20c0e16,
5213 >(_buf?)?;
5214 Ok(_response.map(|x| x))
5215 }
5216 self.client.send_query_and_decode::<
5217 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest,
5218 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoResult,
5219 >(
5220 (value,),
5221 0x392d16bee20c0e16,
5222 fidl::encoding::DynamicFlags::empty(),
5223 _decode,
5224 )
5225 }
5226
5227 type GetIpPacketInfoResponseFut = fidl::client::QueryResponseFut<
5228 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
5229 fidl::encoding::DefaultFuchsiaResourceDialect,
5230 >;
5231 fn r#get_ip_packet_info(&self) -> Self::GetIpPacketInfoResponseFut {
5232 fn _decode(
5233 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5234 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult, fidl::Error>
5235 {
5236 let _response = fidl::client::decode_transaction_body::<
5237 fidl::encoding::ResultType<
5238 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResponse,
5239 fidl_fuchsia_posix::Errno,
5240 >,
5241 fidl::encoding::DefaultFuchsiaResourceDialect,
5242 0x54b505f242280740,
5243 >(_buf?)?;
5244 Ok(_response.map(|x| x.value))
5245 }
5246 self.client.send_query_and_decode::<
5247 fidl::encoding::EmptyPayload,
5248 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResult,
5249 >(
5250 (),
5251 0x54b505f242280740,
5252 fidl::encoding::DynamicFlags::empty(),
5253 _decode,
5254 )
5255 }
5256
5257 type SetIpReceiveTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
5258 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
5259 fidl::encoding::DefaultFuchsiaResourceDialect,
5260 >;
5261 fn r#set_ip_receive_type_of_service(
5262 &self,
5263 mut value: bool,
5264 ) -> Self::SetIpReceiveTypeOfServiceResponseFut {
5265 fn _decode(
5266 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5267 ) -> Result<
5268 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
5269 fidl::Error,
5270 > {
5271 let _response = fidl::client::decode_transaction_body::<
5272 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5273 fidl::encoding::DefaultFuchsiaResourceDialect,
5274 0x6c4f6714995f84ef,
5275 >(_buf?)?;
5276 Ok(_response.map(|x| x))
5277 }
5278 self.client.send_query_and_decode::<
5279 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest,
5280 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceResult,
5281 >(
5282 (value,),
5283 0x6c4f6714995f84ef,
5284 fidl::encoding::DynamicFlags::empty(),
5285 _decode,
5286 )
5287 }
5288
5289 type GetIpReceiveTypeOfServiceResponseFut = fidl::client::QueryResponseFut<
5290 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
5291 fidl::encoding::DefaultFuchsiaResourceDialect,
5292 >;
5293 fn r#get_ip_receive_type_of_service(&self) -> Self::GetIpReceiveTypeOfServiceResponseFut {
5294 fn _decode(
5295 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5296 ) -> Result<
5297 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
5298 fidl::Error,
5299 > {
5300 let _response = fidl::client::decode_transaction_body::<
5301 fidl::encoding::ResultType<
5302 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResponse,
5303 fidl_fuchsia_posix::Errno,
5304 >,
5305 fidl::encoding::DefaultFuchsiaResourceDialect,
5306 0x4158ba7dc2795960,
5307 >(_buf?)?;
5308 Ok(_response.map(|x| x.value))
5309 }
5310 self.client.send_query_and_decode::<
5311 fidl::encoding::EmptyPayload,
5312 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResult,
5313 >(
5314 (),
5315 0x4158ba7dc2795960,
5316 fidl::encoding::DynamicFlags::empty(),
5317 _decode,
5318 )
5319 }
5320
5321 type SetIpReceiveTtlResponseFut = fidl::client::QueryResponseFut<
5322 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
5323 fidl::encoding::DefaultFuchsiaResourceDialect,
5324 >;
5325 fn r#set_ip_receive_ttl(&self, mut value: bool) -> Self::SetIpReceiveTtlResponseFut {
5326 fn _decode(
5327 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5328 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult, fidl::Error>
5329 {
5330 let _response = fidl::client::decode_transaction_body::<
5331 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5332 fidl::encoding::DefaultFuchsiaResourceDialect,
5333 0x46f15be0ce0ab82b,
5334 >(_buf?)?;
5335 Ok(_response.map(|x| x))
5336 }
5337 self.client.send_query_and_decode::<
5338 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest,
5339 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlResult,
5340 >(
5341 (value,),
5342 0x46f15be0ce0ab82b,
5343 fidl::encoding::DynamicFlags::empty(),
5344 _decode,
5345 )
5346 }
5347
5348 type GetIpReceiveTtlResponseFut = fidl::client::QueryResponseFut<
5349 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
5350 fidl::encoding::DefaultFuchsiaResourceDialect,
5351 >;
5352 fn r#get_ip_receive_ttl(&self) -> Self::GetIpReceiveTtlResponseFut {
5353 fn _decode(
5354 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5355 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult, fidl::Error>
5356 {
5357 let _response = fidl::client::decode_transaction_body::<
5358 fidl::encoding::ResultType<
5359 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResponse,
5360 fidl_fuchsia_posix::Errno,
5361 >,
5362 fidl::encoding::DefaultFuchsiaResourceDialect,
5363 0x678ddd5a5dfa2eb5,
5364 >(_buf?)?;
5365 Ok(_response.map(|x| x.value))
5366 }
5367 self.client.send_query_and_decode::<
5368 fidl::encoding::EmptyPayload,
5369 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResult,
5370 >(
5371 (),
5372 0x678ddd5a5dfa2eb5,
5373 fidl::encoding::DynamicFlags::empty(),
5374 _decode,
5375 )
5376 }
5377
5378 type SetIpMulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
5379 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
5380 fidl::encoding::DefaultFuchsiaResourceDialect,
5381 >;
5382 fn r#set_ip_multicast_interface(
5383 &self,
5384 mut iface: u64,
5385 mut address: &fidl_fuchsia_net::Ipv4Address,
5386 ) -> Self::SetIpMulticastInterfaceResponseFut {
5387 fn _decode(
5388 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5389 ) -> Result<
5390 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
5391 fidl::Error,
5392 > {
5393 let _response = fidl::client::decode_transaction_body::<
5394 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5395 fidl::encoding::DefaultFuchsiaResourceDialect,
5396 0x752fbfa9b12befe,
5397 >(_buf?)?;
5398 Ok(_response.map(|x| x))
5399 }
5400 self.client.send_query_and_decode::<
5401 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest,
5402 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceResult,
5403 >(
5404 (iface, address,),
5405 0x752fbfa9b12befe,
5406 fidl::encoding::DynamicFlags::empty(),
5407 _decode,
5408 )
5409 }
5410
5411 type GetIpMulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
5412 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
5413 fidl::encoding::DefaultFuchsiaResourceDialect,
5414 >;
5415 fn r#get_ip_multicast_interface(&self) -> Self::GetIpMulticastInterfaceResponseFut {
5416 fn _decode(
5417 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5418 ) -> Result<
5419 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
5420 fidl::Error,
5421 > {
5422 let _response = fidl::client::decode_transaction_body::<
5423 fidl::encoding::ResultType<
5424 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResponse,
5425 fidl_fuchsia_posix::Errno,
5426 >,
5427 fidl::encoding::DefaultFuchsiaResourceDialect,
5428 0x320bd14c4df046c4,
5429 >(_buf?)?;
5430 Ok(_response.map(|x| x.value))
5431 }
5432 self.client.send_query_and_decode::<
5433 fidl::encoding::EmptyPayload,
5434 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResult,
5435 >(
5436 (),
5437 0x320bd14c4df046c4,
5438 fidl::encoding::DynamicFlags::empty(),
5439 _decode,
5440 )
5441 }
5442
5443 type SetIpMulticastTtlResponseFut = fidl::client::QueryResponseFut<
5444 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
5445 fidl::encoding::DefaultFuchsiaResourceDialect,
5446 >;
5447 fn r#set_ip_multicast_ttl(
5448 &self,
5449 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
5450 ) -> Self::SetIpMulticastTtlResponseFut {
5451 fn _decode(
5452 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5453 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult, fidl::Error>
5454 {
5455 let _response = fidl::client::decode_transaction_body::<
5456 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5457 fidl::encoding::DefaultFuchsiaResourceDialect,
5458 0x63134d53772916a1,
5459 >(_buf?)?;
5460 Ok(_response.map(|x| x))
5461 }
5462 self.client.send_query_and_decode::<
5463 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest,
5464 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlResult,
5465 >(
5466 (value,),
5467 0x63134d53772916a1,
5468 fidl::encoding::DynamicFlags::empty(),
5469 _decode,
5470 )
5471 }
5472
5473 type GetIpMulticastTtlResponseFut = fidl::client::QueryResponseFut<
5474 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
5475 fidl::encoding::DefaultFuchsiaResourceDialect,
5476 >;
5477 fn r#get_ip_multicast_ttl(&self) -> Self::GetIpMulticastTtlResponseFut {
5478 fn _decode(
5479 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5480 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult, fidl::Error>
5481 {
5482 let _response = fidl::client::decode_transaction_body::<
5483 fidl::encoding::ResultType<
5484 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResponse,
5485 fidl_fuchsia_posix::Errno,
5486 >,
5487 fidl::encoding::DefaultFuchsiaResourceDialect,
5488 0x4665cd378f39e1a,
5489 >(_buf?)?;
5490 Ok(_response.map(|x| x.value))
5491 }
5492 self.client.send_query_and_decode::<
5493 fidl::encoding::EmptyPayload,
5494 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResult,
5495 >(
5496 (),
5497 0x4665cd378f39e1a,
5498 fidl::encoding::DynamicFlags::empty(),
5499 _decode,
5500 )
5501 }
5502
5503 type SetIpMulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
5504 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
5505 fidl::encoding::DefaultFuchsiaResourceDialect,
5506 >;
5507 fn r#set_ip_multicast_loopback(
5508 &self,
5509 mut value: bool,
5510 ) -> Self::SetIpMulticastLoopbackResponseFut {
5511 fn _decode(
5512 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5513 ) -> Result<
5514 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
5515 fidl::Error,
5516 > {
5517 let _response = fidl::client::decode_transaction_body::<
5518 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5519 fidl::encoding::DefaultFuchsiaResourceDialect,
5520 0x20c55c11f00943ea,
5521 >(_buf?)?;
5522 Ok(_response.map(|x| x))
5523 }
5524 self.client.send_query_and_decode::<
5525 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest,
5526 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackResult,
5527 >(
5528 (value,),
5529 0x20c55c11f00943ea,
5530 fidl::encoding::DynamicFlags::empty(),
5531 _decode,
5532 )
5533 }
5534
5535 type GetIpMulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
5536 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
5537 fidl::encoding::DefaultFuchsiaResourceDialect,
5538 >;
5539 fn r#get_ip_multicast_loopback(&self) -> Self::GetIpMulticastLoopbackResponseFut {
5540 fn _decode(
5541 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5542 ) -> Result<
5543 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
5544 fidl::Error,
5545 > {
5546 let _response = fidl::client::decode_transaction_body::<
5547 fidl::encoding::ResultType<
5548 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResponse,
5549 fidl_fuchsia_posix::Errno,
5550 >,
5551 fidl::encoding::DefaultFuchsiaResourceDialect,
5552 0x3b6b26ff558298f2,
5553 >(_buf?)?;
5554 Ok(_response.map(|x| x.value))
5555 }
5556 self.client.send_query_and_decode::<
5557 fidl::encoding::EmptyPayload,
5558 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResult,
5559 >(
5560 (),
5561 0x3b6b26ff558298f2,
5562 fidl::encoding::DynamicFlags::empty(),
5563 _decode,
5564 )
5565 }
5566
5567 type AddIpMembershipResponseFut = fidl::client::QueryResponseFut<
5568 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
5569 fidl::encoding::DefaultFuchsiaResourceDialect,
5570 >;
5571 fn r#add_ip_membership(
5572 &self,
5573 mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
5574 ) -> Self::AddIpMembershipResponseFut {
5575 fn _decode(
5576 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5577 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult, fidl::Error>
5578 {
5579 let _response = fidl::client::decode_transaction_body::<
5580 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5581 fidl::encoding::DefaultFuchsiaResourceDialect,
5582 0x76bc7df115a3b4d0,
5583 >(_buf?)?;
5584 Ok(_response.map(|x| x))
5585 }
5586 self.client.send_query_and_decode::<
5587 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest,
5588 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipResult,
5589 >(
5590 (membership,),
5591 0x76bc7df115a3b4d0,
5592 fidl::encoding::DynamicFlags::empty(),
5593 _decode,
5594 )
5595 }
5596
5597 type DropIpMembershipResponseFut = fidl::client::QueryResponseFut<
5598 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
5599 fidl::encoding::DefaultFuchsiaResourceDialect,
5600 >;
5601 fn r#drop_ip_membership(
5602 &self,
5603 mut membership: &fidl_fuchsia_posix_socket::IpMulticastMembership,
5604 ) -> Self::DropIpMembershipResponseFut {
5605 fn _decode(
5606 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5607 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult, fidl::Error>
5608 {
5609 let _response = fidl::client::decode_transaction_body::<
5610 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5611 fidl::encoding::DefaultFuchsiaResourceDialect,
5612 0x2888f3099188d03,
5613 >(_buf?)?;
5614 Ok(_response.map(|x| x))
5615 }
5616 self.client.send_query_and_decode::<
5617 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest,
5618 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipResult,
5619 >(
5620 (membership,),
5621 0x2888f3099188d03,
5622 fidl::encoding::DynamicFlags::empty(),
5623 _decode,
5624 )
5625 }
5626
5627 type SetIpTransparentResponseFut = fidl::client::QueryResponseFut<
5628 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
5629 fidl::encoding::DefaultFuchsiaResourceDialect,
5630 >;
5631 fn r#set_ip_transparent(&self, mut value: bool) -> Self::SetIpTransparentResponseFut {
5632 fn _decode(
5633 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5634 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult, fidl::Error>
5635 {
5636 let _response = fidl::client::decode_transaction_body::<
5637 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5638 fidl::encoding::DefaultFuchsiaResourceDialect,
5639 0x1ae532b0c066e3a0,
5640 >(_buf?)?;
5641 Ok(_response.map(|x| x))
5642 }
5643 self.client.send_query_and_decode::<
5644 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest,
5645 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentResult,
5646 >(
5647 (value,),
5648 0x1ae532b0c066e3a0,
5649 fidl::encoding::DynamicFlags::empty(),
5650 _decode,
5651 )
5652 }
5653
5654 type GetIpTransparentResponseFut = fidl::client::QueryResponseFut<
5655 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
5656 fidl::encoding::DefaultFuchsiaResourceDialect,
5657 >;
5658 fn r#get_ip_transparent(&self) -> Self::GetIpTransparentResponseFut {
5659 fn _decode(
5660 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5661 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult, fidl::Error>
5662 {
5663 let _response = fidl::client::decode_transaction_body::<
5664 fidl::encoding::ResultType<
5665 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResponse,
5666 fidl_fuchsia_posix::Errno,
5667 >,
5668 fidl::encoding::DefaultFuchsiaResourceDialect,
5669 0x51d43695962ebfb5,
5670 >(_buf?)?;
5671 Ok(_response.map(|x| x.value))
5672 }
5673 self.client.send_query_and_decode::<
5674 fidl::encoding::EmptyPayload,
5675 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResult,
5676 >(
5677 (),
5678 0x51d43695962ebfb5,
5679 fidl::encoding::DynamicFlags::empty(),
5680 _decode,
5681 )
5682 }
5683
5684 type SetIpReceiveOriginalDestinationAddressResponseFut = fidl::client::QueryResponseFut<
5685 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
5686 fidl::encoding::DefaultFuchsiaResourceDialect,
5687 >;
5688 fn r#set_ip_receive_original_destination_address(
5689 &self,
5690 mut value: bool,
5691 ) -> Self::SetIpReceiveOriginalDestinationAddressResponseFut {
5692 fn _decode(mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult, fidl::Error>{
5693 let _response = fidl::client::decode_transaction_body::<
5694 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5695 fidl::encoding::DefaultFuchsiaResourceDialect,
5696 0x4722b4ce52f7840,
5697 >(_buf?)?;
5698 Ok(_response.map(|x| x))
5699 }
5700 self.client.send_query_and_decode::<
5701 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest,
5702 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressResult,
5703 >(
5704 (value,),
5705 0x4722b4ce52f7840,
5706 fidl::encoding::DynamicFlags::empty(),
5707 _decode,
5708 )
5709 }
5710
5711 type GetIpReceiveOriginalDestinationAddressResponseFut = fidl::client::QueryResponseFut<
5712 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
5713 fidl::encoding::DefaultFuchsiaResourceDialect,
5714 >;
5715 fn r#get_ip_receive_original_destination_address(
5716 &self,
5717 ) -> Self::GetIpReceiveOriginalDestinationAddressResponseFut {
5718 fn _decode(mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult, fidl::Error>{
5719 let _response = fidl::client::decode_transaction_body::<fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResponse, fidl_fuchsia_posix::Errno>, fidl::encoding::DefaultFuchsiaResourceDialect, 0x2a0e7dc5d6bfdfe9>(_buf?)?;
5720 Ok(_response.map(|x| x.value))
5721 }
5722 self.client.send_query_and_decode::<
5723 fidl::encoding::EmptyPayload,
5724 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResult,
5725 >(
5726 (),
5727 0x2a0e7dc5d6bfdfe9,
5728 fidl::encoding::DynamicFlags::empty(),
5729 _decode,
5730 )
5731 }
5732
5733 type AddIpv6MembershipResponseFut = fidl::client::QueryResponseFut<
5734 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
5735 fidl::encoding::DefaultFuchsiaResourceDialect,
5736 >;
5737 fn r#add_ipv6_membership(
5738 &self,
5739 mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
5740 ) -> Self::AddIpv6MembershipResponseFut {
5741 fn _decode(
5742 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5743 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult, fidl::Error>
5744 {
5745 let _response = fidl::client::decode_transaction_body::<
5746 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5747 fidl::encoding::DefaultFuchsiaResourceDialect,
5748 0x7c94727acb4ea4b3,
5749 >(_buf?)?;
5750 Ok(_response.map(|x| x))
5751 }
5752 self.client.send_query_and_decode::<
5753 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest,
5754 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipResult,
5755 >(
5756 (membership,),
5757 0x7c94727acb4ea4b3,
5758 fidl::encoding::DynamicFlags::empty(),
5759 _decode,
5760 )
5761 }
5762
5763 type DropIpv6MembershipResponseFut = fidl::client::QueryResponseFut<
5764 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
5765 fidl::encoding::DefaultFuchsiaResourceDialect,
5766 >;
5767 fn r#drop_ipv6_membership(
5768 &self,
5769 mut membership: &fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
5770 ) -> Self::DropIpv6MembershipResponseFut {
5771 fn _decode(
5772 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5773 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult, fidl::Error>
5774 {
5775 let _response = fidl::client::decode_transaction_body::<
5776 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5777 fidl::encoding::DefaultFuchsiaResourceDialect,
5778 0x42104c70ccaba304,
5779 >(_buf?)?;
5780 Ok(_response.map(|x| x))
5781 }
5782 self.client.send_query_and_decode::<
5783 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest,
5784 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipResult,
5785 >(
5786 (membership,),
5787 0x42104c70ccaba304,
5788 fidl::encoding::DynamicFlags::empty(),
5789 _decode,
5790 )
5791 }
5792
5793 type SetIpv6MulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
5794 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
5795 fidl::encoding::DefaultFuchsiaResourceDialect,
5796 >;
5797 fn r#set_ipv6_multicast_interface(
5798 &self,
5799 mut value: u64,
5800 ) -> Self::SetIpv6MulticastInterfaceResponseFut {
5801 fn _decode(
5802 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5803 ) -> Result<
5804 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
5805 fidl::Error,
5806 > {
5807 let _response = fidl::client::decode_transaction_body::<
5808 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5809 fidl::encoding::DefaultFuchsiaResourceDialect,
5810 0x135f76db3774ab3b,
5811 >(_buf?)?;
5812 Ok(_response.map(|x| x))
5813 }
5814 self.client.send_query_and_decode::<
5815 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest,
5816 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceResult,
5817 >(
5818 (value,),
5819 0x135f76db3774ab3b,
5820 fidl::encoding::DynamicFlags::empty(),
5821 _decode,
5822 )
5823 }
5824
5825 type GetIpv6MulticastInterfaceResponseFut = fidl::client::QueryResponseFut<
5826 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
5827 fidl::encoding::DefaultFuchsiaResourceDialect,
5828 >;
5829 fn r#get_ipv6_multicast_interface(&self) -> Self::GetIpv6MulticastInterfaceResponseFut {
5830 fn _decode(
5831 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5832 ) -> Result<
5833 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
5834 fidl::Error,
5835 > {
5836 let _response = fidl::client::decode_transaction_body::<
5837 fidl::encoding::ResultType<
5838 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResponse,
5839 fidl_fuchsia_posix::Errno,
5840 >,
5841 fidl::encoding::DefaultFuchsiaResourceDialect,
5842 0x1f26fcdd348f1882,
5843 >(_buf?)?;
5844 Ok(_response.map(|x| x.value))
5845 }
5846 self.client.send_query_and_decode::<
5847 fidl::encoding::EmptyPayload,
5848 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResult,
5849 >(
5850 (),
5851 0x1f26fcdd348f1882,
5852 fidl::encoding::DynamicFlags::empty(),
5853 _decode,
5854 )
5855 }
5856
5857 type SetIpv6UnicastHopsResponseFut = fidl::client::QueryResponseFut<
5858 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
5859 fidl::encoding::DefaultFuchsiaResourceDialect,
5860 >;
5861 fn r#set_ipv6_unicast_hops(
5862 &self,
5863 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
5864 ) -> Self::SetIpv6UnicastHopsResponseFut {
5865 fn _decode(
5866 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5867 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult, fidl::Error>
5868 {
5869 let _response = fidl::client::decode_transaction_body::<
5870 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5871 fidl::encoding::DefaultFuchsiaResourceDialect,
5872 0x157d51e98f462859,
5873 >(_buf?)?;
5874 Ok(_response.map(|x| x))
5875 }
5876 self.client.send_query_and_decode::<
5877 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest,
5878 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsResult,
5879 >(
5880 (value,),
5881 0x157d51e98f462859,
5882 fidl::encoding::DynamicFlags::empty(),
5883 _decode,
5884 )
5885 }
5886
5887 type GetIpv6UnicastHopsResponseFut = fidl::client::QueryResponseFut<
5888 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
5889 fidl::encoding::DefaultFuchsiaResourceDialect,
5890 >;
5891 fn r#get_ipv6_unicast_hops(&self) -> Self::GetIpv6UnicastHopsResponseFut {
5892 fn _decode(
5893 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5894 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult, fidl::Error>
5895 {
5896 let _response = fidl::client::decode_transaction_body::<
5897 fidl::encoding::ResultType<
5898 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResponse,
5899 fidl_fuchsia_posix::Errno,
5900 >,
5901 fidl::encoding::DefaultFuchsiaResourceDialect,
5902 0x21f4641cad8bd8d2,
5903 >(_buf?)?;
5904 Ok(_response.map(|x| x.value))
5905 }
5906 self.client.send_query_and_decode::<
5907 fidl::encoding::EmptyPayload,
5908 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResult,
5909 >(
5910 (),
5911 0x21f4641cad8bd8d2,
5912 fidl::encoding::DynamicFlags::empty(),
5913 _decode,
5914 )
5915 }
5916
5917 type SetIpv6ReceiveHopLimitResponseFut = fidl::client::QueryResponseFut<
5918 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
5919 fidl::encoding::DefaultFuchsiaResourceDialect,
5920 >;
5921 fn r#set_ipv6_receive_hop_limit(
5922 &self,
5923 mut value: bool,
5924 ) -> Self::SetIpv6ReceiveHopLimitResponseFut {
5925 fn _decode(
5926 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5927 ) -> Result<
5928 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
5929 fidl::Error,
5930 > {
5931 let _response = fidl::client::decode_transaction_body::<
5932 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5933 fidl::encoding::DefaultFuchsiaResourceDialect,
5934 0x5c24808ed2e84a1e,
5935 >(_buf?)?;
5936 Ok(_response.map(|x| x))
5937 }
5938 self.client.send_query_and_decode::<
5939 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest,
5940 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitResult,
5941 >(
5942 (value,),
5943 0x5c24808ed2e84a1e,
5944 fidl::encoding::DynamicFlags::empty(),
5945 _decode,
5946 )
5947 }
5948
5949 type GetIpv6ReceiveHopLimitResponseFut = fidl::client::QueryResponseFut<
5950 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
5951 fidl::encoding::DefaultFuchsiaResourceDialect,
5952 >;
5953 fn r#get_ipv6_receive_hop_limit(&self) -> Self::GetIpv6ReceiveHopLimitResponseFut {
5954 fn _decode(
5955 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5956 ) -> Result<
5957 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
5958 fidl::Error,
5959 > {
5960 let _response = fidl::client::decode_transaction_body::<
5961 fidl::encoding::ResultType<
5962 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResponse,
5963 fidl_fuchsia_posix::Errno,
5964 >,
5965 fidl::encoding::DefaultFuchsiaResourceDialect,
5966 0x341e06689885b4c0,
5967 >(_buf?)?;
5968 Ok(_response.map(|x| x.value))
5969 }
5970 self.client.send_query_and_decode::<
5971 fidl::encoding::EmptyPayload,
5972 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResult,
5973 >(
5974 (),
5975 0x341e06689885b4c0,
5976 fidl::encoding::DynamicFlags::empty(),
5977 _decode,
5978 )
5979 }
5980
5981 type SetIpv6MulticastHopsResponseFut = fidl::client::QueryResponseFut<
5982 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
5983 fidl::encoding::DefaultFuchsiaResourceDialect,
5984 >;
5985 fn r#set_ipv6_multicast_hops(
5986 &self,
5987 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
5988 ) -> Self::SetIpv6MulticastHopsResponseFut {
5989 fn _decode(
5990 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
5991 ) -> Result<
5992 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
5993 fidl::Error,
5994 > {
5995 let _response = fidl::client::decode_transaction_body::<
5996 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
5997 fidl::encoding::DefaultFuchsiaResourceDialect,
5998 0x25b9cd4d181f82c1,
5999 >(_buf?)?;
6000 Ok(_response.map(|x| x))
6001 }
6002 self.client.send_query_and_decode::<
6003 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest,
6004 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsResult,
6005 >(
6006 (value,),
6007 0x25b9cd4d181f82c1,
6008 fidl::encoding::DynamicFlags::empty(),
6009 _decode,
6010 )
6011 }
6012
6013 type GetIpv6MulticastHopsResponseFut = fidl::client::QueryResponseFut<
6014 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
6015 fidl::encoding::DefaultFuchsiaResourceDialect,
6016 >;
6017 fn r#get_ipv6_multicast_hops(&self) -> Self::GetIpv6MulticastHopsResponseFut {
6018 fn _decode(
6019 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6020 ) -> Result<
6021 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
6022 fidl::Error,
6023 > {
6024 let _response = fidl::client::decode_transaction_body::<
6025 fidl::encoding::ResultType<
6026 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResponse,
6027 fidl_fuchsia_posix::Errno,
6028 >,
6029 fidl::encoding::DefaultFuchsiaResourceDialect,
6030 0x52916948a365012a,
6031 >(_buf?)?;
6032 Ok(_response.map(|x| x.value))
6033 }
6034 self.client.send_query_and_decode::<
6035 fidl::encoding::EmptyPayload,
6036 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResult,
6037 >(
6038 (),
6039 0x52916948a365012a,
6040 fidl::encoding::DynamicFlags::empty(),
6041 _decode,
6042 )
6043 }
6044
6045 type SetIpv6MulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
6046 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
6047 fidl::encoding::DefaultFuchsiaResourceDialect,
6048 >;
6049 fn r#set_ipv6_multicast_loopback(
6050 &self,
6051 mut value: bool,
6052 ) -> Self::SetIpv6MulticastLoopbackResponseFut {
6053 fn _decode(
6054 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6055 ) -> Result<
6056 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
6057 fidl::Error,
6058 > {
6059 let _response = fidl::client::decode_transaction_body::<
6060 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6061 fidl::encoding::DefaultFuchsiaResourceDialect,
6062 0x55701c409ff41b40,
6063 >(_buf?)?;
6064 Ok(_response.map(|x| x))
6065 }
6066 self.client.send_query_and_decode::<
6067 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest,
6068 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackResult,
6069 >(
6070 (value,),
6071 0x55701c409ff41b40,
6072 fidl::encoding::DynamicFlags::empty(),
6073 _decode,
6074 )
6075 }
6076
6077 type GetIpv6MulticastLoopbackResponseFut = fidl::client::QueryResponseFut<
6078 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
6079 fidl::encoding::DefaultFuchsiaResourceDialect,
6080 >;
6081 fn r#get_ipv6_multicast_loopback(&self) -> Self::GetIpv6MulticastLoopbackResponseFut {
6082 fn _decode(
6083 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6084 ) -> Result<
6085 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
6086 fidl::Error,
6087 > {
6088 let _response = fidl::client::decode_transaction_body::<
6089 fidl::encoding::ResultType<
6090 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResponse,
6091 fidl_fuchsia_posix::Errno,
6092 >,
6093 fidl::encoding::DefaultFuchsiaResourceDialect,
6094 0x4415b701fde319c3,
6095 >(_buf?)?;
6096 Ok(_response.map(|x| x.value))
6097 }
6098 self.client.send_query_and_decode::<
6099 fidl::encoding::EmptyPayload,
6100 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResult,
6101 >(
6102 (),
6103 0x4415b701fde319c3,
6104 fidl::encoding::DynamicFlags::empty(),
6105 _decode,
6106 )
6107 }
6108
6109 type SetIpv6OnlyResponseFut = fidl::client::QueryResponseFut<
6110 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
6111 fidl::encoding::DefaultFuchsiaResourceDialect,
6112 >;
6113 fn r#set_ipv6_only(&self, mut value: bool) -> Self::SetIpv6OnlyResponseFut {
6114 fn _decode(
6115 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6116 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult, fidl::Error>
6117 {
6118 let _response = fidl::client::decode_transaction_body::<
6119 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6120 fidl::encoding::DefaultFuchsiaResourceDialect,
6121 0x4873f1364758cbba,
6122 >(_buf?)?;
6123 Ok(_response.map(|x| x))
6124 }
6125 self.client.send_query_and_decode::<
6126 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest,
6127 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyResult,
6128 >(
6129 (value,),
6130 0x4873f1364758cbba,
6131 fidl::encoding::DynamicFlags::empty(),
6132 _decode,
6133 )
6134 }
6135
6136 type GetIpv6OnlyResponseFut = fidl::client::QueryResponseFut<
6137 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
6138 fidl::encoding::DefaultFuchsiaResourceDialect,
6139 >;
6140 fn r#get_ipv6_only(&self) -> Self::GetIpv6OnlyResponseFut {
6141 fn _decode(
6142 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6143 ) -> Result<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult, fidl::Error>
6144 {
6145 let _response = fidl::client::decode_transaction_body::<
6146 fidl::encoding::ResultType<
6147 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResponse,
6148 fidl_fuchsia_posix::Errno,
6149 >,
6150 fidl::encoding::DefaultFuchsiaResourceDialect,
6151 0x4aa3340a1a26b89c,
6152 >(_buf?)?;
6153 Ok(_response.map(|x| x.value))
6154 }
6155 self.client.send_query_and_decode::<
6156 fidl::encoding::EmptyPayload,
6157 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResult,
6158 >(
6159 (),
6160 0x4aa3340a1a26b89c,
6161 fidl::encoding::DynamicFlags::empty(),
6162 _decode,
6163 )
6164 }
6165
6166 type SetIpv6ReceiveTrafficClassResponseFut = fidl::client::QueryResponseFut<
6167 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
6168 fidl::encoding::DefaultFuchsiaResourceDialect,
6169 >;
6170 fn r#set_ipv6_receive_traffic_class(
6171 &self,
6172 mut value: bool,
6173 ) -> Self::SetIpv6ReceiveTrafficClassResponseFut {
6174 fn _decode(
6175 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6176 ) -> Result<
6177 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
6178 fidl::Error,
6179 > {
6180 let _response = fidl::client::decode_transaction_body::<
6181 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6182 fidl::encoding::DefaultFuchsiaResourceDialect,
6183 0x58f07c8788d099a0,
6184 >(_buf?)?;
6185 Ok(_response.map(|x| x))
6186 }
6187 self.client.send_query_and_decode::<
6188 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest,
6189 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassResult,
6190 >(
6191 (value,),
6192 0x58f07c8788d099a0,
6193 fidl::encoding::DynamicFlags::empty(),
6194 _decode,
6195 )
6196 }
6197
6198 type GetIpv6ReceiveTrafficClassResponseFut = fidl::client::QueryResponseFut<
6199 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
6200 fidl::encoding::DefaultFuchsiaResourceDialect,
6201 >;
6202 fn r#get_ipv6_receive_traffic_class(&self) -> Self::GetIpv6ReceiveTrafficClassResponseFut {
6203 fn _decode(
6204 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6205 ) -> Result<
6206 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
6207 fidl::Error,
6208 > {
6209 let _response = fidl::client::decode_transaction_body::<
6210 fidl::encoding::ResultType<
6211 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResponse,
6212 fidl_fuchsia_posix::Errno,
6213 >,
6214 fidl::encoding::DefaultFuchsiaResourceDialect,
6215 0x2e334df1da553ffa,
6216 >(_buf?)?;
6217 Ok(_response.map(|x| x.value))
6218 }
6219 self.client.send_query_and_decode::<
6220 fidl::encoding::EmptyPayload,
6221 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResult,
6222 >(
6223 (),
6224 0x2e334df1da553ffa,
6225 fidl::encoding::DynamicFlags::empty(),
6226 _decode,
6227 )
6228 }
6229
6230 type SetIpv6TrafficClassResponseFut = fidl::client::QueryResponseFut<
6231 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
6232 fidl::encoding::DefaultFuchsiaResourceDialect,
6233 >;
6234 fn r#set_ipv6_traffic_class(
6235 &self,
6236 mut value: &fidl_fuchsia_posix_socket::OptionalUint8,
6237 ) -> Self::SetIpv6TrafficClassResponseFut {
6238 fn _decode(
6239 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6240 ) -> Result<
6241 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
6242 fidl::Error,
6243 > {
6244 let _response = fidl::client::decode_transaction_body::<
6245 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6246 fidl::encoding::DefaultFuchsiaResourceDialect,
6247 0x6af077800c5a0b4f,
6248 >(_buf?)?;
6249 Ok(_response.map(|x| x))
6250 }
6251 self.client.send_query_and_decode::<
6252 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest,
6253 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassResult,
6254 >(
6255 (value,),
6256 0x6af077800c5a0b4f,
6257 fidl::encoding::DynamicFlags::empty(),
6258 _decode,
6259 )
6260 }
6261
6262 type GetIpv6TrafficClassResponseFut = fidl::client::QueryResponseFut<
6263 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
6264 fidl::encoding::DefaultFuchsiaResourceDialect,
6265 >;
6266 fn r#get_ipv6_traffic_class(&self) -> Self::GetIpv6TrafficClassResponseFut {
6267 fn _decode(
6268 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6269 ) -> Result<
6270 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
6271 fidl::Error,
6272 > {
6273 let _response = fidl::client::decode_transaction_body::<
6274 fidl::encoding::ResultType<
6275 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResponse,
6276 fidl_fuchsia_posix::Errno,
6277 >,
6278 fidl::encoding::DefaultFuchsiaResourceDialect,
6279 0x6baf6eed8fc2f04,
6280 >(_buf?)?;
6281 Ok(_response.map(|x| x.value))
6282 }
6283 self.client.send_query_and_decode::<
6284 fidl::encoding::EmptyPayload,
6285 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResult,
6286 >(
6287 (),
6288 0x6baf6eed8fc2f04,
6289 fidl::encoding::DynamicFlags::empty(),
6290 _decode,
6291 )
6292 }
6293
6294 type SetIpv6ReceivePacketInfoResponseFut = fidl::client::QueryResponseFut<
6295 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
6296 fidl::encoding::DefaultFuchsiaResourceDialect,
6297 >;
6298 fn r#set_ipv6_receive_packet_info(
6299 &self,
6300 mut value: bool,
6301 ) -> Self::SetIpv6ReceivePacketInfoResponseFut {
6302 fn _decode(
6303 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6304 ) -> Result<
6305 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
6306 fidl::Error,
6307 > {
6308 let _response = fidl::client::decode_transaction_body::<
6309 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6310 fidl::encoding::DefaultFuchsiaResourceDialect,
6311 0x19259775b1a92768,
6312 >(_buf?)?;
6313 Ok(_response.map(|x| x))
6314 }
6315 self.client.send_query_and_decode::<
6316 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest,
6317 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoResult,
6318 >(
6319 (value,),
6320 0x19259775b1a92768,
6321 fidl::encoding::DynamicFlags::empty(),
6322 _decode,
6323 )
6324 }
6325
6326 type GetIpv6ReceivePacketInfoResponseFut = fidl::client::QueryResponseFut<
6327 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
6328 fidl::encoding::DefaultFuchsiaResourceDialect,
6329 >;
6330 fn r#get_ipv6_receive_packet_info(&self) -> Self::GetIpv6ReceivePacketInfoResponseFut {
6331 fn _decode(
6332 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6333 ) -> Result<
6334 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
6335 fidl::Error,
6336 > {
6337 let _response = fidl::client::decode_transaction_body::<
6338 fidl::encoding::ResultType<
6339 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResponse,
6340 fidl_fuchsia_posix::Errno,
6341 >,
6342 fidl::encoding::DefaultFuchsiaResourceDialect,
6343 0x7acd4a2775baec75,
6344 >(_buf?)?;
6345 Ok(_response.map(|x| x.value))
6346 }
6347 self.client.send_query_and_decode::<
6348 fidl::encoding::EmptyPayload,
6349 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResult,
6350 >(
6351 (),
6352 0x7acd4a2775baec75,
6353 fidl::encoding::DynamicFlags::empty(),
6354 _decode,
6355 )
6356 }
6357
6358 type GetOriginalDestinationResponseFut = fidl::client::QueryResponseFut<
6359 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
6360 fidl::encoding::DefaultFuchsiaResourceDialect,
6361 >;
6362 fn r#get_original_destination(&self) -> Self::GetOriginalDestinationResponseFut {
6363 fn _decode(
6364 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6365 ) -> Result<
6366 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
6367 fidl::Error,
6368 > {
6369 let _response = fidl::client::decode_transaction_body::<
6370 fidl::encoding::ResultType<
6371 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResponse,
6372 fidl_fuchsia_posix::Errno,
6373 >,
6374 fidl::encoding::DefaultFuchsiaResourceDialect,
6375 0x38bf28f0dafdbac0,
6376 >(_buf?)?;
6377 Ok(_response.map(|x| x.value))
6378 }
6379 self.client.send_query_and_decode::<
6380 fidl::encoding::EmptyPayload,
6381 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResult,
6382 >(
6383 (),
6384 0x38bf28f0dafdbac0,
6385 fidl::encoding::DynamicFlags::empty(),
6386 _decode,
6387 )
6388 }
6389
6390 type DescribeResponseFut = fidl::client::QueryResponseFut<
6391 SocketDescribeResponse,
6392 fidl::encoding::DefaultFuchsiaResourceDialect,
6393 >;
6394 fn r#describe(&self) -> Self::DescribeResponseFut {
6395 fn _decode(
6396 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6397 ) -> Result<SocketDescribeResponse, fidl::Error> {
6398 let _response = fidl::client::decode_transaction_body::<
6399 SocketDescribeResponse,
6400 fidl::encoding::DefaultFuchsiaResourceDialect,
6401 0x335706eccf54a135,
6402 >(_buf?)?;
6403 Ok(_response)
6404 }
6405 self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketDescribeResponse>(
6406 (),
6407 0x335706eccf54a135,
6408 fidl::encoding::DynamicFlags::empty(),
6409 _decode,
6410 )
6411 }
6412
6413 type RecvMsgResponseFut = fidl::client::QueryResponseFut<
6414 SocketRecvMsgResult,
6415 fidl::encoding::DefaultFuchsiaResourceDialect,
6416 >;
6417 fn r#recv_msg(
6418 &self,
6419 mut want_addr: bool,
6420 mut data_len: u32,
6421 mut want_control: bool,
6422 mut flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
6423 ) -> Self::RecvMsgResponseFut {
6424 fn _decode(
6425 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6426 ) -> Result<SocketRecvMsgResult, fidl::Error> {
6427 let _response = fidl::client::decode_transaction_body::<
6428 fidl::encoding::ResultType<SocketRecvMsgResponse, fidl_fuchsia_posix::Errno>,
6429 fidl::encoding::DefaultFuchsiaResourceDialect,
6430 0x1dfb695351d3aa1d,
6431 >(_buf?)?;
6432 Ok(_response.map(|x| (x.addr, x.data, x.control, x.truncated)))
6433 }
6434 self.client.send_query_and_decode::<SocketRecvMsgRequest, SocketRecvMsgResult>(
6435 (want_addr, data_len, want_control, flags),
6436 0x1dfb695351d3aa1d,
6437 fidl::encoding::DynamicFlags::empty(),
6438 _decode,
6439 )
6440 }
6441
6442 type SendMsgResponseFut = fidl::client::QueryResponseFut<
6443 SocketSendMsgResult,
6444 fidl::encoding::DefaultFuchsiaResourceDialect,
6445 >;
6446 fn r#send_msg(
6447 &self,
6448 mut addr: Option<&fidl_fuchsia_net::SocketAddress>,
6449 mut data: &[u8],
6450 mut control: &fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
6451 mut flags: fidl_fuchsia_posix_socket::SendMsgFlags,
6452 ) -> Self::SendMsgResponseFut {
6453 fn _decode(
6454 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6455 ) -> Result<SocketSendMsgResult, fidl::Error> {
6456 let _response = fidl::client::decode_transaction_body::<
6457 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6458 fidl::encoding::DefaultFuchsiaResourceDialect,
6459 0x2cf1eac9a7fc8958,
6460 >(_buf?)?;
6461 Ok(_response.map(|x| x))
6462 }
6463 self.client.send_query_and_decode::<SocketSendMsgRequest, SocketSendMsgResult>(
6464 (addr, data, control, flags),
6465 0x2cf1eac9a7fc8958,
6466 fidl::encoding::DynamicFlags::empty(),
6467 _decode,
6468 )
6469 }
6470
6471 type GetInfoResponseFut = fidl::client::QueryResponseFut<
6472 SocketGetInfoResult,
6473 fidl::encoding::DefaultFuchsiaResourceDialect,
6474 >;
6475 fn r#get_info(&self) -> Self::GetInfoResponseFut {
6476 fn _decode(
6477 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6478 ) -> Result<SocketGetInfoResult, fidl::Error> {
6479 let _response = fidl::client::decode_transaction_body::<
6480 fidl::encoding::ResultType<SocketGetInfoResponse, fidl_fuchsia_posix::Errno>,
6481 fidl::encoding::DefaultFuchsiaResourceDialect,
6482 0x39676f75aec339ba,
6483 >(_buf?)?;
6484 Ok(_response.map(|x| (x.domain, x.proto)))
6485 }
6486 self.client.send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetInfoResult>(
6487 (),
6488 0x39676f75aec339ba,
6489 fidl::encoding::DynamicFlags::empty(),
6490 _decode,
6491 )
6492 }
6493
6494 type SetIpHeaderIncludedResponseFut = fidl::client::QueryResponseFut<
6495 SocketSetIpHeaderIncludedResult,
6496 fidl::encoding::DefaultFuchsiaResourceDialect,
6497 >;
6498 fn r#set_ip_header_included(&self, mut value: bool) -> Self::SetIpHeaderIncludedResponseFut {
6499 fn _decode(
6500 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6501 ) -> Result<SocketSetIpHeaderIncludedResult, fidl::Error> {
6502 let _response = fidl::client::decode_transaction_body::<
6503 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6504 fidl::encoding::DefaultFuchsiaResourceDialect,
6505 0x5d06a606d95e8f3,
6506 >(_buf?)?;
6507 Ok(_response.map(|x| x))
6508 }
6509 self.client.send_query_and_decode::<
6510 SocketSetIpHeaderIncludedRequest,
6511 SocketSetIpHeaderIncludedResult,
6512 >(
6513 (value,),
6514 0x5d06a606d95e8f3,
6515 fidl::encoding::DynamicFlags::empty(),
6516 _decode,
6517 )
6518 }
6519
6520 type GetIpHeaderIncludedResponseFut = fidl::client::QueryResponseFut<
6521 SocketGetIpHeaderIncludedResult,
6522 fidl::encoding::DefaultFuchsiaResourceDialect,
6523 >;
6524 fn r#get_ip_header_included(&self) -> Self::GetIpHeaderIncludedResponseFut {
6525 fn _decode(
6526 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6527 ) -> Result<SocketGetIpHeaderIncludedResult, fidl::Error> {
6528 let _response = fidl::client::decode_transaction_body::<
6529 fidl::encoding::ResultType<
6530 SocketGetIpHeaderIncludedResponse,
6531 fidl_fuchsia_posix::Errno,
6532 >,
6533 fidl::encoding::DefaultFuchsiaResourceDialect,
6534 0x76125ad1f4d175f6,
6535 >(_buf?)?;
6536 Ok(_response.map(|x| x.value))
6537 }
6538 self.client
6539 .send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetIpHeaderIncludedResult>(
6540 (),
6541 0x76125ad1f4d175f6,
6542 fidl::encoding::DynamicFlags::empty(),
6543 _decode,
6544 )
6545 }
6546
6547 type SetIcmpv6FilterResponseFut = fidl::client::QueryResponseFut<
6548 SocketSetIcmpv6FilterResult,
6549 fidl::encoding::DefaultFuchsiaResourceDialect,
6550 >;
6551 fn r#set_icmpv6_filter(&self, mut filter: &Icmpv6Filter) -> Self::SetIcmpv6FilterResponseFut {
6552 fn _decode(
6553 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6554 ) -> Result<SocketSetIcmpv6FilterResult, fidl::Error> {
6555 let _response = fidl::client::decode_transaction_body::<
6556 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6557 fidl::encoding::DefaultFuchsiaResourceDialect,
6558 0x4ebea92a43ae68a9,
6559 >(_buf?)?;
6560 Ok(_response.map(|x| x))
6561 }
6562 self.client
6563 .send_query_and_decode::<SocketSetIcmpv6FilterRequest, SocketSetIcmpv6FilterResult>(
6564 (filter,),
6565 0x4ebea92a43ae68a9,
6566 fidl::encoding::DynamicFlags::empty(),
6567 _decode,
6568 )
6569 }
6570
6571 type GetIcmpv6FilterResponseFut = fidl::client::QueryResponseFut<
6572 SocketGetIcmpv6FilterResult,
6573 fidl::encoding::DefaultFuchsiaResourceDialect,
6574 >;
6575 fn r#get_icmpv6_filter(&self) -> Self::GetIcmpv6FilterResponseFut {
6576 fn _decode(
6577 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6578 ) -> Result<SocketGetIcmpv6FilterResult, fidl::Error> {
6579 let _response = fidl::client::decode_transaction_body::<
6580 fidl::encoding::ResultType<
6581 SocketGetIcmpv6FilterResponse,
6582 fidl_fuchsia_posix::Errno,
6583 >,
6584 fidl::encoding::DefaultFuchsiaResourceDialect,
6585 0x43bd4f3bc0970ace,
6586 >(_buf?)?;
6587 Ok(_response.map(|x| x.filter))
6588 }
6589 self.client
6590 .send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetIcmpv6FilterResult>(
6591 (),
6592 0x43bd4f3bc0970ace,
6593 fidl::encoding::DynamicFlags::empty(),
6594 _decode,
6595 )
6596 }
6597
6598 type SetIpv6ChecksumResponseFut = fidl::client::QueryResponseFut<
6599 SocketSetIpv6ChecksumResult,
6600 fidl::encoding::DefaultFuchsiaResourceDialect,
6601 >;
6602 fn r#set_ipv6_checksum(
6603 &self,
6604 mut config: &Ipv6ChecksumConfiguration,
6605 ) -> Self::SetIpv6ChecksumResponseFut {
6606 fn _decode(
6607 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6608 ) -> Result<SocketSetIpv6ChecksumResult, fidl::Error> {
6609 let _response = fidl::client::decode_transaction_body::<
6610 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, fidl_fuchsia_posix::Errno>,
6611 fidl::encoding::DefaultFuchsiaResourceDialect,
6612 0x18b7809577199cb4,
6613 >(_buf?)?;
6614 Ok(_response.map(|x| x))
6615 }
6616 self.client
6617 .send_query_and_decode::<SocketSetIpv6ChecksumRequest, SocketSetIpv6ChecksumResult>(
6618 (config,),
6619 0x18b7809577199cb4,
6620 fidl::encoding::DynamicFlags::empty(),
6621 _decode,
6622 )
6623 }
6624
6625 type GetIpv6ChecksumResponseFut = fidl::client::QueryResponseFut<
6626 SocketGetIpv6ChecksumResult,
6627 fidl::encoding::DefaultFuchsiaResourceDialect,
6628 >;
6629 fn r#get_ipv6_checksum(&self) -> Self::GetIpv6ChecksumResponseFut {
6630 fn _decode(
6631 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
6632 ) -> Result<SocketGetIpv6ChecksumResult, fidl::Error> {
6633 let _response = fidl::client::decode_transaction_body::<
6634 fidl::encoding::ResultType<
6635 SocketGetIpv6ChecksumResponse,
6636 fidl_fuchsia_posix::Errno,
6637 >,
6638 fidl::encoding::DefaultFuchsiaResourceDialect,
6639 0x1847bf5b2d263dd,
6640 >(_buf?)?;
6641 Ok(_response.map(|x| x.config))
6642 }
6643 self.client
6644 .send_query_and_decode::<fidl::encoding::EmptyPayload, SocketGetIpv6ChecksumResult>(
6645 (),
6646 0x1847bf5b2d263dd,
6647 fidl::encoding::DynamicFlags::empty(),
6648 _decode,
6649 )
6650 }
6651}
6652
6653pub struct SocketEventStream {
6654 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
6655}
6656
6657impl std::marker::Unpin for SocketEventStream {}
6658
6659impl futures::stream::FusedStream for SocketEventStream {
6660 fn is_terminated(&self) -> bool {
6661 self.event_receiver.is_terminated()
6662 }
6663}
6664
6665impl futures::Stream for SocketEventStream {
6666 type Item = Result<SocketEvent, fidl::Error>;
6667
6668 fn poll_next(
6669 mut self: std::pin::Pin<&mut Self>,
6670 cx: &mut std::task::Context<'_>,
6671 ) -> std::task::Poll<Option<Self::Item>> {
6672 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
6673 &mut self.event_receiver,
6674 cx
6675 )?) {
6676 Some(buf) => std::task::Poll::Ready(Some(SocketEvent::decode(buf))),
6677 None => std::task::Poll::Ready(None),
6678 }
6679 }
6680}
6681
6682#[derive(Debug)]
6683pub enum SocketEvent {}
6684
6685impl SocketEvent {
6686 fn decode(
6688 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
6689 ) -> Result<SocketEvent, fidl::Error> {
6690 let (bytes, _handles) = buf.split_mut();
6691 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
6692 debug_assert_eq!(tx_header.tx_id, 0);
6693 match tx_header.ordinal {
6694 _ => Err(fidl::Error::UnknownOrdinal {
6695 ordinal: tx_header.ordinal,
6696 protocol_name: <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
6697 }),
6698 }
6699 }
6700}
6701
6702pub struct SocketRequestStream {
6704 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
6705 is_terminated: bool,
6706}
6707
6708impl std::marker::Unpin for SocketRequestStream {}
6709
6710impl futures::stream::FusedStream for SocketRequestStream {
6711 fn is_terminated(&self) -> bool {
6712 self.is_terminated
6713 }
6714}
6715
6716impl fidl::endpoints::RequestStream for SocketRequestStream {
6717 type Protocol = SocketMarker;
6718 type ControlHandle = SocketControlHandle;
6719
6720 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
6721 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
6722 }
6723
6724 fn control_handle(&self) -> Self::ControlHandle {
6725 SocketControlHandle { inner: self.inner.clone() }
6726 }
6727
6728 fn into_inner(
6729 self,
6730 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
6731 {
6732 (self.inner, self.is_terminated)
6733 }
6734
6735 fn from_inner(
6736 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
6737 is_terminated: bool,
6738 ) -> Self {
6739 Self { inner, is_terminated }
6740 }
6741}
6742
6743impl futures::Stream for SocketRequestStream {
6744 type Item = Result<SocketRequest, fidl::Error>;
6745
6746 fn poll_next(
6747 mut self: std::pin::Pin<&mut Self>,
6748 cx: &mut std::task::Context<'_>,
6749 ) -> std::task::Poll<Option<Self::Item>> {
6750 let this = &mut *self;
6751 if this.inner.check_shutdown(cx) {
6752 this.is_terminated = true;
6753 return std::task::Poll::Ready(None);
6754 }
6755 if this.is_terminated {
6756 panic!("polled SocketRequestStream after completion");
6757 }
6758 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
6759 |bytes, handles| {
6760 match this.inner.channel().read_etc(cx, bytes, handles) {
6761 std::task::Poll::Ready(Ok(())) => {}
6762 std::task::Poll::Pending => return std::task::Poll::Pending,
6763 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
6764 this.is_terminated = true;
6765 return std::task::Poll::Ready(None);
6766 }
6767 std::task::Poll::Ready(Err(e)) => {
6768 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
6769 e.into(),
6770 ))))
6771 }
6772 }
6773
6774 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
6776
6777 std::task::Poll::Ready(Some(match header.ordinal {
6778 0x20d8a7aba2168a79 => {
6779 header.validate_request_tx_id(fidl::MethodType::OneWay)?;
6780 let mut req = fidl::new_empty!(
6781 fidl_fuchsia_unknown::CloneableCloneRequest,
6782 fidl::encoding::DefaultFuchsiaResourceDialect
6783 );
6784 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_unknown::CloneableCloneRequest>(&header, _body_bytes, handles, &mut req)?;
6785 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6786 Ok(SocketRequest::Clone { request: req.request, control_handle })
6787 }
6788 0x5ac5d459ad7f657e => {
6789 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6790 let mut req = fidl::new_empty!(
6791 fidl::encoding::EmptyPayload,
6792 fidl::encoding::DefaultFuchsiaResourceDialect
6793 );
6794 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6795 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6796 Ok(SocketRequest::Close {
6797 responder: SocketCloseResponder {
6798 control_handle: std::mem::ManuallyDrop::new(control_handle),
6799 tx_id: header.tx_id,
6800 },
6801 })
6802 }
6803 0x2658edee9decfc06 => {
6804 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6805 let mut req = fidl::new_empty!(
6806 fidl::encoding::EmptyPayload,
6807 fidl::encoding::DefaultFuchsiaResourceDialect
6808 );
6809 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6810 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6811 Ok(SocketRequest::Query {
6812 responder: SocketQueryResponder {
6813 control_handle: std::mem::ManuallyDrop::new(control_handle),
6814 tx_id: header.tx_id,
6815 },
6816 })
6817 }
6818 0x1fd74ee8b9a4a876 => {
6819 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6820 let mut req = fidl::new_empty!(
6821 fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest,
6822 fidl::encoding::DefaultFuchsiaResourceDialect
6823 );
6824 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetReuseAddressRequest>(&header, _body_bytes, handles, &mut req)?;
6825 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6826 Ok(SocketRequest::SetReuseAddress {
6827 value: req.value,
6828
6829 responder: SocketSetReuseAddressResponder {
6830 control_handle: std::mem::ManuallyDrop::new(control_handle),
6831 tx_id: header.tx_id,
6832 },
6833 })
6834 }
6835 0x67b7206b8d1bc0a5 => {
6836 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6837 let mut req = fidl::new_empty!(
6838 fidl::encoding::EmptyPayload,
6839 fidl::encoding::DefaultFuchsiaResourceDialect
6840 );
6841 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6842 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6843 Ok(SocketRequest::GetReuseAddress {
6844 responder: SocketGetReuseAddressResponder {
6845 control_handle: std::mem::ManuallyDrop::new(control_handle),
6846 tx_id: header.tx_id,
6847 },
6848 })
6849 }
6850 0x5aad39b33e5f6ebb => {
6851 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6852 let mut req = fidl::new_empty!(
6853 fidl::encoding::EmptyPayload,
6854 fidl::encoding::DefaultFuchsiaResourceDialect
6855 );
6856 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6857 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6858 Ok(SocketRequest::GetError {
6859 responder: SocketGetErrorResponder {
6860 control_handle: std::mem::ManuallyDrop::new(control_handle),
6861 tx_id: header.tx_id,
6862 },
6863 })
6864 }
6865 0x6023e081ce3cd947 => {
6866 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6867 let mut req = fidl::new_empty!(
6868 fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest,
6869 fidl::encoding::DefaultFuchsiaResourceDialect
6870 );
6871 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetBroadcastRequest>(&header, _body_bytes, handles, &mut req)?;
6872 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6873 Ok(SocketRequest::SetBroadcast {
6874 value: req.value,
6875
6876 responder: SocketSetBroadcastResponder {
6877 control_handle: std::mem::ManuallyDrop::new(control_handle),
6878 tx_id: header.tx_id,
6879 },
6880 })
6881 }
6882 0x68796fc556f9780d => {
6883 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6884 let mut req = fidl::new_empty!(
6885 fidl::encoding::EmptyPayload,
6886 fidl::encoding::DefaultFuchsiaResourceDialect
6887 );
6888 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6889 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6890 Ok(SocketRequest::GetBroadcast {
6891 responder: SocketGetBroadcastResponder {
6892 control_handle: std::mem::ManuallyDrop::new(control_handle),
6893 tx_id: header.tx_id,
6894 },
6895 })
6896 }
6897 0x756eac32d73a7a70 => {
6898 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6899 let mut req = fidl::new_empty!(
6900 fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest,
6901 fidl::encoding::DefaultFuchsiaResourceDialect
6902 );
6903 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetSendBufferRequest>(&header, _body_bytes, handles, &mut req)?;
6904 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6905 Ok(SocketRequest::SetSendBuffer {
6906 value_bytes: req.value_bytes,
6907
6908 responder: SocketSetSendBufferResponder {
6909 control_handle: std::mem::ManuallyDrop::new(control_handle),
6910 tx_id: header.tx_id,
6911 },
6912 })
6913 }
6914 0x78a52fd9c7b2410b => {
6915 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6916 let mut req = fidl::new_empty!(
6917 fidl::encoding::EmptyPayload,
6918 fidl::encoding::DefaultFuchsiaResourceDialect
6919 );
6920 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6921 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6922 Ok(SocketRequest::GetSendBuffer {
6923 responder: SocketGetSendBufferResponder {
6924 control_handle: std::mem::ManuallyDrop::new(control_handle),
6925 tx_id: header.tx_id,
6926 },
6927 })
6928 }
6929 0x6b0cf2f1919c7001 => {
6930 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6931 let mut req = fidl::new_empty!(
6932 fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest,
6933 fidl::encoding::DefaultFuchsiaResourceDialect
6934 );
6935 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetReceiveBufferRequest>(&header, _body_bytes, handles, &mut req)?;
6936 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6937 Ok(SocketRequest::SetReceiveBuffer {
6938 value_bytes: req.value_bytes,
6939
6940 responder: SocketSetReceiveBufferResponder {
6941 control_handle: std::mem::ManuallyDrop::new(control_handle),
6942 tx_id: header.tx_id,
6943 },
6944 })
6945 }
6946 0x14c1a4b64f709e5c => {
6947 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6948 let mut req = fidl::new_empty!(
6949 fidl::encoding::EmptyPayload,
6950 fidl::encoding::DefaultFuchsiaResourceDialect
6951 );
6952 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6953 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6954 Ok(SocketRequest::GetReceiveBuffer {
6955 responder: SocketGetReceiveBufferResponder {
6956 control_handle: std::mem::ManuallyDrop::new(control_handle),
6957 tx_id: header.tx_id,
6958 },
6959 })
6960 }
6961 0x572df8f0b920d2c7 => {
6962 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6963 let mut req = fidl::new_empty!(
6964 fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest,
6965 fidl::encoding::DefaultFuchsiaResourceDialect
6966 );
6967 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetKeepAliveRequest>(&header, _body_bytes, handles, &mut req)?;
6968 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6969 Ok(SocketRequest::SetKeepAlive {
6970 value: req.value,
6971
6972 responder: SocketSetKeepAliveResponder {
6973 control_handle: std::mem::ManuallyDrop::new(control_handle),
6974 tx_id: header.tx_id,
6975 },
6976 })
6977 }
6978 0x2dd29d3215f2c9d2 => {
6979 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6980 let mut req = fidl::new_empty!(
6981 fidl::encoding::EmptyPayload,
6982 fidl::encoding::DefaultFuchsiaResourceDialect
6983 );
6984 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
6985 let control_handle = SocketControlHandle { inner: this.inner.clone() };
6986 Ok(SocketRequest::GetKeepAlive {
6987 responder: SocketGetKeepAliveResponder {
6988 control_handle: std::mem::ManuallyDrop::new(control_handle),
6989 tx_id: header.tx_id,
6990 },
6991 })
6992 }
6993 0x3ecb49968bee439 => {
6994 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
6995 let mut req = fidl::new_empty!(
6996 fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest,
6997 fidl::encoding::DefaultFuchsiaResourceDialect
6998 );
6999 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetOutOfBandInlineRequest>(&header, _body_bytes, handles, &mut req)?;
7000 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7001 Ok(SocketRequest::SetOutOfBandInline {
7002 value: req.value,
7003
7004 responder: SocketSetOutOfBandInlineResponder {
7005 control_handle: std::mem::ManuallyDrop::new(control_handle),
7006 tx_id: header.tx_id,
7007 },
7008 })
7009 }
7010 0x348c1ab3aeca1745 => {
7011 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7012 let mut req = fidl::new_empty!(
7013 fidl::encoding::EmptyPayload,
7014 fidl::encoding::DefaultFuchsiaResourceDialect
7015 );
7016 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7017 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7018 Ok(SocketRequest::GetOutOfBandInline {
7019 responder: SocketGetOutOfBandInlineResponder {
7020 control_handle: std::mem::ManuallyDrop::new(control_handle),
7021 tx_id: header.tx_id,
7022 },
7023 })
7024 }
7025 0x6bbf00c53a4c78c2 => {
7026 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7027 let mut req = fidl::new_empty!(
7028 fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest,
7029 fidl::encoding::DefaultFuchsiaResourceDialect
7030 );
7031 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetNoCheckRequest>(&header, _body_bytes, handles, &mut req)?;
7032 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7033 Ok(SocketRequest::SetNoCheck {
7034 value: req.value,
7035
7036 responder: SocketSetNoCheckResponder {
7037 control_handle: std::mem::ManuallyDrop::new(control_handle),
7038 tx_id: header.tx_id,
7039 },
7040 })
7041 }
7042 0x2cd4249286417694 => {
7043 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7044 let mut req = fidl::new_empty!(
7045 fidl::encoding::EmptyPayload,
7046 fidl::encoding::DefaultFuchsiaResourceDialect
7047 );
7048 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7049 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7050 Ok(SocketRequest::GetNoCheck {
7051 responder: SocketGetNoCheckResponder {
7052 control_handle: std::mem::ManuallyDrop::new(control_handle),
7053 tx_id: header.tx_id,
7054 },
7055 })
7056 }
7057 0x45386351246e998e => {
7058 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7059 let mut req = fidl::new_empty!(
7060 fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest,
7061 fidl::encoding::DefaultFuchsiaResourceDialect
7062 );
7063 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetLingerRequest>(&header, _body_bytes, handles, &mut req)?;
7064 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7065 Ok(SocketRequest::SetLinger {
7066 linger: req.linger,
7067 length_secs: req.length_secs,
7068
7069 responder: SocketSetLingerResponder {
7070 control_handle: std::mem::ManuallyDrop::new(control_handle),
7071 tx_id: header.tx_id,
7072 },
7073 })
7074 }
7075 0x48eb20fc5ccb0e45 => {
7076 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7077 let mut req = fidl::new_empty!(
7078 fidl::encoding::EmptyPayload,
7079 fidl::encoding::DefaultFuchsiaResourceDialect
7080 );
7081 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7082 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7083 Ok(SocketRequest::GetLinger {
7084 responder: SocketGetLingerResponder {
7085 control_handle: std::mem::ManuallyDrop::new(control_handle),
7086 tx_id: header.tx_id,
7087 },
7088 })
7089 }
7090 0x24dd3e5cb36d9ccb => {
7091 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7092 let mut req = fidl::new_empty!(
7093 fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest,
7094 fidl::encoding::DefaultFuchsiaResourceDialect
7095 );
7096 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetReusePortRequest>(&header, _body_bytes, handles, &mut req)?;
7097 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7098 Ok(SocketRequest::SetReusePort {
7099 value: req.value,
7100
7101 responder: SocketSetReusePortResponder {
7102 control_handle: std::mem::ManuallyDrop::new(control_handle),
7103 tx_id: header.tx_id,
7104 },
7105 })
7106 }
7107 0x7a112c1ab54ff828 => {
7108 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7109 let mut req = fidl::new_empty!(
7110 fidl::encoding::EmptyPayload,
7111 fidl::encoding::DefaultFuchsiaResourceDialect
7112 );
7113 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7114 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7115 Ok(SocketRequest::GetReusePort {
7116 responder: SocketGetReusePortResponder {
7117 control_handle: std::mem::ManuallyDrop::new(control_handle),
7118 tx_id: header.tx_id,
7119 },
7120 })
7121 }
7122 0x67ce6db6c2ec8966 => {
7123 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7124 let mut req = fidl::new_empty!(
7125 fidl::encoding::EmptyPayload,
7126 fidl::encoding::DefaultFuchsiaResourceDialect
7127 );
7128 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7129 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7130 Ok(SocketRequest::GetAcceptConn {
7131 responder: SocketGetAcceptConnResponder {
7132 control_handle: std::mem::ManuallyDrop::new(control_handle),
7133 tx_id: header.tx_id,
7134 },
7135 })
7136 }
7137 0x2118b483f28aafc4 => {
7138 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7139 let mut req = fidl::new_empty!(
7140 fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest,
7141 fidl::encoding::DefaultFuchsiaResourceDialect
7142 );
7143 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetBindToDeviceRequest>(&header, _body_bytes, handles, &mut req)?;
7144 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7145 Ok(SocketRequest::SetBindToDevice {
7146 value: req.value,
7147
7148 responder: SocketSetBindToDeviceResponder {
7149 control_handle: std::mem::ManuallyDrop::new(control_handle),
7150 tx_id: header.tx_id,
7151 },
7152 })
7153 }
7154 0x1ab1fbf0ef7906c8 => {
7155 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7156 let mut req = fidl::new_empty!(
7157 fidl::encoding::EmptyPayload,
7158 fidl::encoding::DefaultFuchsiaResourceDialect
7159 );
7160 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7161 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7162 Ok(SocketRequest::GetBindToDevice {
7163 responder: SocketGetBindToDeviceResponder {
7164 control_handle: std::mem::ManuallyDrop::new(control_handle),
7165 tx_id: header.tx_id,
7166 },
7167 })
7168 }
7169 0x6e387a0def00821 => {
7170 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7171 let mut req = fidl::new_empty!(
7172 fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest,
7173 fidl::encoding::DefaultFuchsiaResourceDialect
7174 );
7175 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetBindToInterfaceIndexRequest>(&header, _body_bytes, handles, &mut req)?;
7176 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7177 Ok(SocketRequest::SetBindToInterfaceIndex {
7178 value: req.value,
7179
7180 responder: SocketSetBindToInterfaceIndexResponder {
7181 control_handle: std::mem::ManuallyDrop::new(control_handle),
7182 tx_id: header.tx_id,
7183 },
7184 })
7185 }
7186 0x59c31dd3e3078295 => {
7187 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7188 let mut req = fidl::new_empty!(
7189 fidl::encoding::EmptyPayload,
7190 fidl::encoding::DefaultFuchsiaResourceDialect
7191 );
7192 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7193 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7194 Ok(SocketRequest::GetBindToInterfaceIndex {
7195 responder: SocketGetBindToInterfaceIndexResponder {
7196 control_handle: std::mem::ManuallyDrop::new(control_handle),
7197 tx_id: header.tx_id,
7198 },
7199 })
7200 }
7201 0x285d6516c263d839 => {
7202 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7203 let mut req = fidl::new_empty!(
7204 fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest,
7205 fidl::encoding::DefaultFuchsiaResourceDialect
7206 );
7207 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetTimestampRequest>(&header, _body_bytes, handles, &mut req)?;
7208 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7209 Ok(SocketRequest::SetTimestamp {
7210 value: req.value,
7211
7212 responder: SocketSetTimestampResponder {
7213 control_handle: std::mem::ManuallyDrop::new(control_handle),
7214 tx_id: header.tx_id,
7215 },
7216 })
7217 }
7218 0x49f2fffbbcc2bd27 => {
7219 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7220 let mut req = fidl::new_empty!(
7221 fidl::encoding::EmptyPayload,
7222 fidl::encoding::DefaultFuchsiaResourceDialect
7223 );
7224 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7225 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7226 Ok(SocketRequest::GetTimestamp {
7227 responder: SocketGetTimestampResponder {
7228 control_handle: std::mem::ManuallyDrop::new(control_handle),
7229 tx_id: header.tx_id,
7230 },
7231 })
7232 }
7233 0x6ead6de09f653236 => {
7234 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7235 let mut req = fidl::new_empty!(
7236 fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest,
7237 fidl::encoding::DefaultFuchsiaResourceDialect
7238 );
7239 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketSetMarkRequest>(&header, _body_bytes, handles, &mut req)?;
7240 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7241 Ok(SocketRequest::SetMark {
7242 domain: req.domain,
7243 mark: req.mark,
7244
7245 responder: SocketSetMarkResponder {
7246 control_handle: std::mem::ManuallyDrop::new(control_handle),
7247 tx_id: header.tx_id,
7248 },
7249 })
7250 }
7251 0x57a2752c61d93d47 => {
7252 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7253 let mut req = fidl::new_empty!(
7254 fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest,
7255 fidl::encoding::DefaultFuchsiaResourceDialect
7256 );
7257 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseSocketGetMarkRequest>(&header, _body_bytes, handles, &mut req)?;
7258 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7259 Ok(SocketRequest::GetMark {
7260 domain: req.domain,
7261
7262 responder: SocketGetMarkResponder {
7263 control_handle: std::mem::ManuallyDrop::new(control_handle),
7264 tx_id: header.tx_id,
7265 },
7266 })
7267 }
7268 0x4bc6400ae92125d => {
7269 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7270 let mut req = fidl::new_empty!(
7271 fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest,
7272 fidl::encoding::DefaultFuchsiaResourceDialect
7273 );
7274 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketBindRequest>(&header, _body_bytes, handles, &mut req)?;
7275 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7276 Ok(SocketRequest::Bind {
7277 addr: req.addr,
7278
7279 responder: SocketBindResponder {
7280 control_handle: std::mem::ManuallyDrop::new(control_handle),
7281 tx_id: header.tx_id,
7282 },
7283 })
7284 }
7285 0x5f05f19bfdd38871 => {
7286 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7287 let mut req = fidl::new_empty!(
7288 fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest,
7289 fidl::encoding::DefaultFuchsiaResourceDialect
7290 );
7291 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketConnectRequest>(&header, _body_bytes, handles, &mut req)?;
7292 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7293 Ok(SocketRequest::Connect {
7294 addr: req.addr,
7295
7296 responder: SocketConnectResponder {
7297 control_handle: std::mem::ManuallyDrop::new(control_handle),
7298 tx_id: header.tx_id,
7299 },
7300 })
7301 }
7302 0x74e63b91f7b29b2 => {
7303 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7304 let mut req = fidl::new_empty!(
7305 fidl::encoding::EmptyPayload,
7306 fidl::encoding::DefaultFuchsiaResourceDialect
7307 );
7308 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7309 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7310 Ok(SocketRequest::Disconnect {
7311 responder: SocketDisconnectResponder {
7312 control_handle: std::mem::ManuallyDrop::new(control_handle),
7313 tx_id: header.tx_id,
7314 },
7315 })
7316 }
7317 0x475f23f84a1a4f85 => {
7318 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7319 let mut req = fidl::new_empty!(
7320 fidl::encoding::EmptyPayload,
7321 fidl::encoding::DefaultFuchsiaResourceDialect
7322 );
7323 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7324 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7325 Ok(SocketRequest::GetSockName {
7326 responder: SocketGetSockNameResponder {
7327 control_handle: std::mem::ManuallyDrop::new(control_handle),
7328 tx_id: header.tx_id,
7329 },
7330 })
7331 }
7332 0x1ffecf4bd5b6432e => {
7333 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7334 let mut req = fidl::new_empty!(
7335 fidl::encoding::EmptyPayload,
7336 fidl::encoding::DefaultFuchsiaResourceDialect
7337 );
7338 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7339 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7340 Ok(SocketRequest::GetPeerName {
7341 responder: SocketGetPeerNameResponder {
7342 control_handle: std::mem::ManuallyDrop::new(control_handle),
7343 tx_id: header.tx_id,
7344 },
7345 })
7346 }
7347 0x247f38b6db68c336 => {
7348 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7349 let mut req = fidl::new_empty!(
7350 fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest,
7351 fidl::encoding::DefaultFuchsiaResourceDialect
7352 );
7353 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketShutdownRequest>(&header, _body_bytes, handles, &mut req)?;
7354 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7355 Ok(SocketRequest::Shutdown {
7356 mode: req.mode,
7357
7358 responder: SocketShutdownResponder {
7359 control_handle: std::mem::ManuallyDrop::new(control_handle),
7360 tx_id: header.tx_id,
7361 },
7362 })
7363 }
7364 0x995c600475b6d46 => {
7365 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7366 let mut req = fidl::new_empty!(
7367 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest,
7368 fidl::encoding::DefaultFuchsiaResourceDialect
7369 );
7370 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTypeOfServiceRequest>(&header, _body_bytes, handles, &mut req)?;
7371 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7372 Ok(SocketRequest::SetIpTypeOfService {
7373 value: req.value,
7374
7375 responder: SocketSetIpTypeOfServiceResponder {
7376 control_handle: std::mem::ManuallyDrop::new(control_handle),
7377 tx_id: header.tx_id,
7378 },
7379 })
7380 }
7381 0x3814a04259f75fcb => {
7382 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7383 let mut req = fidl::new_empty!(
7384 fidl::encoding::EmptyPayload,
7385 fidl::encoding::DefaultFuchsiaResourceDialect
7386 );
7387 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7388 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7389 Ok(SocketRequest::GetIpTypeOfService {
7390 responder: SocketGetIpTypeOfServiceResponder {
7391 control_handle: std::mem::ManuallyDrop::new(control_handle),
7392 tx_id: header.tx_id,
7393 },
7394 })
7395 }
7396 0x29e2424b433ae1ef => {
7397 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7398 let mut req = fidl::new_empty!(
7399 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest,
7400 fidl::encoding::DefaultFuchsiaResourceDialect
7401 );
7402 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTtlRequest>(&header, _body_bytes, handles, &mut req)?;
7403 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7404 Ok(SocketRequest::SetIpTtl {
7405 value: req.value,
7406
7407 responder: SocketSetIpTtlResponder {
7408 control_handle: std::mem::ManuallyDrop::new(control_handle),
7409 tx_id: header.tx_id,
7410 },
7411 })
7412 }
7413 0x47e47fa1f24da471 => {
7414 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7415 let mut req = fidl::new_empty!(
7416 fidl::encoding::EmptyPayload,
7417 fidl::encoding::DefaultFuchsiaResourceDialect
7418 );
7419 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7420 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7421 Ok(SocketRequest::GetIpTtl {
7422 responder: SocketGetIpTtlResponder {
7423 control_handle: std::mem::ManuallyDrop::new(control_handle),
7424 tx_id: header.tx_id,
7425 },
7426 })
7427 }
7428 0x392d16bee20c0e16 => {
7429 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7430 let mut req = fidl::new_empty!(
7431 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest,
7432 fidl::encoding::DefaultFuchsiaResourceDialect
7433 );
7434 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpPacketInfoRequest>(&header, _body_bytes, handles, &mut req)?;
7435 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7436 Ok(SocketRequest::SetIpPacketInfo {
7437 value: req.value,
7438
7439 responder: SocketSetIpPacketInfoResponder {
7440 control_handle: std::mem::ManuallyDrop::new(control_handle),
7441 tx_id: header.tx_id,
7442 },
7443 })
7444 }
7445 0x54b505f242280740 => {
7446 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7447 let mut req = fidl::new_empty!(
7448 fidl::encoding::EmptyPayload,
7449 fidl::encoding::DefaultFuchsiaResourceDialect
7450 );
7451 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7452 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7453 Ok(SocketRequest::GetIpPacketInfo {
7454 responder: SocketGetIpPacketInfoResponder {
7455 control_handle: std::mem::ManuallyDrop::new(control_handle),
7456 tx_id: header.tx_id,
7457 },
7458 })
7459 }
7460 0x6c4f6714995f84ef => {
7461 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7462 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7463 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTypeOfServiceRequest>(&header, _body_bytes, handles, &mut req)?;
7464 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7465 Ok(SocketRequest::SetIpReceiveTypeOfService {
7466 value: req.value,
7467
7468 responder: SocketSetIpReceiveTypeOfServiceResponder {
7469 control_handle: std::mem::ManuallyDrop::new(control_handle),
7470 tx_id: header.tx_id,
7471 },
7472 })
7473 }
7474 0x4158ba7dc2795960 => {
7475 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7476 let mut req = fidl::new_empty!(
7477 fidl::encoding::EmptyPayload,
7478 fidl::encoding::DefaultFuchsiaResourceDialect
7479 );
7480 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7481 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7482 Ok(SocketRequest::GetIpReceiveTypeOfService {
7483 responder: SocketGetIpReceiveTypeOfServiceResponder {
7484 control_handle: std::mem::ManuallyDrop::new(control_handle),
7485 tx_id: header.tx_id,
7486 },
7487 })
7488 }
7489 0x46f15be0ce0ab82b => {
7490 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7491 let mut req = fidl::new_empty!(
7492 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest,
7493 fidl::encoding::DefaultFuchsiaResourceDialect
7494 );
7495 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveTtlRequest>(&header, _body_bytes, handles, &mut req)?;
7496 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7497 Ok(SocketRequest::SetIpReceiveTtl {
7498 value: req.value,
7499
7500 responder: SocketSetIpReceiveTtlResponder {
7501 control_handle: std::mem::ManuallyDrop::new(control_handle),
7502 tx_id: header.tx_id,
7503 },
7504 })
7505 }
7506 0x678ddd5a5dfa2eb5 => {
7507 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7508 let mut req = fidl::new_empty!(
7509 fidl::encoding::EmptyPayload,
7510 fidl::encoding::DefaultFuchsiaResourceDialect
7511 );
7512 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7513 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7514 Ok(SocketRequest::GetIpReceiveTtl {
7515 responder: SocketGetIpReceiveTtlResponder {
7516 control_handle: std::mem::ManuallyDrop::new(control_handle),
7517 tx_id: header.tx_id,
7518 },
7519 })
7520 }
7521 0x752fbfa9b12befe => {
7522 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7523 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7524 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastInterfaceRequest>(&header, _body_bytes, handles, &mut req)?;
7525 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7526 Ok(SocketRequest::SetIpMulticastInterface {
7527 iface: req.iface,
7528 address: req.address,
7529
7530 responder: SocketSetIpMulticastInterfaceResponder {
7531 control_handle: std::mem::ManuallyDrop::new(control_handle),
7532 tx_id: header.tx_id,
7533 },
7534 })
7535 }
7536 0x320bd14c4df046c4 => {
7537 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7538 let mut req = fidl::new_empty!(
7539 fidl::encoding::EmptyPayload,
7540 fidl::encoding::DefaultFuchsiaResourceDialect
7541 );
7542 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7543 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7544 Ok(SocketRequest::GetIpMulticastInterface {
7545 responder: SocketGetIpMulticastInterfaceResponder {
7546 control_handle: std::mem::ManuallyDrop::new(control_handle),
7547 tx_id: header.tx_id,
7548 },
7549 })
7550 }
7551 0x63134d53772916a1 => {
7552 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7553 let mut req = fidl::new_empty!(
7554 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest,
7555 fidl::encoding::DefaultFuchsiaResourceDialect
7556 );
7557 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastTtlRequest>(&header, _body_bytes, handles, &mut req)?;
7558 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7559 Ok(SocketRequest::SetIpMulticastTtl {
7560 value: req.value,
7561
7562 responder: SocketSetIpMulticastTtlResponder {
7563 control_handle: std::mem::ManuallyDrop::new(control_handle),
7564 tx_id: header.tx_id,
7565 },
7566 })
7567 }
7568 0x4665cd378f39e1a => {
7569 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7570 let mut req = fidl::new_empty!(
7571 fidl::encoding::EmptyPayload,
7572 fidl::encoding::DefaultFuchsiaResourceDialect
7573 );
7574 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7575 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7576 Ok(SocketRequest::GetIpMulticastTtl {
7577 responder: SocketGetIpMulticastTtlResponder {
7578 control_handle: std::mem::ManuallyDrop::new(control_handle),
7579 tx_id: header.tx_id,
7580 },
7581 })
7582 }
7583 0x20c55c11f00943ea => {
7584 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7585 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7586 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpMulticastLoopbackRequest>(&header, _body_bytes, handles, &mut req)?;
7587 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7588 Ok(SocketRequest::SetIpMulticastLoopback {
7589 value: req.value,
7590
7591 responder: SocketSetIpMulticastLoopbackResponder {
7592 control_handle: std::mem::ManuallyDrop::new(control_handle),
7593 tx_id: header.tx_id,
7594 },
7595 })
7596 }
7597 0x3b6b26ff558298f2 => {
7598 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7599 let mut req = fidl::new_empty!(
7600 fidl::encoding::EmptyPayload,
7601 fidl::encoding::DefaultFuchsiaResourceDialect
7602 );
7603 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7604 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7605 Ok(SocketRequest::GetIpMulticastLoopback {
7606 responder: SocketGetIpMulticastLoopbackResponder {
7607 control_handle: std::mem::ManuallyDrop::new(control_handle),
7608 tx_id: header.tx_id,
7609 },
7610 })
7611 }
7612 0x76bc7df115a3b4d0 => {
7613 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7614 let mut req = fidl::new_empty!(
7615 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest,
7616 fidl::encoding::DefaultFuchsiaResourceDialect
7617 );
7618 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpMembershipRequest>(&header, _body_bytes, handles, &mut req)?;
7619 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7620 Ok(SocketRequest::AddIpMembership {
7621 membership: req.membership,
7622
7623 responder: SocketAddIpMembershipResponder {
7624 control_handle: std::mem::ManuallyDrop::new(control_handle),
7625 tx_id: header.tx_id,
7626 },
7627 })
7628 }
7629 0x2888f3099188d03 => {
7630 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7631 let mut req = fidl::new_empty!(
7632 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest,
7633 fidl::encoding::DefaultFuchsiaResourceDialect
7634 );
7635 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpMembershipRequest>(&header, _body_bytes, handles, &mut req)?;
7636 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7637 Ok(SocketRequest::DropIpMembership {
7638 membership: req.membership,
7639
7640 responder: SocketDropIpMembershipResponder {
7641 control_handle: std::mem::ManuallyDrop::new(control_handle),
7642 tx_id: header.tx_id,
7643 },
7644 })
7645 }
7646 0x1ae532b0c066e3a0 => {
7647 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7648 let mut req = fidl::new_empty!(
7649 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest,
7650 fidl::encoding::DefaultFuchsiaResourceDialect
7651 );
7652 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpTransparentRequest>(&header, _body_bytes, handles, &mut req)?;
7653 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7654 Ok(SocketRequest::SetIpTransparent {
7655 value: req.value,
7656
7657 responder: SocketSetIpTransparentResponder {
7658 control_handle: std::mem::ManuallyDrop::new(control_handle),
7659 tx_id: header.tx_id,
7660 },
7661 })
7662 }
7663 0x51d43695962ebfb5 => {
7664 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7665 let mut req = fidl::new_empty!(
7666 fidl::encoding::EmptyPayload,
7667 fidl::encoding::DefaultFuchsiaResourceDialect
7668 );
7669 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7670 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7671 Ok(SocketRequest::GetIpTransparent {
7672 responder: SocketGetIpTransparentResponder {
7673 control_handle: std::mem::ManuallyDrop::new(control_handle),
7674 tx_id: header.tx_id,
7675 },
7676 })
7677 }
7678 0x4722b4ce52f7840 => {
7679 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7680 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7681 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpReceiveOriginalDestinationAddressRequest>(&header, _body_bytes, handles, &mut req)?;
7682 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7683 Ok(SocketRequest::SetIpReceiveOriginalDestinationAddress {
7684 value: req.value,
7685
7686 responder: SocketSetIpReceiveOriginalDestinationAddressResponder {
7687 control_handle: std::mem::ManuallyDrop::new(control_handle),
7688 tx_id: header.tx_id,
7689 },
7690 })
7691 }
7692 0x2a0e7dc5d6bfdfe9 => {
7693 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7694 let mut req = fidl::new_empty!(
7695 fidl::encoding::EmptyPayload,
7696 fidl::encoding::DefaultFuchsiaResourceDialect
7697 );
7698 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7699 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7700 Ok(SocketRequest::GetIpReceiveOriginalDestinationAddress {
7701 responder: SocketGetIpReceiveOriginalDestinationAddressResponder {
7702 control_handle: std::mem::ManuallyDrop::new(control_handle),
7703 tx_id: header.tx_id,
7704 },
7705 })
7706 }
7707 0x7c94727acb4ea4b3 => {
7708 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7709 let mut req = fidl::new_empty!(
7710 fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest,
7711 fidl::encoding::DefaultFuchsiaResourceDialect
7712 );
7713 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketAddIpv6MembershipRequest>(&header, _body_bytes, handles, &mut req)?;
7714 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7715 Ok(SocketRequest::AddIpv6Membership {
7716 membership: req.membership,
7717
7718 responder: SocketAddIpv6MembershipResponder {
7719 control_handle: std::mem::ManuallyDrop::new(control_handle),
7720 tx_id: header.tx_id,
7721 },
7722 })
7723 }
7724 0x42104c70ccaba304 => {
7725 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7726 let mut req = fidl::new_empty!(
7727 fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest,
7728 fidl::encoding::DefaultFuchsiaResourceDialect
7729 );
7730 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketDropIpv6MembershipRequest>(&header, _body_bytes, handles, &mut req)?;
7731 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7732 Ok(SocketRequest::DropIpv6Membership {
7733 membership: req.membership,
7734
7735 responder: SocketDropIpv6MembershipResponder {
7736 control_handle: std::mem::ManuallyDrop::new(control_handle),
7737 tx_id: header.tx_id,
7738 },
7739 })
7740 }
7741 0x135f76db3774ab3b => {
7742 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7743 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7744 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastInterfaceRequest>(&header, _body_bytes, handles, &mut req)?;
7745 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7746 Ok(SocketRequest::SetIpv6MulticastInterface {
7747 value: req.value,
7748
7749 responder: SocketSetIpv6MulticastInterfaceResponder {
7750 control_handle: std::mem::ManuallyDrop::new(control_handle),
7751 tx_id: header.tx_id,
7752 },
7753 })
7754 }
7755 0x1f26fcdd348f1882 => {
7756 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7757 let mut req = fidl::new_empty!(
7758 fidl::encoding::EmptyPayload,
7759 fidl::encoding::DefaultFuchsiaResourceDialect
7760 );
7761 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7762 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7763 Ok(SocketRequest::GetIpv6MulticastInterface {
7764 responder: SocketGetIpv6MulticastInterfaceResponder {
7765 control_handle: std::mem::ManuallyDrop::new(control_handle),
7766 tx_id: header.tx_id,
7767 },
7768 })
7769 }
7770 0x157d51e98f462859 => {
7771 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7772 let mut req = fidl::new_empty!(
7773 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest,
7774 fidl::encoding::DefaultFuchsiaResourceDialect
7775 );
7776 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6UnicastHopsRequest>(&header, _body_bytes, handles, &mut req)?;
7777 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7778 Ok(SocketRequest::SetIpv6UnicastHops {
7779 value: req.value,
7780
7781 responder: SocketSetIpv6UnicastHopsResponder {
7782 control_handle: std::mem::ManuallyDrop::new(control_handle),
7783 tx_id: header.tx_id,
7784 },
7785 })
7786 }
7787 0x21f4641cad8bd8d2 => {
7788 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7789 let mut req = fidl::new_empty!(
7790 fidl::encoding::EmptyPayload,
7791 fidl::encoding::DefaultFuchsiaResourceDialect
7792 );
7793 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7794 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7795 Ok(SocketRequest::GetIpv6UnicastHops {
7796 responder: SocketGetIpv6UnicastHopsResponder {
7797 control_handle: std::mem::ManuallyDrop::new(control_handle),
7798 tx_id: header.tx_id,
7799 },
7800 })
7801 }
7802 0x5c24808ed2e84a1e => {
7803 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7804 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7805 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveHopLimitRequest>(&header, _body_bytes, handles, &mut req)?;
7806 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7807 Ok(SocketRequest::SetIpv6ReceiveHopLimit {
7808 value: req.value,
7809
7810 responder: SocketSetIpv6ReceiveHopLimitResponder {
7811 control_handle: std::mem::ManuallyDrop::new(control_handle),
7812 tx_id: header.tx_id,
7813 },
7814 })
7815 }
7816 0x341e06689885b4c0 => {
7817 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7818 let mut req = fidl::new_empty!(
7819 fidl::encoding::EmptyPayload,
7820 fidl::encoding::DefaultFuchsiaResourceDialect
7821 );
7822 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7823 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7824 Ok(SocketRequest::GetIpv6ReceiveHopLimit {
7825 responder: SocketGetIpv6ReceiveHopLimitResponder {
7826 control_handle: std::mem::ManuallyDrop::new(control_handle),
7827 tx_id: header.tx_id,
7828 },
7829 })
7830 }
7831 0x25b9cd4d181f82c1 => {
7832 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7833 let mut req = fidl::new_empty!(
7834 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest,
7835 fidl::encoding::DefaultFuchsiaResourceDialect
7836 );
7837 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastHopsRequest>(&header, _body_bytes, handles, &mut req)?;
7838 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7839 Ok(SocketRequest::SetIpv6MulticastHops {
7840 value: req.value,
7841
7842 responder: SocketSetIpv6MulticastHopsResponder {
7843 control_handle: std::mem::ManuallyDrop::new(control_handle),
7844 tx_id: header.tx_id,
7845 },
7846 })
7847 }
7848 0x52916948a365012a => {
7849 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7850 let mut req = fidl::new_empty!(
7851 fidl::encoding::EmptyPayload,
7852 fidl::encoding::DefaultFuchsiaResourceDialect
7853 );
7854 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7855 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7856 Ok(SocketRequest::GetIpv6MulticastHops {
7857 responder: SocketGetIpv6MulticastHopsResponder {
7858 control_handle: std::mem::ManuallyDrop::new(control_handle),
7859 tx_id: header.tx_id,
7860 },
7861 })
7862 }
7863 0x55701c409ff41b40 => {
7864 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7865 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7866 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6MulticastLoopbackRequest>(&header, _body_bytes, handles, &mut req)?;
7867 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7868 Ok(SocketRequest::SetIpv6MulticastLoopback {
7869 value: req.value,
7870
7871 responder: SocketSetIpv6MulticastLoopbackResponder {
7872 control_handle: std::mem::ManuallyDrop::new(control_handle),
7873 tx_id: header.tx_id,
7874 },
7875 })
7876 }
7877 0x4415b701fde319c3 => {
7878 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7879 let mut req = fidl::new_empty!(
7880 fidl::encoding::EmptyPayload,
7881 fidl::encoding::DefaultFuchsiaResourceDialect
7882 );
7883 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7884 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7885 Ok(SocketRequest::GetIpv6MulticastLoopback {
7886 responder: SocketGetIpv6MulticastLoopbackResponder {
7887 control_handle: std::mem::ManuallyDrop::new(control_handle),
7888 tx_id: header.tx_id,
7889 },
7890 })
7891 }
7892 0x4873f1364758cbba => {
7893 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7894 let mut req = fidl::new_empty!(
7895 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest,
7896 fidl::encoding::DefaultFuchsiaResourceDialect
7897 );
7898 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6OnlyRequest>(&header, _body_bytes, handles, &mut req)?;
7899 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7900 Ok(SocketRequest::SetIpv6Only {
7901 value: req.value,
7902
7903 responder: SocketSetIpv6OnlyResponder {
7904 control_handle: std::mem::ManuallyDrop::new(control_handle),
7905 tx_id: header.tx_id,
7906 },
7907 })
7908 }
7909 0x4aa3340a1a26b89c => {
7910 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7911 let mut req = fidl::new_empty!(
7912 fidl::encoding::EmptyPayload,
7913 fidl::encoding::DefaultFuchsiaResourceDialect
7914 );
7915 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7916 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7917 Ok(SocketRequest::GetIpv6Only {
7918 responder: SocketGetIpv6OnlyResponder {
7919 control_handle: std::mem::ManuallyDrop::new(control_handle),
7920 tx_id: header.tx_id,
7921 },
7922 })
7923 }
7924 0x58f07c8788d099a0 => {
7925 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7926 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7927 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceiveTrafficClassRequest>(&header, _body_bytes, handles, &mut req)?;
7928 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7929 Ok(SocketRequest::SetIpv6ReceiveTrafficClass {
7930 value: req.value,
7931
7932 responder: SocketSetIpv6ReceiveTrafficClassResponder {
7933 control_handle: std::mem::ManuallyDrop::new(control_handle),
7934 tx_id: header.tx_id,
7935 },
7936 })
7937 }
7938 0x2e334df1da553ffa => {
7939 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7940 let mut req = fidl::new_empty!(
7941 fidl::encoding::EmptyPayload,
7942 fidl::encoding::DefaultFuchsiaResourceDialect
7943 );
7944 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7945 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7946 Ok(SocketRequest::GetIpv6ReceiveTrafficClass {
7947 responder: SocketGetIpv6ReceiveTrafficClassResponder {
7948 control_handle: std::mem::ManuallyDrop::new(control_handle),
7949 tx_id: header.tx_id,
7950 },
7951 })
7952 }
7953 0x6af077800c5a0b4f => {
7954 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7955 let mut req = fidl::new_empty!(
7956 fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest,
7957 fidl::encoding::DefaultFuchsiaResourceDialect
7958 );
7959 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6TrafficClassRequest>(&header, _body_bytes, handles, &mut req)?;
7960 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7961 Ok(SocketRequest::SetIpv6TrafficClass {
7962 value: req.value,
7963
7964 responder: SocketSetIpv6TrafficClassResponder {
7965 control_handle: std::mem::ManuallyDrop::new(control_handle),
7966 tx_id: header.tx_id,
7967 },
7968 })
7969 }
7970 0x6baf6eed8fc2f04 => {
7971 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7972 let mut req = fidl::new_empty!(
7973 fidl::encoding::EmptyPayload,
7974 fidl::encoding::DefaultFuchsiaResourceDialect
7975 );
7976 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
7977 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7978 Ok(SocketRequest::GetIpv6TrafficClass {
7979 responder: SocketGetIpv6TrafficClassResponder {
7980 control_handle: std::mem::ManuallyDrop::new(control_handle),
7981 tx_id: header.tx_id,
7982 },
7983 })
7984 }
7985 0x19259775b1a92768 => {
7986 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
7987 let mut req = fidl::new_empty!(fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest, fidl::encoding::DefaultFuchsiaResourceDialect);
7988 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl_fuchsia_posix_socket::BaseNetworkSocketSetIpv6ReceivePacketInfoRequest>(&header, _body_bytes, handles, &mut req)?;
7989 let control_handle = SocketControlHandle { inner: this.inner.clone() };
7990 Ok(SocketRequest::SetIpv6ReceivePacketInfo {
7991 value: req.value,
7992
7993 responder: SocketSetIpv6ReceivePacketInfoResponder {
7994 control_handle: std::mem::ManuallyDrop::new(control_handle),
7995 tx_id: header.tx_id,
7996 },
7997 })
7998 }
7999 0x7acd4a2775baec75 => {
8000 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8001 let mut req = fidl::new_empty!(
8002 fidl::encoding::EmptyPayload,
8003 fidl::encoding::DefaultFuchsiaResourceDialect
8004 );
8005 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8006 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8007 Ok(SocketRequest::GetIpv6ReceivePacketInfo {
8008 responder: SocketGetIpv6ReceivePacketInfoResponder {
8009 control_handle: std::mem::ManuallyDrop::new(control_handle),
8010 tx_id: header.tx_id,
8011 },
8012 })
8013 }
8014 0x38bf28f0dafdbac0 => {
8015 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8016 let mut req = fidl::new_empty!(
8017 fidl::encoding::EmptyPayload,
8018 fidl::encoding::DefaultFuchsiaResourceDialect
8019 );
8020 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8021 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8022 Ok(SocketRequest::GetOriginalDestination {
8023 responder: SocketGetOriginalDestinationResponder {
8024 control_handle: std::mem::ManuallyDrop::new(control_handle),
8025 tx_id: header.tx_id,
8026 },
8027 })
8028 }
8029 0x335706eccf54a135 => {
8030 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8031 let mut req = fidl::new_empty!(
8032 fidl::encoding::EmptyPayload,
8033 fidl::encoding::DefaultFuchsiaResourceDialect
8034 );
8035 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8036 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8037 Ok(SocketRequest::Describe {
8038 responder: SocketDescribeResponder {
8039 control_handle: std::mem::ManuallyDrop::new(control_handle),
8040 tx_id: header.tx_id,
8041 },
8042 })
8043 }
8044 0x1dfb695351d3aa1d => {
8045 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8046 let mut req = fidl::new_empty!(
8047 SocketRecvMsgRequest,
8048 fidl::encoding::DefaultFuchsiaResourceDialect
8049 );
8050 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketRecvMsgRequest>(&header, _body_bytes, handles, &mut req)?;
8051 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8052 Ok(SocketRequest::RecvMsg {
8053 want_addr: req.want_addr,
8054 data_len: req.data_len,
8055 want_control: req.want_control,
8056 flags: req.flags,
8057
8058 responder: SocketRecvMsgResponder {
8059 control_handle: std::mem::ManuallyDrop::new(control_handle),
8060 tx_id: header.tx_id,
8061 },
8062 })
8063 }
8064 0x2cf1eac9a7fc8958 => {
8065 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8066 let mut req = fidl::new_empty!(
8067 SocketSendMsgRequest,
8068 fidl::encoding::DefaultFuchsiaResourceDialect
8069 );
8070 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSendMsgRequest>(&header, _body_bytes, handles, &mut req)?;
8071 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8072 Ok(SocketRequest::SendMsg {
8073 addr: req.addr,
8074 data: req.data,
8075 control: req.control,
8076 flags: req.flags,
8077
8078 responder: SocketSendMsgResponder {
8079 control_handle: std::mem::ManuallyDrop::new(control_handle),
8080 tx_id: header.tx_id,
8081 },
8082 })
8083 }
8084 0x39676f75aec339ba => {
8085 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8086 let mut req = fidl::new_empty!(
8087 fidl::encoding::EmptyPayload,
8088 fidl::encoding::DefaultFuchsiaResourceDialect
8089 );
8090 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8091 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8092 Ok(SocketRequest::GetInfo {
8093 responder: SocketGetInfoResponder {
8094 control_handle: std::mem::ManuallyDrop::new(control_handle),
8095 tx_id: header.tx_id,
8096 },
8097 })
8098 }
8099 0x5d06a606d95e8f3 => {
8100 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8101 let mut req = fidl::new_empty!(
8102 SocketSetIpHeaderIncludedRequest,
8103 fidl::encoding::DefaultFuchsiaResourceDialect
8104 );
8105 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSetIpHeaderIncludedRequest>(&header, _body_bytes, handles, &mut req)?;
8106 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8107 Ok(SocketRequest::SetIpHeaderIncluded {
8108 value: req.value,
8109
8110 responder: SocketSetIpHeaderIncludedResponder {
8111 control_handle: std::mem::ManuallyDrop::new(control_handle),
8112 tx_id: header.tx_id,
8113 },
8114 })
8115 }
8116 0x76125ad1f4d175f6 => {
8117 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8118 let mut req = fidl::new_empty!(
8119 fidl::encoding::EmptyPayload,
8120 fidl::encoding::DefaultFuchsiaResourceDialect
8121 );
8122 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8123 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8124 Ok(SocketRequest::GetIpHeaderIncluded {
8125 responder: SocketGetIpHeaderIncludedResponder {
8126 control_handle: std::mem::ManuallyDrop::new(control_handle),
8127 tx_id: header.tx_id,
8128 },
8129 })
8130 }
8131 0x4ebea92a43ae68a9 => {
8132 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8133 let mut req = fidl::new_empty!(
8134 SocketSetIcmpv6FilterRequest,
8135 fidl::encoding::DefaultFuchsiaResourceDialect
8136 );
8137 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSetIcmpv6FilterRequest>(&header, _body_bytes, handles, &mut req)?;
8138 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8139 Ok(SocketRequest::SetIcmpv6Filter {
8140 filter: req.filter,
8141
8142 responder: SocketSetIcmpv6FilterResponder {
8143 control_handle: std::mem::ManuallyDrop::new(control_handle),
8144 tx_id: header.tx_id,
8145 },
8146 })
8147 }
8148 0x43bd4f3bc0970ace => {
8149 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8150 let mut req = fidl::new_empty!(
8151 fidl::encoding::EmptyPayload,
8152 fidl::encoding::DefaultFuchsiaResourceDialect
8153 );
8154 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8155 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8156 Ok(SocketRequest::GetIcmpv6Filter {
8157 responder: SocketGetIcmpv6FilterResponder {
8158 control_handle: std::mem::ManuallyDrop::new(control_handle),
8159 tx_id: header.tx_id,
8160 },
8161 })
8162 }
8163 0x18b7809577199cb4 => {
8164 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8165 let mut req = fidl::new_empty!(
8166 SocketSetIpv6ChecksumRequest,
8167 fidl::encoding::DefaultFuchsiaResourceDialect
8168 );
8169 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<SocketSetIpv6ChecksumRequest>(&header, _body_bytes, handles, &mut req)?;
8170 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8171 Ok(SocketRequest::SetIpv6Checksum {
8172 config: req.config,
8173
8174 responder: SocketSetIpv6ChecksumResponder {
8175 control_handle: std::mem::ManuallyDrop::new(control_handle),
8176 tx_id: header.tx_id,
8177 },
8178 })
8179 }
8180 0x1847bf5b2d263dd => {
8181 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
8182 let mut req = fidl::new_empty!(
8183 fidl::encoding::EmptyPayload,
8184 fidl::encoding::DefaultFuchsiaResourceDialect
8185 );
8186 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<fidl::encoding::EmptyPayload>(&header, _body_bytes, handles, &mut req)?;
8187 let control_handle = SocketControlHandle { inner: this.inner.clone() };
8188 Ok(SocketRequest::GetIpv6Checksum {
8189 responder: SocketGetIpv6ChecksumResponder {
8190 control_handle: std::mem::ManuallyDrop::new(control_handle),
8191 tx_id: header.tx_id,
8192 },
8193 })
8194 }
8195 _ => Err(fidl::Error::UnknownOrdinal {
8196 ordinal: header.ordinal,
8197 protocol_name:
8198 <SocketMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
8199 }),
8200 }))
8201 },
8202 )
8203 }
8204}
8205
8206#[derive(Debug)]
8220pub enum SocketRequest {
8221 Clone {
8222 request: fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
8223 control_handle: SocketControlHandle,
8224 },
8225 Close {
8236 responder: SocketCloseResponder,
8237 },
8238 Query {
8239 responder: SocketQueryResponder,
8240 },
8241 SetReuseAddress {
8243 value: bool,
8244 responder: SocketSetReuseAddressResponder,
8245 },
8246 GetReuseAddress {
8248 responder: SocketGetReuseAddressResponder,
8249 },
8250 GetError {
8253 responder: SocketGetErrorResponder,
8254 },
8255 SetBroadcast {
8257 value: bool,
8258 responder: SocketSetBroadcastResponder,
8259 },
8260 GetBroadcast {
8262 responder: SocketGetBroadcastResponder,
8263 },
8264 SetSendBuffer {
8266 value_bytes: u64,
8267 responder: SocketSetSendBufferResponder,
8268 },
8269 GetSendBuffer {
8271 responder: SocketGetSendBufferResponder,
8272 },
8273 SetReceiveBuffer {
8275 value_bytes: u64,
8276 responder: SocketSetReceiveBufferResponder,
8277 },
8278 GetReceiveBuffer {
8280 responder: SocketGetReceiveBufferResponder,
8281 },
8282 SetKeepAlive {
8284 value: bool,
8285 responder: SocketSetKeepAliveResponder,
8286 },
8287 GetKeepAlive {
8289 responder: SocketGetKeepAliveResponder,
8290 },
8291 SetOutOfBandInline {
8293 value: bool,
8294 responder: SocketSetOutOfBandInlineResponder,
8295 },
8296 GetOutOfBandInline {
8298 responder: SocketGetOutOfBandInlineResponder,
8299 },
8300 SetNoCheck {
8302 value: bool,
8303 responder: SocketSetNoCheckResponder,
8304 },
8305 GetNoCheck {
8307 responder: SocketGetNoCheckResponder,
8308 },
8309 SetLinger {
8311 linger: bool,
8312 length_secs: u32,
8313 responder: SocketSetLingerResponder,
8314 },
8315 GetLinger {
8317 responder: SocketGetLingerResponder,
8318 },
8319 SetReusePort {
8321 value: bool,
8322 responder: SocketSetReusePortResponder,
8323 },
8324 GetReusePort {
8326 responder: SocketGetReusePortResponder,
8327 },
8328 GetAcceptConn {
8330 responder: SocketGetAcceptConnResponder,
8331 },
8332 SetBindToDevice {
8334 value: String,
8335 responder: SocketSetBindToDeviceResponder,
8336 },
8337 GetBindToDevice {
8339 responder: SocketGetBindToDeviceResponder,
8340 },
8341 SetBindToInterfaceIndex {
8344 value: u64,
8345 responder: SocketSetBindToInterfaceIndexResponder,
8346 },
8347 GetBindToInterfaceIndex {
8349 responder: SocketGetBindToInterfaceIndexResponder,
8350 },
8351 SetTimestamp {
8353 value: fidl_fuchsia_posix_socket::TimestampOption,
8354 responder: SocketSetTimestampResponder,
8355 },
8356 GetTimestamp {
8358 responder: SocketGetTimestampResponder,
8359 },
8360 SetMark {
8364 domain: fidl_fuchsia_net::MarkDomain,
8365 mark: fidl_fuchsia_posix_socket::OptionalUint32,
8366 responder: SocketSetMarkResponder,
8367 },
8368 GetMark {
8372 domain: fidl_fuchsia_net::MarkDomain,
8373 responder: SocketGetMarkResponder,
8374 },
8375 Bind {
8377 addr: fidl_fuchsia_net::SocketAddress,
8378 responder: SocketBindResponder,
8379 },
8380 Connect {
8382 addr: fidl_fuchsia_net::SocketAddress,
8383 responder: SocketConnectResponder,
8384 },
8385 Disconnect {
8387 responder: SocketDisconnectResponder,
8388 },
8389 GetSockName {
8391 responder: SocketGetSockNameResponder,
8392 },
8393 GetPeerName {
8395 responder: SocketGetPeerNameResponder,
8396 },
8397 Shutdown {
8399 mode: fidl_fuchsia_posix_socket::ShutdownMode,
8400 responder: SocketShutdownResponder,
8401 },
8402 SetIpTypeOfService {
8404 value: u8,
8405 responder: SocketSetIpTypeOfServiceResponder,
8406 },
8407 GetIpTypeOfService {
8409 responder: SocketGetIpTypeOfServiceResponder,
8410 },
8411 SetIpTtl {
8413 value: fidl_fuchsia_posix_socket::OptionalUint8,
8414 responder: SocketSetIpTtlResponder,
8415 },
8416 GetIpTtl {
8418 responder: SocketGetIpTtlResponder,
8419 },
8420 SetIpPacketInfo {
8422 value: bool,
8423 responder: SocketSetIpPacketInfoResponder,
8424 },
8425 GetIpPacketInfo {
8427 responder: SocketGetIpPacketInfoResponder,
8428 },
8429 SetIpReceiveTypeOfService {
8431 value: bool,
8432 responder: SocketSetIpReceiveTypeOfServiceResponder,
8433 },
8434 GetIpReceiveTypeOfService {
8436 responder: SocketGetIpReceiveTypeOfServiceResponder,
8437 },
8438 SetIpReceiveTtl {
8440 value: bool,
8441 responder: SocketSetIpReceiveTtlResponder,
8442 },
8443 GetIpReceiveTtl {
8445 responder: SocketGetIpReceiveTtlResponder,
8446 },
8447 SetIpMulticastInterface {
8449 iface: u64,
8450 address: fidl_fuchsia_net::Ipv4Address,
8451 responder: SocketSetIpMulticastInterfaceResponder,
8452 },
8453 GetIpMulticastInterface {
8455 responder: SocketGetIpMulticastInterfaceResponder,
8456 },
8457 SetIpMulticastTtl {
8459 value: fidl_fuchsia_posix_socket::OptionalUint8,
8460 responder: SocketSetIpMulticastTtlResponder,
8461 },
8462 GetIpMulticastTtl {
8464 responder: SocketGetIpMulticastTtlResponder,
8465 },
8466 SetIpMulticastLoopback {
8468 value: bool,
8469 responder: SocketSetIpMulticastLoopbackResponder,
8470 },
8471 GetIpMulticastLoopback {
8473 responder: SocketGetIpMulticastLoopbackResponder,
8474 },
8475 AddIpMembership {
8477 membership: fidl_fuchsia_posix_socket::IpMulticastMembership,
8478 responder: SocketAddIpMembershipResponder,
8479 },
8480 DropIpMembership {
8482 membership: fidl_fuchsia_posix_socket::IpMulticastMembership,
8483 responder: SocketDropIpMembershipResponder,
8484 },
8485 SetIpTransparent {
8487 value: bool,
8488 responder: SocketSetIpTransparentResponder,
8489 },
8490 GetIpTransparent {
8492 responder: SocketGetIpTransparentResponder,
8493 },
8494 SetIpReceiveOriginalDestinationAddress {
8496 value: bool,
8497 responder: SocketSetIpReceiveOriginalDestinationAddressResponder,
8498 },
8499 GetIpReceiveOriginalDestinationAddress {
8501 responder: SocketGetIpReceiveOriginalDestinationAddressResponder,
8502 },
8503 AddIpv6Membership {
8505 membership: fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
8506 responder: SocketAddIpv6MembershipResponder,
8507 },
8508 DropIpv6Membership {
8510 membership: fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
8511 responder: SocketDropIpv6MembershipResponder,
8512 },
8513 SetIpv6MulticastInterface {
8515 value: u64,
8516 responder: SocketSetIpv6MulticastInterfaceResponder,
8517 },
8518 GetIpv6MulticastInterface {
8520 responder: SocketGetIpv6MulticastInterfaceResponder,
8521 },
8522 SetIpv6UnicastHops {
8524 value: fidl_fuchsia_posix_socket::OptionalUint8,
8525 responder: SocketSetIpv6UnicastHopsResponder,
8526 },
8527 GetIpv6UnicastHops {
8529 responder: SocketGetIpv6UnicastHopsResponder,
8530 },
8531 SetIpv6ReceiveHopLimit {
8533 value: bool,
8534 responder: SocketSetIpv6ReceiveHopLimitResponder,
8535 },
8536 GetIpv6ReceiveHopLimit {
8538 responder: SocketGetIpv6ReceiveHopLimitResponder,
8539 },
8540 SetIpv6MulticastHops {
8542 value: fidl_fuchsia_posix_socket::OptionalUint8,
8543 responder: SocketSetIpv6MulticastHopsResponder,
8544 },
8545 GetIpv6MulticastHops {
8547 responder: SocketGetIpv6MulticastHopsResponder,
8548 },
8549 SetIpv6MulticastLoopback {
8551 value: bool,
8552 responder: SocketSetIpv6MulticastLoopbackResponder,
8553 },
8554 GetIpv6MulticastLoopback {
8556 responder: SocketGetIpv6MulticastLoopbackResponder,
8557 },
8558 SetIpv6Only {
8560 value: bool,
8561 responder: SocketSetIpv6OnlyResponder,
8562 },
8563 GetIpv6Only {
8565 responder: SocketGetIpv6OnlyResponder,
8566 },
8567 SetIpv6ReceiveTrafficClass {
8569 value: bool,
8570 responder: SocketSetIpv6ReceiveTrafficClassResponder,
8571 },
8572 GetIpv6ReceiveTrafficClass {
8574 responder: SocketGetIpv6ReceiveTrafficClassResponder,
8575 },
8576 SetIpv6TrafficClass {
8578 value: fidl_fuchsia_posix_socket::OptionalUint8,
8579 responder: SocketSetIpv6TrafficClassResponder,
8580 },
8581 GetIpv6TrafficClass {
8583 responder: SocketGetIpv6TrafficClassResponder,
8584 },
8585 SetIpv6ReceivePacketInfo {
8587 value: bool,
8588 responder: SocketSetIpv6ReceivePacketInfoResponder,
8589 },
8590 GetIpv6ReceivePacketInfo {
8592 responder: SocketGetIpv6ReceivePacketInfoResponder,
8593 },
8594 GetOriginalDestination {
8596 responder: SocketGetOriginalDestinationResponder,
8597 },
8598 Describe {
8599 responder: SocketDescribeResponder,
8600 },
8601 RecvMsg {
8616 want_addr: bool,
8617 data_len: u32,
8618 want_control: bool,
8619 flags: fidl_fuchsia_posix_socket::RecvMsgFlags,
8620 responder: SocketRecvMsgResponder,
8621 },
8622 SendMsg {
8630 addr: Option<Box<fidl_fuchsia_net::SocketAddress>>,
8631 data: Vec<u8>,
8632 control: fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
8633 flags: fidl_fuchsia_posix_socket::SendMsgFlags,
8634 responder: SocketSendMsgResponder,
8635 },
8636 GetInfo {
8641 responder: SocketGetInfoResponder,
8642 },
8643 SetIpHeaderIncluded {
8645 value: bool,
8646 responder: SocketSetIpHeaderIncludedResponder,
8647 },
8648 GetIpHeaderIncluded {
8650 responder: SocketGetIpHeaderIncludedResponder,
8651 },
8652 SetIcmpv6Filter {
8654 filter: Icmpv6Filter,
8655 responder: SocketSetIcmpv6FilterResponder,
8656 },
8657 GetIcmpv6Filter {
8659 responder: SocketGetIcmpv6FilterResponder,
8660 },
8661 SetIpv6Checksum {
8663 config: Ipv6ChecksumConfiguration,
8664 responder: SocketSetIpv6ChecksumResponder,
8665 },
8666 GetIpv6Checksum {
8668 responder: SocketGetIpv6ChecksumResponder,
8669 },
8670}
8671
8672impl SocketRequest {
8673 #[allow(irrefutable_let_patterns)]
8674 pub fn into_clone(
8675 self,
8676 ) -> Option<(
8677 fidl::endpoints::ServerEnd<fidl_fuchsia_unknown::CloneableMarker>,
8678 SocketControlHandle,
8679 )> {
8680 if let SocketRequest::Clone { request, control_handle } = self {
8681 Some((request, control_handle))
8682 } else {
8683 None
8684 }
8685 }
8686
8687 #[allow(irrefutable_let_patterns)]
8688 pub fn into_close(self) -> Option<(SocketCloseResponder)> {
8689 if let SocketRequest::Close { responder } = self {
8690 Some((responder))
8691 } else {
8692 None
8693 }
8694 }
8695
8696 #[allow(irrefutable_let_patterns)]
8697 pub fn into_query(self) -> Option<(SocketQueryResponder)> {
8698 if let SocketRequest::Query { responder } = self {
8699 Some((responder))
8700 } else {
8701 None
8702 }
8703 }
8704
8705 #[allow(irrefutable_let_patterns)]
8706 pub fn into_set_reuse_address(self) -> Option<(bool, SocketSetReuseAddressResponder)> {
8707 if let SocketRequest::SetReuseAddress { value, responder } = self {
8708 Some((value, responder))
8709 } else {
8710 None
8711 }
8712 }
8713
8714 #[allow(irrefutable_let_patterns)]
8715 pub fn into_get_reuse_address(self) -> Option<(SocketGetReuseAddressResponder)> {
8716 if let SocketRequest::GetReuseAddress { responder } = self {
8717 Some((responder))
8718 } else {
8719 None
8720 }
8721 }
8722
8723 #[allow(irrefutable_let_patterns)]
8724 pub fn into_get_error(self) -> Option<(SocketGetErrorResponder)> {
8725 if let SocketRequest::GetError { responder } = self {
8726 Some((responder))
8727 } else {
8728 None
8729 }
8730 }
8731
8732 #[allow(irrefutable_let_patterns)]
8733 pub fn into_set_broadcast(self) -> Option<(bool, SocketSetBroadcastResponder)> {
8734 if let SocketRequest::SetBroadcast { value, responder } = self {
8735 Some((value, responder))
8736 } else {
8737 None
8738 }
8739 }
8740
8741 #[allow(irrefutable_let_patterns)]
8742 pub fn into_get_broadcast(self) -> Option<(SocketGetBroadcastResponder)> {
8743 if let SocketRequest::GetBroadcast { responder } = self {
8744 Some((responder))
8745 } else {
8746 None
8747 }
8748 }
8749
8750 #[allow(irrefutable_let_patterns)]
8751 pub fn into_set_send_buffer(self) -> Option<(u64, SocketSetSendBufferResponder)> {
8752 if let SocketRequest::SetSendBuffer { value_bytes, responder } = self {
8753 Some((value_bytes, responder))
8754 } else {
8755 None
8756 }
8757 }
8758
8759 #[allow(irrefutable_let_patterns)]
8760 pub fn into_get_send_buffer(self) -> Option<(SocketGetSendBufferResponder)> {
8761 if let SocketRequest::GetSendBuffer { responder } = self {
8762 Some((responder))
8763 } else {
8764 None
8765 }
8766 }
8767
8768 #[allow(irrefutable_let_patterns)]
8769 pub fn into_set_receive_buffer(self) -> Option<(u64, SocketSetReceiveBufferResponder)> {
8770 if let SocketRequest::SetReceiveBuffer { value_bytes, responder } = self {
8771 Some((value_bytes, responder))
8772 } else {
8773 None
8774 }
8775 }
8776
8777 #[allow(irrefutable_let_patterns)]
8778 pub fn into_get_receive_buffer(self) -> Option<(SocketGetReceiveBufferResponder)> {
8779 if let SocketRequest::GetReceiveBuffer { responder } = self {
8780 Some((responder))
8781 } else {
8782 None
8783 }
8784 }
8785
8786 #[allow(irrefutable_let_patterns)]
8787 pub fn into_set_keep_alive(self) -> Option<(bool, SocketSetKeepAliveResponder)> {
8788 if let SocketRequest::SetKeepAlive { value, responder } = self {
8789 Some((value, responder))
8790 } else {
8791 None
8792 }
8793 }
8794
8795 #[allow(irrefutable_let_patterns)]
8796 pub fn into_get_keep_alive(self) -> Option<(SocketGetKeepAliveResponder)> {
8797 if let SocketRequest::GetKeepAlive { responder } = self {
8798 Some((responder))
8799 } else {
8800 None
8801 }
8802 }
8803
8804 #[allow(irrefutable_let_patterns)]
8805 pub fn into_set_out_of_band_inline(self) -> Option<(bool, SocketSetOutOfBandInlineResponder)> {
8806 if let SocketRequest::SetOutOfBandInline { value, responder } = self {
8807 Some((value, responder))
8808 } else {
8809 None
8810 }
8811 }
8812
8813 #[allow(irrefutable_let_patterns)]
8814 pub fn into_get_out_of_band_inline(self) -> Option<(SocketGetOutOfBandInlineResponder)> {
8815 if let SocketRequest::GetOutOfBandInline { responder } = self {
8816 Some((responder))
8817 } else {
8818 None
8819 }
8820 }
8821
8822 #[allow(irrefutable_let_patterns)]
8823 pub fn into_set_no_check(self) -> Option<(bool, SocketSetNoCheckResponder)> {
8824 if let SocketRequest::SetNoCheck { value, responder } = self {
8825 Some((value, responder))
8826 } else {
8827 None
8828 }
8829 }
8830
8831 #[allow(irrefutable_let_patterns)]
8832 pub fn into_get_no_check(self) -> Option<(SocketGetNoCheckResponder)> {
8833 if let SocketRequest::GetNoCheck { responder } = self {
8834 Some((responder))
8835 } else {
8836 None
8837 }
8838 }
8839
8840 #[allow(irrefutable_let_patterns)]
8841 pub fn into_set_linger(self) -> Option<(bool, u32, SocketSetLingerResponder)> {
8842 if let SocketRequest::SetLinger { linger, length_secs, responder } = self {
8843 Some((linger, length_secs, responder))
8844 } else {
8845 None
8846 }
8847 }
8848
8849 #[allow(irrefutable_let_patterns)]
8850 pub fn into_get_linger(self) -> Option<(SocketGetLingerResponder)> {
8851 if let SocketRequest::GetLinger { responder } = self {
8852 Some((responder))
8853 } else {
8854 None
8855 }
8856 }
8857
8858 #[allow(irrefutable_let_patterns)]
8859 pub fn into_set_reuse_port(self) -> Option<(bool, SocketSetReusePortResponder)> {
8860 if let SocketRequest::SetReusePort { value, responder } = self {
8861 Some((value, responder))
8862 } else {
8863 None
8864 }
8865 }
8866
8867 #[allow(irrefutable_let_patterns)]
8868 pub fn into_get_reuse_port(self) -> Option<(SocketGetReusePortResponder)> {
8869 if let SocketRequest::GetReusePort { responder } = self {
8870 Some((responder))
8871 } else {
8872 None
8873 }
8874 }
8875
8876 #[allow(irrefutable_let_patterns)]
8877 pub fn into_get_accept_conn(self) -> Option<(SocketGetAcceptConnResponder)> {
8878 if let SocketRequest::GetAcceptConn { responder } = self {
8879 Some((responder))
8880 } else {
8881 None
8882 }
8883 }
8884
8885 #[allow(irrefutable_let_patterns)]
8886 pub fn into_set_bind_to_device(self) -> Option<(String, SocketSetBindToDeviceResponder)> {
8887 if let SocketRequest::SetBindToDevice { value, responder } = self {
8888 Some((value, responder))
8889 } else {
8890 None
8891 }
8892 }
8893
8894 #[allow(irrefutable_let_patterns)]
8895 pub fn into_get_bind_to_device(self) -> Option<(SocketGetBindToDeviceResponder)> {
8896 if let SocketRequest::GetBindToDevice { responder } = self {
8897 Some((responder))
8898 } else {
8899 None
8900 }
8901 }
8902
8903 #[allow(irrefutable_let_patterns)]
8904 pub fn into_set_bind_to_interface_index(
8905 self,
8906 ) -> Option<(u64, SocketSetBindToInterfaceIndexResponder)> {
8907 if let SocketRequest::SetBindToInterfaceIndex { value, responder } = self {
8908 Some((value, responder))
8909 } else {
8910 None
8911 }
8912 }
8913
8914 #[allow(irrefutable_let_patterns)]
8915 pub fn into_get_bind_to_interface_index(
8916 self,
8917 ) -> Option<(SocketGetBindToInterfaceIndexResponder)> {
8918 if let SocketRequest::GetBindToInterfaceIndex { responder } = self {
8919 Some((responder))
8920 } else {
8921 None
8922 }
8923 }
8924
8925 #[allow(irrefutable_let_patterns)]
8926 pub fn into_set_timestamp(
8927 self,
8928 ) -> Option<(fidl_fuchsia_posix_socket::TimestampOption, SocketSetTimestampResponder)> {
8929 if let SocketRequest::SetTimestamp { value, responder } = self {
8930 Some((value, responder))
8931 } else {
8932 None
8933 }
8934 }
8935
8936 #[allow(irrefutable_let_patterns)]
8937 pub fn into_get_timestamp(self) -> Option<(SocketGetTimestampResponder)> {
8938 if let SocketRequest::GetTimestamp { responder } = self {
8939 Some((responder))
8940 } else {
8941 None
8942 }
8943 }
8944
8945 #[allow(irrefutable_let_patterns)]
8946 pub fn into_set_mark(
8947 self,
8948 ) -> Option<(
8949 fidl_fuchsia_net::MarkDomain,
8950 fidl_fuchsia_posix_socket::OptionalUint32,
8951 SocketSetMarkResponder,
8952 )> {
8953 if let SocketRequest::SetMark { domain, mark, responder } = self {
8954 Some((domain, mark, responder))
8955 } else {
8956 None
8957 }
8958 }
8959
8960 #[allow(irrefutable_let_patterns)]
8961 pub fn into_get_mark(self) -> Option<(fidl_fuchsia_net::MarkDomain, SocketGetMarkResponder)> {
8962 if let SocketRequest::GetMark { domain, responder } = self {
8963 Some((domain, responder))
8964 } else {
8965 None
8966 }
8967 }
8968
8969 #[allow(irrefutable_let_patterns)]
8970 pub fn into_bind(self) -> Option<(fidl_fuchsia_net::SocketAddress, SocketBindResponder)> {
8971 if let SocketRequest::Bind { addr, responder } = self {
8972 Some((addr, responder))
8973 } else {
8974 None
8975 }
8976 }
8977
8978 #[allow(irrefutable_let_patterns)]
8979 pub fn into_connect(self) -> Option<(fidl_fuchsia_net::SocketAddress, SocketConnectResponder)> {
8980 if let SocketRequest::Connect { addr, responder } = self {
8981 Some((addr, responder))
8982 } else {
8983 None
8984 }
8985 }
8986
8987 #[allow(irrefutable_let_patterns)]
8988 pub fn into_disconnect(self) -> Option<(SocketDisconnectResponder)> {
8989 if let SocketRequest::Disconnect { responder } = self {
8990 Some((responder))
8991 } else {
8992 None
8993 }
8994 }
8995
8996 #[allow(irrefutable_let_patterns)]
8997 pub fn into_get_sock_name(self) -> Option<(SocketGetSockNameResponder)> {
8998 if let SocketRequest::GetSockName { responder } = self {
8999 Some((responder))
9000 } else {
9001 None
9002 }
9003 }
9004
9005 #[allow(irrefutable_let_patterns)]
9006 pub fn into_get_peer_name(self) -> Option<(SocketGetPeerNameResponder)> {
9007 if let SocketRequest::GetPeerName { responder } = self {
9008 Some((responder))
9009 } else {
9010 None
9011 }
9012 }
9013
9014 #[allow(irrefutable_let_patterns)]
9015 pub fn into_shutdown(
9016 self,
9017 ) -> Option<(fidl_fuchsia_posix_socket::ShutdownMode, SocketShutdownResponder)> {
9018 if let SocketRequest::Shutdown { mode, responder } = self {
9019 Some((mode, responder))
9020 } else {
9021 None
9022 }
9023 }
9024
9025 #[allow(irrefutable_let_patterns)]
9026 pub fn into_set_ip_type_of_service(self) -> Option<(u8, SocketSetIpTypeOfServiceResponder)> {
9027 if let SocketRequest::SetIpTypeOfService { value, responder } = self {
9028 Some((value, responder))
9029 } else {
9030 None
9031 }
9032 }
9033
9034 #[allow(irrefutable_let_patterns)]
9035 pub fn into_get_ip_type_of_service(self) -> Option<(SocketGetIpTypeOfServiceResponder)> {
9036 if let SocketRequest::GetIpTypeOfService { responder } = self {
9037 Some((responder))
9038 } else {
9039 None
9040 }
9041 }
9042
9043 #[allow(irrefutable_let_patterns)]
9044 pub fn into_set_ip_ttl(
9045 self,
9046 ) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpTtlResponder)> {
9047 if let SocketRequest::SetIpTtl { value, responder } = self {
9048 Some((value, responder))
9049 } else {
9050 None
9051 }
9052 }
9053
9054 #[allow(irrefutable_let_patterns)]
9055 pub fn into_get_ip_ttl(self) -> Option<(SocketGetIpTtlResponder)> {
9056 if let SocketRequest::GetIpTtl { responder } = self {
9057 Some((responder))
9058 } else {
9059 None
9060 }
9061 }
9062
9063 #[allow(irrefutable_let_patterns)]
9064 pub fn into_set_ip_packet_info(self) -> Option<(bool, SocketSetIpPacketInfoResponder)> {
9065 if let SocketRequest::SetIpPacketInfo { value, responder } = self {
9066 Some((value, responder))
9067 } else {
9068 None
9069 }
9070 }
9071
9072 #[allow(irrefutable_let_patterns)]
9073 pub fn into_get_ip_packet_info(self) -> Option<(SocketGetIpPacketInfoResponder)> {
9074 if let SocketRequest::GetIpPacketInfo { responder } = self {
9075 Some((responder))
9076 } else {
9077 None
9078 }
9079 }
9080
9081 #[allow(irrefutable_let_patterns)]
9082 pub fn into_set_ip_receive_type_of_service(
9083 self,
9084 ) -> Option<(bool, SocketSetIpReceiveTypeOfServiceResponder)> {
9085 if let SocketRequest::SetIpReceiveTypeOfService { value, responder } = self {
9086 Some((value, responder))
9087 } else {
9088 None
9089 }
9090 }
9091
9092 #[allow(irrefutable_let_patterns)]
9093 pub fn into_get_ip_receive_type_of_service(
9094 self,
9095 ) -> Option<(SocketGetIpReceiveTypeOfServiceResponder)> {
9096 if let SocketRequest::GetIpReceiveTypeOfService { responder } = self {
9097 Some((responder))
9098 } else {
9099 None
9100 }
9101 }
9102
9103 #[allow(irrefutable_let_patterns)]
9104 pub fn into_set_ip_receive_ttl(self) -> Option<(bool, SocketSetIpReceiveTtlResponder)> {
9105 if let SocketRequest::SetIpReceiveTtl { value, responder } = self {
9106 Some((value, responder))
9107 } else {
9108 None
9109 }
9110 }
9111
9112 #[allow(irrefutable_let_patterns)]
9113 pub fn into_get_ip_receive_ttl(self) -> Option<(SocketGetIpReceiveTtlResponder)> {
9114 if let SocketRequest::GetIpReceiveTtl { responder } = self {
9115 Some((responder))
9116 } else {
9117 None
9118 }
9119 }
9120
9121 #[allow(irrefutable_let_patterns)]
9122 pub fn into_set_ip_multicast_interface(
9123 self,
9124 ) -> Option<(u64, fidl_fuchsia_net::Ipv4Address, SocketSetIpMulticastInterfaceResponder)> {
9125 if let SocketRequest::SetIpMulticastInterface { iface, address, responder } = self {
9126 Some((iface, address, responder))
9127 } else {
9128 None
9129 }
9130 }
9131
9132 #[allow(irrefutable_let_patterns)]
9133 pub fn into_get_ip_multicast_interface(
9134 self,
9135 ) -> Option<(SocketGetIpMulticastInterfaceResponder)> {
9136 if let SocketRequest::GetIpMulticastInterface { responder } = self {
9137 Some((responder))
9138 } else {
9139 None
9140 }
9141 }
9142
9143 #[allow(irrefutable_let_patterns)]
9144 pub fn into_set_ip_multicast_ttl(
9145 self,
9146 ) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpMulticastTtlResponder)> {
9147 if let SocketRequest::SetIpMulticastTtl { value, responder } = self {
9148 Some((value, responder))
9149 } else {
9150 None
9151 }
9152 }
9153
9154 #[allow(irrefutable_let_patterns)]
9155 pub fn into_get_ip_multicast_ttl(self) -> Option<(SocketGetIpMulticastTtlResponder)> {
9156 if let SocketRequest::GetIpMulticastTtl { responder } = self {
9157 Some((responder))
9158 } else {
9159 None
9160 }
9161 }
9162
9163 #[allow(irrefutable_let_patterns)]
9164 pub fn into_set_ip_multicast_loopback(
9165 self,
9166 ) -> Option<(bool, SocketSetIpMulticastLoopbackResponder)> {
9167 if let SocketRequest::SetIpMulticastLoopback { value, responder } = self {
9168 Some((value, responder))
9169 } else {
9170 None
9171 }
9172 }
9173
9174 #[allow(irrefutable_let_patterns)]
9175 pub fn into_get_ip_multicast_loopback(self) -> Option<(SocketGetIpMulticastLoopbackResponder)> {
9176 if let SocketRequest::GetIpMulticastLoopback { responder } = self {
9177 Some((responder))
9178 } else {
9179 None
9180 }
9181 }
9182
9183 #[allow(irrefutable_let_patterns)]
9184 pub fn into_add_ip_membership(
9185 self,
9186 ) -> Option<(fidl_fuchsia_posix_socket::IpMulticastMembership, SocketAddIpMembershipResponder)>
9187 {
9188 if let SocketRequest::AddIpMembership { membership, responder } = self {
9189 Some((membership, responder))
9190 } else {
9191 None
9192 }
9193 }
9194
9195 #[allow(irrefutable_let_patterns)]
9196 pub fn into_drop_ip_membership(
9197 self,
9198 ) -> Option<(fidl_fuchsia_posix_socket::IpMulticastMembership, SocketDropIpMembershipResponder)>
9199 {
9200 if let SocketRequest::DropIpMembership { membership, responder } = self {
9201 Some((membership, responder))
9202 } else {
9203 None
9204 }
9205 }
9206
9207 #[allow(irrefutable_let_patterns)]
9208 pub fn into_set_ip_transparent(self) -> Option<(bool, SocketSetIpTransparentResponder)> {
9209 if let SocketRequest::SetIpTransparent { value, responder } = self {
9210 Some((value, responder))
9211 } else {
9212 None
9213 }
9214 }
9215
9216 #[allow(irrefutable_let_patterns)]
9217 pub fn into_get_ip_transparent(self) -> Option<(SocketGetIpTransparentResponder)> {
9218 if let SocketRequest::GetIpTransparent { responder } = self {
9219 Some((responder))
9220 } else {
9221 None
9222 }
9223 }
9224
9225 #[allow(irrefutable_let_patterns)]
9226 pub fn into_set_ip_receive_original_destination_address(
9227 self,
9228 ) -> Option<(bool, SocketSetIpReceiveOriginalDestinationAddressResponder)> {
9229 if let SocketRequest::SetIpReceiveOriginalDestinationAddress { value, responder } = self {
9230 Some((value, responder))
9231 } else {
9232 None
9233 }
9234 }
9235
9236 #[allow(irrefutable_let_patterns)]
9237 pub fn into_get_ip_receive_original_destination_address(
9238 self,
9239 ) -> Option<(SocketGetIpReceiveOriginalDestinationAddressResponder)> {
9240 if let SocketRequest::GetIpReceiveOriginalDestinationAddress { responder } = self {
9241 Some((responder))
9242 } else {
9243 None
9244 }
9245 }
9246
9247 #[allow(irrefutable_let_patterns)]
9248 pub fn into_add_ipv6_membership(
9249 self,
9250 ) -> Option<(
9251 fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
9252 SocketAddIpv6MembershipResponder,
9253 )> {
9254 if let SocketRequest::AddIpv6Membership { membership, responder } = self {
9255 Some((membership, responder))
9256 } else {
9257 None
9258 }
9259 }
9260
9261 #[allow(irrefutable_let_patterns)]
9262 pub fn into_drop_ipv6_membership(
9263 self,
9264 ) -> Option<(
9265 fidl_fuchsia_posix_socket::Ipv6MulticastMembership,
9266 SocketDropIpv6MembershipResponder,
9267 )> {
9268 if let SocketRequest::DropIpv6Membership { membership, responder } = self {
9269 Some((membership, responder))
9270 } else {
9271 None
9272 }
9273 }
9274
9275 #[allow(irrefutable_let_patterns)]
9276 pub fn into_set_ipv6_multicast_interface(
9277 self,
9278 ) -> Option<(u64, SocketSetIpv6MulticastInterfaceResponder)> {
9279 if let SocketRequest::SetIpv6MulticastInterface { value, responder } = self {
9280 Some((value, responder))
9281 } else {
9282 None
9283 }
9284 }
9285
9286 #[allow(irrefutable_let_patterns)]
9287 pub fn into_get_ipv6_multicast_interface(
9288 self,
9289 ) -> Option<(SocketGetIpv6MulticastInterfaceResponder)> {
9290 if let SocketRequest::GetIpv6MulticastInterface { responder } = self {
9291 Some((responder))
9292 } else {
9293 None
9294 }
9295 }
9296
9297 #[allow(irrefutable_let_patterns)]
9298 pub fn into_set_ipv6_unicast_hops(
9299 self,
9300 ) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpv6UnicastHopsResponder)> {
9301 if let SocketRequest::SetIpv6UnicastHops { value, responder } = self {
9302 Some((value, responder))
9303 } else {
9304 None
9305 }
9306 }
9307
9308 #[allow(irrefutable_let_patterns)]
9309 pub fn into_get_ipv6_unicast_hops(self) -> Option<(SocketGetIpv6UnicastHopsResponder)> {
9310 if let SocketRequest::GetIpv6UnicastHops { responder } = self {
9311 Some((responder))
9312 } else {
9313 None
9314 }
9315 }
9316
9317 #[allow(irrefutable_let_patterns)]
9318 pub fn into_set_ipv6_receive_hop_limit(
9319 self,
9320 ) -> Option<(bool, SocketSetIpv6ReceiveHopLimitResponder)> {
9321 if let SocketRequest::SetIpv6ReceiveHopLimit { value, responder } = self {
9322 Some((value, responder))
9323 } else {
9324 None
9325 }
9326 }
9327
9328 #[allow(irrefutable_let_patterns)]
9329 pub fn into_get_ipv6_receive_hop_limit(
9330 self,
9331 ) -> Option<(SocketGetIpv6ReceiveHopLimitResponder)> {
9332 if let SocketRequest::GetIpv6ReceiveHopLimit { responder } = self {
9333 Some((responder))
9334 } else {
9335 None
9336 }
9337 }
9338
9339 #[allow(irrefutable_let_patterns)]
9340 pub fn into_set_ipv6_multicast_hops(
9341 self,
9342 ) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpv6MulticastHopsResponder)>
9343 {
9344 if let SocketRequest::SetIpv6MulticastHops { value, responder } = self {
9345 Some((value, responder))
9346 } else {
9347 None
9348 }
9349 }
9350
9351 #[allow(irrefutable_let_patterns)]
9352 pub fn into_get_ipv6_multicast_hops(self) -> Option<(SocketGetIpv6MulticastHopsResponder)> {
9353 if let SocketRequest::GetIpv6MulticastHops { responder } = self {
9354 Some((responder))
9355 } else {
9356 None
9357 }
9358 }
9359
9360 #[allow(irrefutable_let_patterns)]
9361 pub fn into_set_ipv6_multicast_loopback(
9362 self,
9363 ) -> Option<(bool, SocketSetIpv6MulticastLoopbackResponder)> {
9364 if let SocketRequest::SetIpv6MulticastLoopback { value, responder } = self {
9365 Some((value, responder))
9366 } else {
9367 None
9368 }
9369 }
9370
9371 #[allow(irrefutable_let_patterns)]
9372 pub fn into_get_ipv6_multicast_loopback(
9373 self,
9374 ) -> Option<(SocketGetIpv6MulticastLoopbackResponder)> {
9375 if let SocketRequest::GetIpv6MulticastLoopback { responder } = self {
9376 Some((responder))
9377 } else {
9378 None
9379 }
9380 }
9381
9382 #[allow(irrefutable_let_patterns)]
9383 pub fn into_set_ipv6_only(self) -> Option<(bool, SocketSetIpv6OnlyResponder)> {
9384 if let SocketRequest::SetIpv6Only { value, responder } = self {
9385 Some((value, responder))
9386 } else {
9387 None
9388 }
9389 }
9390
9391 #[allow(irrefutable_let_patterns)]
9392 pub fn into_get_ipv6_only(self) -> Option<(SocketGetIpv6OnlyResponder)> {
9393 if let SocketRequest::GetIpv6Only { responder } = self {
9394 Some((responder))
9395 } else {
9396 None
9397 }
9398 }
9399
9400 #[allow(irrefutable_let_patterns)]
9401 pub fn into_set_ipv6_receive_traffic_class(
9402 self,
9403 ) -> Option<(bool, SocketSetIpv6ReceiveTrafficClassResponder)> {
9404 if let SocketRequest::SetIpv6ReceiveTrafficClass { value, responder } = self {
9405 Some((value, responder))
9406 } else {
9407 None
9408 }
9409 }
9410
9411 #[allow(irrefutable_let_patterns)]
9412 pub fn into_get_ipv6_receive_traffic_class(
9413 self,
9414 ) -> Option<(SocketGetIpv6ReceiveTrafficClassResponder)> {
9415 if let SocketRequest::GetIpv6ReceiveTrafficClass { responder } = self {
9416 Some((responder))
9417 } else {
9418 None
9419 }
9420 }
9421
9422 #[allow(irrefutable_let_patterns)]
9423 pub fn into_set_ipv6_traffic_class(
9424 self,
9425 ) -> Option<(fidl_fuchsia_posix_socket::OptionalUint8, SocketSetIpv6TrafficClassResponder)>
9426 {
9427 if let SocketRequest::SetIpv6TrafficClass { value, responder } = self {
9428 Some((value, responder))
9429 } else {
9430 None
9431 }
9432 }
9433
9434 #[allow(irrefutable_let_patterns)]
9435 pub fn into_get_ipv6_traffic_class(self) -> Option<(SocketGetIpv6TrafficClassResponder)> {
9436 if let SocketRequest::GetIpv6TrafficClass { responder } = self {
9437 Some((responder))
9438 } else {
9439 None
9440 }
9441 }
9442
9443 #[allow(irrefutable_let_patterns)]
9444 pub fn into_set_ipv6_receive_packet_info(
9445 self,
9446 ) -> Option<(bool, SocketSetIpv6ReceivePacketInfoResponder)> {
9447 if let SocketRequest::SetIpv6ReceivePacketInfo { value, responder } = self {
9448 Some((value, responder))
9449 } else {
9450 None
9451 }
9452 }
9453
9454 #[allow(irrefutable_let_patterns)]
9455 pub fn into_get_ipv6_receive_packet_info(
9456 self,
9457 ) -> Option<(SocketGetIpv6ReceivePacketInfoResponder)> {
9458 if let SocketRequest::GetIpv6ReceivePacketInfo { responder } = self {
9459 Some((responder))
9460 } else {
9461 None
9462 }
9463 }
9464
9465 #[allow(irrefutable_let_patterns)]
9466 pub fn into_get_original_destination(self) -> Option<(SocketGetOriginalDestinationResponder)> {
9467 if let SocketRequest::GetOriginalDestination { responder } = self {
9468 Some((responder))
9469 } else {
9470 None
9471 }
9472 }
9473
9474 #[allow(irrefutable_let_patterns)]
9475 pub fn into_describe(self) -> Option<(SocketDescribeResponder)> {
9476 if let SocketRequest::Describe { responder } = self {
9477 Some((responder))
9478 } else {
9479 None
9480 }
9481 }
9482
9483 #[allow(irrefutable_let_patterns)]
9484 pub fn into_recv_msg(
9485 self,
9486 ) -> Option<(bool, u32, bool, fidl_fuchsia_posix_socket::RecvMsgFlags, SocketRecvMsgResponder)>
9487 {
9488 if let SocketRequest::RecvMsg { want_addr, data_len, want_control, flags, responder } = self
9489 {
9490 Some((want_addr, data_len, want_control, flags, responder))
9491 } else {
9492 None
9493 }
9494 }
9495
9496 #[allow(irrefutable_let_patterns)]
9497 pub fn into_send_msg(
9498 self,
9499 ) -> Option<(
9500 Option<Box<fidl_fuchsia_net::SocketAddress>>,
9501 Vec<u8>,
9502 fidl_fuchsia_posix_socket::NetworkSocketSendControlData,
9503 fidl_fuchsia_posix_socket::SendMsgFlags,
9504 SocketSendMsgResponder,
9505 )> {
9506 if let SocketRequest::SendMsg { addr, data, control, flags, responder } = self {
9507 Some((addr, data, control, flags, responder))
9508 } else {
9509 None
9510 }
9511 }
9512
9513 #[allow(irrefutable_let_patterns)]
9514 pub fn into_get_info(self) -> Option<(SocketGetInfoResponder)> {
9515 if let SocketRequest::GetInfo { responder } = self {
9516 Some((responder))
9517 } else {
9518 None
9519 }
9520 }
9521
9522 #[allow(irrefutable_let_patterns)]
9523 pub fn into_set_ip_header_included(self) -> Option<(bool, SocketSetIpHeaderIncludedResponder)> {
9524 if let SocketRequest::SetIpHeaderIncluded { value, responder } = self {
9525 Some((value, responder))
9526 } else {
9527 None
9528 }
9529 }
9530
9531 #[allow(irrefutable_let_patterns)]
9532 pub fn into_get_ip_header_included(self) -> Option<(SocketGetIpHeaderIncludedResponder)> {
9533 if let SocketRequest::GetIpHeaderIncluded { responder } = self {
9534 Some((responder))
9535 } else {
9536 None
9537 }
9538 }
9539
9540 #[allow(irrefutable_let_patterns)]
9541 pub fn into_set_icmpv6_filter(self) -> Option<(Icmpv6Filter, SocketSetIcmpv6FilterResponder)> {
9542 if let SocketRequest::SetIcmpv6Filter { filter, responder } = self {
9543 Some((filter, responder))
9544 } else {
9545 None
9546 }
9547 }
9548
9549 #[allow(irrefutable_let_patterns)]
9550 pub fn into_get_icmpv6_filter(self) -> Option<(SocketGetIcmpv6FilterResponder)> {
9551 if let SocketRequest::GetIcmpv6Filter { responder } = self {
9552 Some((responder))
9553 } else {
9554 None
9555 }
9556 }
9557
9558 #[allow(irrefutable_let_patterns)]
9559 pub fn into_set_ipv6_checksum(
9560 self,
9561 ) -> Option<(Ipv6ChecksumConfiguration, SocketSetIpv6ChecksumResponder)> {
9562 if let SocketRequest::SetIpv6Checksum { config, responder } = self {
9563 Some((config, responder))
9564 } else {
9565 None
9566 }
9567 }
9568
9569 #[allow(irrefutable_let_patterns)]
9570 pub fn into_get_ipv6_checksum(self) -> Option<(SocketGetIpv6ChecksumResponder)> {
9571 if let SocketRequest::GetIpv6Checksum { responder } = self {
9572 Some((responder))
9573 } else {
9574 None
9575 }
9576 }
9577
9578 pub fn method_name(&self) -> &'static str {
9580 match *self {
9581 SocketRequest::Clone { .. } => "clone",
9582 SocketRequest::Close { .. } => "close",
9583 SocketRequest::Query { .. } => "query",
9584 SocketRequest::SetReuseAddress { .. } => "set_reuse_address",
9585 SocketRequest::GetReuseAddress { .. } => "get_reuse_address",
9586 SocketRequest::GetError { .. } => "get_error",
9587 SocketRequest::SetBroadcast { .. } => "set_broadcast",
9588 SocketRequest::GetBroadcast { .. } => "get_broadcast",
9589 SocketRequest::SetSendBuffer { .. } => "set_send_buffer",
9590 SocketRequest::GetSendBuffer { .. } => "get_send_buffer",
9591 SocketRequest::SetReceiveBuffer { .. } => "set_receive_buffer",
9592 SocketRequest::GetReceiveBuffer { .. } => "get_receive_buffer",
9593 SocketRequest::SetKeepAlive { .. } => "set_keep_alive",
9594 SocketRequest::GetKeepAlive { .. } => "get_keep_alive",
9595 SocketRequest::SetOutOfBandInline { .. } => "set_out_of_band_inline",
9596 SocketRequest::GetOutOfBandInline { .. } => "get_out_of_band_inline",
9597 SocketRequest::SetNoCheck { .. } => "set_no_check",
9598 SocketRequest::GetNoCheck { .. } => "get_no_check",
9599 SocketRequest::SetLinger { .. } => "set_linger",
9600 SocketRequest::GetLinger { .. } => "get_linger",
9601 SocketRequest::SetReusePort { .. } => "set_reuse_port",
9602 SocketRequest::GetReusePort { .. } => "get_reuse_port",
9603 SocketRequest::GetAcceptConn { .. } => "get_accept_conn",
9604 SocketRequest::SetBindToDevice { .. } => "set_bind_to_device",
9605 SocketRequest::GetBindToDevice { .. } => "get_bind_to_device",
9606 SocketRequest::SetBindToInterfaceIndex { .. } => "set_bind_to_interface_index",
9607 SocketRequest::GetBindToInterfaceIndex { .. } => "get_bind_to_interface_index",
9608 SocketRequest::SetTimestamp { .. } => "set_timestamp",
9609 SocketRequest::GetTimestamp { .. } => "get_timestamp",
9610 SocketRequest::SetMark { .. } => "set_mark",
9611 SocketRequest::GetMark { .. } => "get_mark",
9612 SocketRequest::Bind { .. } => "bind",
9613 SocketRequest::Connect { .. } => "connect",
9614 SocketRequest::Disconnect { .. } => "disconnect",
9615 SocketRequest::GetSockName { .. } => "get_sock_name",
9616 SocketRequest::GetPeerName { .. } => "get_peer_name",
9617 SocketRequest::Shutdown { .. } => "shutdown",
9618 SocketRequest::SetIpTypeOfService { .. } => "set_ip_type_of_service",
9619 SocketRequest::GetIpTypeOfService { .. } => "get_ip_type_of_service",
9620 SocketRequest::SetIpTtl { .. } => "set_ip_ttl",
9621 SocketRequest::GetIpTtl { .. } => "get_ip_ttl",
9622 SocketRequest::SetIpPacketInfo { .. } => "set_ip_packet_info",
9623 SocketRequest::GetIpPacketInfo { .. } => "get_ip_packet_info",
9624 SocketRequest::SetIpReceiveTypeOfService { .. } => "set_ip_receive_type_of_service",
9625 SocketRequest::GetIpReceiveTypeOfService { .. } => "get_ip_receive_type_of_service",
9626 SocketRequest::SetIpReceiveTtl { .. } => "set_ip_receive_ttl",
9627 SocketRequest::GetIpReceiveTtl { .. } => "get_ip_receive_ttl",
9628 SocketRequest::SetIpMulticastInterface { .. } => "set_ip_multicast_interface",
9629 SocketRequest::GetIpMulticastInterface { .. } => "get_ip_multicast_interface",
9630 SocketRequest::SetIpMulticastTtl { .. } => "set_ip_multicast_ttl",
9631 SocketRequest::GetIpMulticastTtl { .. } => "get_ip_multicast_ttl",
9632 SocketRequest::SetIpMulticastLoopback { .. } => "set_ip_multicast_loopback",
9633 SocketRequest::GetIpMulticastLoopback { .. } => "get_ip_multicast_loopback",
9634 SocketRequest::AddIpMembership { .. } => "add_ip_membership",
9635 SocketRequest::DropIpMembership { .. } => "drop_ip_membership",
9636 SocketRequest::SetIpTransparent { .. } => "set_ip_transparent",
9637 SocketRequest::GetIpTransparent { .. } => "get_ip_transparent",
9638 SocketRequest::SetIpReceiveOriginalDestinationAddress { .. } => {
9639 "set_ip_receive_original_destination_address"
9640 }
9641 SocketRequest::GetIpReceiveOriginalDestinationAddress { .. } => {
9642 "get_ip_receive_original_destination_address"
9643 }
9644 SocketRequest::AddIpv6Membership { .. } => "add_ipv6_membership",
9645 SocketRequest::DropIpv6Membership { .. } => "drop_ipv6_membership",
9646 SocketRequest::SetIpv6MulticastInterface { .. } => "set_ipv6_multicast_interface",
9647 SocketRequest::GetIpv6MulticastInterface { .. } => "get_ipv6_multicast_interface",
9648 SocketRequest::SetIpv6UnicastHops { .. } => "set_ipv6_unicast_hops",
9649 SocketRequest::GetIpv6UnicastHops { .. } => "get_ipv6_unicast_hops",
9650 SocketRequest::SetIpv6ReceiveHopLimit { .. } => "set_ipv6_receive_hop_limit",
9651 SocketRequest::GetIpv6ReceiveHopLimit { .. } => "get_ipv6_receive_hop_limit",
9652 SocketRequest::SetIpv6MulticastHops { .. } => "set_ipv6_multicast_hops",
9653 SocketRequest::GetIpv6MulticastHops { .. } => "get_ipv6_multicast_hops",
9654 SocketRequest::SetIpv6MulticastLoopback { .. } => "set_ipv6_multicast_loopback",
9655 SocketRequest::GetIpv6MulticastLoopback { .. } => "get_ipv6_multicast_loopback",
9656 SocketRequest::SetIpv6Only { .. } => "set_ipv6_only",
9657 SocketRequest::GetIpv6Only { .. } => "get_ipv6_only",
9658 SocketRequest::SetIpv6ReceiveTrafficClass { .. } => "set_ipv6_receive_traffic_class",
9659 SocketRequest::GetIpv6ReceiveTrafficClass { .. } => "get_ipv6_receive_traffic_class",
9660 SocketRequest::SetIpv6TrafficClass { .. } => "set_ipv6_traffic_class",
9661 SocketRequest::GetIpv6TrafficClass { .. } => "get_ipv6_traffic_class",
9662 SocketRequest::SetIpv6ReceivePacketInfo { .. } => "set_ipv6_receive_packet_info",
9663 SocketRequest::GetIpv6ReceivePacketInfo { .. } => "get_ipv6_receive_packet_info",
9664 SocketRequest::GetOriginalDestination { .. } => "get_original_destination",
9665 SocketRequest::Describe { .. } => "describe",
9666 SocketRequest::RecvMsg { .. } => "recv_msg",
9667 SocketRequest::SendMsg { .. } => "send_msg",
9668 SocketRequest::GetInfo { .. } => "get_info",
9669 SocketRequest::SetIpHeaderIncluded { .. } => "set_ip_header_included",
9670 SocketRequest::GetIpHeaderIncluded { .. } => "get_ip_header_included",
9671 SocketRequest::SetIcmpv6Filter { .. } => "set_icmpv6_filter",
9672 SocketRequest::GetIcmpv6Filter { .. } => "get_icmpv6_filter",
9673 SocketRequest::SetIpv6Checksum { .. } => "set_ipv6_checksum",
9674 SocketRequest::GetIpv6Checksum { .. } => "get_ipv6_checksum",
9675 }
9676 }
9677}
9678
9679#[derive(Debug, Clone)]
9680pub struct SocketControlHandle {
9681 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
9682}
9683
9684impl fidl::endpoints::ControlHandle for SocketControlHandle {
9685 fn shutdown(&self) {
9686 self.inner.shutdown()
9687 }
9688 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
9689 self.inner.shutdown_with_epitaph(status)
9690 }
9691
9692 fn is_closed(&self) -> bool {
9693 self.inner.channel().is_closed()
9694 }
9695 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
9696 self.inner.channel().on_closed()
9697 }
9698
9699 #[cfg(target_os = "fuchsia")]
9700 fn signal_peer(
9701 &self,
9702 clear_mask: zx::Signals,
9703 set_mask: zx::Signals,
9704 ) -> Result<(), zx_status::Status> {
9705 use fidl::Peered;
9706 self.inner.channel().signal_peer(clear_mask, set_mask)
9707 }
9708}
9709
9710impl SocketControlHandle {}
9711
9712#[must_use = "FIDL methods require a response to be sent"]
9713#[derive(Debug)]
9714pub struct SocketCloseResponder {
9715 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
9716 tx_id: u32,
9717}
9718
9719impl std::ops::Drop for SocketCloseResponder {
9723 fn drop(&mut self) {
9724 self.control_handle.shutdown();
9725 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9727 }
9728}
9729
9730impl fidl::endpoints::Responder for SocketCloseResponder {
9731 type ControlHandle = SocketControlHandle;
9732
9733 fn control_handle(&self) -> &SocketControlHandle {
9734 &self.control_handle
9735 }
9736
9737 fn drop_without_shutdown(mut self) {
9738 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9740 std::mem::forget(self);
9742 }
9743}
9744
9745impl SocketCloseResponder {
9746 pub fn send(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
9750 let _result = self.send_raw(result);
9751 if _result.is_err() {
9752 self.control_handle.shutdown();
9753 }
9754 self.drop_without_shutdown();
9755 _result
9756 }
9757
9758 pub fn send_no_shutdown_on_err(self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
9760 let _result = self.send_raw(result);
9761 self.drop_without_shutdown();
9762 _result
9763 }
9764
9765 fn send_raw(&self, mut result: Result<(), i32>) -> Result<(), fidl::Error> {
9766 self.control_handle
9767 .inner
9768 .send::<fidl::encoding::ResultType<fidl::encoding::EmptyStruct, i32>>(
9769 result,
9770 self.tx_id,
9771 0x5ac5d459ad7f657e,
9772 fidl::encoding::DynamicFlags::empty(),
9773 )
9774 }
9775}
9776
9777#[must_use = "FIDL methods require a response to be sent"]
9778#[derive(Debug)]
9779pub struct SocketQueryResponder {
9780 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
9781 tx_id: u32,
9782}
9783
9784impl std::ops::Drop for SocketQueryResponder {
9788 fn drop(&mut self) {
9789 self.control_handle.shutdown();
9790 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9792 }
9793}
9794
9795impl fidl::endpoints::Responder for SocketQueryResponder {
9796 type ControlHandle = SocketControlHandle;
9797
9798 fn control_handle(&self) -> &SocketControlHandle {
9799 &self.control_handle
9800 }
9801
9802 fn drop_without_shutdown(mut self) {
9803 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9805 std::mem::forget(self);
9807 }
9808}
9809
9810impl SocketQueryResponder {
9811 pub fn send(self, mut protocol: &[u8]) -> Result<(), fidl::Error> {
9815 let _result = self.send_raw(protocol);
9816 if _result.is_err() {
9817 self.control_handle.shutdown();
9818 }
9819 self.drop_without_shutdown();
9820 _result
9821 }
9822
9823 pub fn send_no_shutdown_on_err(self, mut protocol: &[u8]) -> Result<(), fidl::Error> {
9825 let _result = self.send_raw(protocol);
9826 self.drop_without_shutdown();
9827 _result
9828 }
9829
9830 fn send_raw(&self, mut protocol: &[u8]) -> Result<(), fidl::Error> {
9831 self.control_handle.inner.send::<fidl_fuchsia_unknown::QueryableQueryResponse>(
9832 (protocol,),
9833 self.tx_id,
9834 0x2658edee9decfc06,
9835 fidl::encoding::DynamicFlags::empty(),
9836 )
9837 }
9838}
9839
9840#[must_use = "FIDL methods require a response to be sent"]
9841#[derive(Debug)]
9842pub struct SocketSetReuseAddressResponder {
9843 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
9844 tx_id: u32,
9845}
9846
9847impl std::ops::Drop for SocketSetReuseAddressResponder {
9851 fn drop(&mut self) {
9852 self.control_handle.shutdown();
9853 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9855 }
9856}
9857
9858impl fidl::endpoints::Responder for SocketSetReuseAddressResponder {
9859 type ControlHandle = SocketControlHandle;
9860
9861 fn control_handle(&self) -> &SocketControlHandle {
9862 &self.control_handle
9863 }
9864
9865 fn drop_without_shutdown(mut self) {
9866 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9868 std::mem::forget(self);
9870 }
9871}
9872
9873impl SocketSetReuseAddressResponder {
9874 pub fn send(
9878 self,
9879 mut result: Result<(), fidl_fuchsia_posix::Errno>,
9880 ) -> Result<(), fidl::Error> {
9881 let _result = self.send_raw(result);
9882 if _result.is_err() {
9883 self.control_handle.shutdown();
9884 }
9885 self.drop_without_shutdown();
9886 _result
9887 }
9888
9889 pub fn send_no_shutdown_on_err(
9891 self,
9892 mut result: Result<(), fidl_fuchsia_posix::Errno>,
9893 ) -> Result<(), fidl::Error> {
9894 let _result = self.send_raw(result);
9895 self.drop_without_shutdown();
9896 _result
9897 }
9898
9899 fn send_raw(
9900 &self,
9901 mut result: Result<(), fidl_fuchsia_posix::Errno>,
9902 ) -> Result<(), fidl::Error> {
9903 self.control_handle.inner.send::<fidl::encoding::ResultType<
9904 fidl::encoding::EmptyStruct,
9905 fidl_fuchsia_posix::Errno,
9906 >>(
9907 result,
9908 self.tx_id,
9909 0x1fd74ee8b9a4a876,
9910 fidl::encoding::DynamicFlags::empty(),
9911 )
9912 }
9913}
9914
9915#[must_use = "FIDL methods require a response to be sent"]
9916#[derive(Debug)]
9917pub struct SocketGetReuseAddressResponder {
9918 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
9919 tx_id: u32,
9920}
9921
9922impl std::ops::Drop for SocketGetReuseAddressResponder {
9926 fn drop(&mut self) {
9927 self.control_handle.shutdown();
9928 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9930 }
9931}
9932
9933impl fidl::endpoints::Responder for SocketGetReuseAddressResponder {
9934 type ControlHandle = SocketControlHandle;
9935
9936 fn control_handle(&self) -> &SocketControlHandle {
9937 &self.control_handle
9938 }
9939
9940 fn drop_without_shutdown(mut self) {
9941 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
9943 std::mem::forget(self);
9945 }
9946}
9947
9948impl SocketGetReuseAddressResponder {
9949 pub fn send(
9953 self,
9954 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
9955 ) -> Result<(), fidl::Error> {
9956 let _result = self.send_raw(result);
9957 if _result.is_err() {
9958 self.control_handle.shutdown();
9959 }
9960 self.drop_without_shutdown();
9961 _result
9962 }
9963
9964 pub fn send_no_shutdown_on_err(
9966 self,
9967 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
9968 ) -> Result<(), fidl::Error> {
9969 let _result = self.send_raw(result);
9970 self.drop_without_shutdown();
9971 _result
9972 }
9973
9974 fn send_raw(
9975 &self,
9976 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
9977 ) -> Result<(), fidl::Error> {
9978 self.control_handle.inner.send::<fidl::encoding::ResultType<
9979 fidl_fuchsia_posix_socket::BaseSocketGetReuseAddressResponse,
9980 fidl_fuchsia_posix::Errno,
9981 >>(
9982 result.map(|value| (value,)),
9983 self.tx_id,
9984 0x67b7206b8d1bc0a5,
9985 fidl::encoding::DynamicFlags::empty(),
9986 )
9987 }
9988}
9989
9990#[must_use = "FIDL methods require a response to be sent"]
9991#[derive(Debug)]
9992pub struct SocketGetErrorResponder {
9993 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
9994 tx_id: u32,
9995}
9996
9997impl std::ops::Drop for SocketGetErrorResponder {
10001 fn drop(&mut self) {
10002 self.control_handle.shutdown();
10003 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10005 }
10006}
10007
10008impl fidl::endpoints::Responder for SocketGetErrorResponder {
10009 type ControlHandle = SocketControlHandle;
10010
10011 fn control_handle(&self) -> &SocketControlHandle {
10012 &self.control_handle
10013 }
10014
10015 fn drop_without_shutdown(mut self) {
10016 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10018 std::mem::forget(self);
10020 }
10021}
10022
10023impl SocketGetErrorResponder {
10024 pub fn send(
10028 self,
10029 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10030 ) -> Result<(), fidl::Error> {
10031 let _result = self.send_raw(result);
10032 if _result.is_err() {
10033 self.control_handle.shutdown();
10034 }
10035 self.drop_without_shutdown();
10036 _result
10037 }
10038
10039 pub fn send_no_shutdown_on_err(
10041 self,
10042 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10043 ) -> Result<(), fidl::Error> {
10044 let _result = self.send_raw(result);
10045 self.drop_without_shutdown();
10046 _result
10047 }
10048
10049 fn send_raw(
10050 &self,
10051 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10052 ) -> Result<(), fidl::Error> {
10053 self.control_handle.inner.send::<fidl::encoding::ResultType<
10054 fidl::encoding::EmptyStruct,
10055 fidl_fuchsia_posix::Errno,
10056 >>(
10057 result,
10058 self.tx_id,
10059 0x5aad39b33e5f6ebb,
10060 fidl::encoding::DynamicFlags::empty(),
10061 )
10062 }
10063}
10064
10065#[must_use = "FIDL methods require a response to be sent"]
10066#[derive(Debug)]
10067pub struct SocketSetBroadcastResponder {
10068 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10069 tx_id: u32,
10070}
10071
10072impl std::ops::Drop for SocketSetBroadcastResponder {
10076 fn drop(&mut self) {
10077 self.control_handle.shutdown();
10078 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10080 }
10081}
10082
10083impl fidl::endpoints::Responder for SocketSetBroadcastResponder {
10084 type ControlHandle = SocketControlHandle;
10085
10086 fn control_handle(&self) -> &SocketControlHandle {
10087 &self.control_handle
10088 }
10089
10090 fn drop_without_shutdown(mut self) {
10091 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10093 std::mem::forget(self);
10095 }
10096}
10097
10098impl SocketSetBroadcastResponder {
10099 pub fn send(
10103 self,
10104 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10105 ) -> Result<(), fidl::Error> {
10106 let _result = self.send_raw(result);
10107 if _result.is_err() {
10108 self.control_handle.shutdown();
10109 }
10110 self.drop_without_shutdown();
10111 _result
10112 }
10113
10114 pub fn send_no_shutdown_on_err(
10116 self,
10117 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10118 ) -> Result<(), fidl::Error> {
10119 let _result = self.send_raw(result);
10120 self.drop_without_shutdown();
10121 _result
10122 }
10123
10124 fn send_raw(
10125 &self,
10126 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10127 ) -> Result<(), fidl::Error> {
10128 self.control_handle.inner.send::<fidl::encoding::ResultType<
10129 fidl::encoding::EmptyStruct,
10130 fidl_fuchsia_posix::Errno,
10131 >>(
10132 result,
10133 self.tx_id,
10134 0x6023e081ce3cd947,
10135 fidl::encoding::DynamicFlags::empty(),
10136 )
10137 }
10138}
10139
10140#[must_use = "FIDL methods require a response to be sent"]
10141#[derive(Debug)]
10142pub struct SocketGetBroadcastResponder {
10143 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10144 tx_id: u32,
10145}
10146
10147impl std::ops::Drop for SocketGetBroadcastResponder {
10151 fn drop(&mut self) {
10152 self.control_handle.shutdown();
10153 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10155 }
10156}
10157
10158impl fidl::endpoints::Responder for SocketGetBroadcastResponder {
10159 type ControlHandle = SocketControlHandle;
10160
10161 fn control_handle(&self) -> &SocketControlHandle {
10162 &self.control_handle
10163 }
10164
10165 fn drop_without_shutdown(mut self) {
10166 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10168 std::mem::forget(self);
10170 }
10171}
10172
10173impl SocketGetBroadcastResponder {
10174 pub fn send(
10178 self,
10179 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10180 ) -> Result<(), fidl::Error> {
10181 let _result = self.send_raw(result);
10182 if _result.is_err() {
10183 self.control_handle.shutdown();
10184 }
10185 self.drop_without_shutdown();
10186 _result
10187 }
10188
10189 pub fn send_no_shutdown_on_err(
10191 self,
10192 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10193 ) -> Result<(), fidl::Error> {
10194 let _result = self.send_raw(result);
10195 self.drop_without_shutdown();
10196 _result
10197 }
10198
10199 fn send_raw(
10200 &self,
10201 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10202 ) -> Result<(), fidl::Error> {
10203 self.control_handle.inner.send::<fidl::encoding::ResultType<
10204 fidl_fuchsia_posix_socket::BaseSocketGetBroadcastResponse,
10205 fidl_fuchsia_posix::Errno,
10206 >>(
10207 result.map(|value| (value,)),
10208 self.tx_id,
10209 0x68796fc556f9780d,
10210 fidl::encoding::DynamicFlags::empty(),
10211 )
10212 }
10213}
10214
10215#[must_use = "FIDL methods require a response to be sent"]
10216#[derive(Debug)]
10217pub struct SocketSetSendBufferResponder {
10218 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10219 tx_id: u32,
10220}
10221
10222impl std::ops::Drop for SocketSetSendBufferResponder {
10226 fn drop(&mut self) {
10227 self.control_handle.shutdown();
10228 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10230 }
10231}
10232
10233impl fidl::endpoints::Responder for SocketSetSendBufferResponder {
10234 type ControlHandle = SocketControlHandle;
10235
10236 fn control_handle(&self) -> &SocketControlHandle {
10237 &self.control_handle
10238 }
10239
10240 fn drop_without_shutdown(mut self) {
10241 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10243 std::mem::forget(self);
10245 }
10246}
10247
10248impl SocketSetSendBufferResponder {
10249 pub fn send(
10253 self,
10254 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10255 ) -> Result<(), fidl::Error> {
10256 let _result = self.send_raw(result);
10257 if _result.is_err() {
10258 self.control_handle.shutdown();
10259 }
10260 self.drop_without_shutdown();
10261 _result
10262 }
10263
10264 pub fn send_no_shutdown_on_err(
10266 self,
10267 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10268 ) -> Result<(), fidl::Error> {
10269 let _result = self.send_raw(result);
10270 self.drop_without_shutdown();
10271 _result
10272 }
10273
10274 fn send_raw(
10275 &self,
10276 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10277 ) -> Result<(), fidl::Error> {
10278 self.control_handle.inner.send::<fidl::encoding::ResultType<
10279 fidl::encoding::EmptyStruct,
10280 fidl_fuchsia_posix::Errno,
10281 >>(
10282 result,
10283 self.tx_id,
10284 0x756eac32d73a7a70,
10285 fidl::encoding::DynamicFlags::empty(),
10286 )
10287 }
10288}
10289
10290#[must_use = "FIDL methods require a response to be sent"]
10291#[derive(Debug)]
10292pub struct SocketGetSendBufferResponder {
10293 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10294 tx_id: u32,
10295}
10296
10297impl std::ops::Drop for SocketGetSendBufferResponder {
10301 fn drop(&mut self) {
10302 self.control_handle.shutdown();
10303 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10305 }
10306}
10307
10308impl fidl::endpoints::Responder for SocketGetSendBufferResponder {
10309 type ControlHandle = SocketControlHandle;
10310
10311 fn control_handle(&self) -> &SocketControlHandle {
10312 &self.control_handle
10313 }
10314
10315 fn drop_without_shutdown(mut self) {
10316 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10318 std::mem::forget(self);
10320 }
10321}
10322
10323impl SocketGetSendBufferResponder {
10324 pub fn send(
10328 self,
10329 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
10330 ) -> Result<(), fidl::Error> {
10331 let _result = self.send_raw(result);
10332 if _result.is_err() {
10333 self.control_handle.shutdown();
10334 }
10335 self.drop_without_shutdown();
10336 _result
10337 }
10338
10339 pub fn send_no_shutdown_on_err(
10341 self,
10342 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
10343 ) -> Result<(), fidl::Error> {
10344 let _result = self.send_raw(result);
10345 self.drop_without_shutdown();
10346 _result
10347 }
10348
10349 fn send_raw(
10350 &self,
10351 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
10352 ) -> Result<(), fidl::Error> {
10353 self.control_handle.inner.send::<fidl::encoding::ResultType<
10354 fidl_fuchsia_posix_socket::BaseSocketGetSendBufferResponse,
10355 fidl_fuchsia_posix::Errno,
10356 >>(
10357 result.map(|value_bytes| (value_bytes,)),
10358 self.tx_id,
10359 0x78a52fd9c7b2410b,
10360 fidl::encoding::DynamicFlags::empty(),
10361 )
10362 }
10363}
10364
10365#[must_use = "FIDL methods require a response to be sent"]
10366#[derive(Debug)]
10367pub struct SocketSetReceiveBufferResponder {
10368 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10369 tx_id: u32,
10370}
10371
10372impl std::ops::Drop for SocketSetReceiveBufferResponder {
10376 fn drop(&mut self) {
10377 self.control_handle.shutdown();
10378 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10380 }
10381}
10382
10383impl fidl::endpoints::Responder for SocketSetReceiveBufferResponder {
10384 type ControlHandle = SocketControlHandle;
10385
10386 fn control_handle(&self) -> &SocketControlHandle {
10387 &self.control_handle
10388 }
10389
10390 fn drop_without_shutdown(mut self) {
10391 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10393 std::mem::forget(self);
10395 }
10396}
10397
10398impl SocketSetReceiveBufferResponder {
10399 pub fn send(
10403 self,
10404 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10405 ) -> Result<(), fidl::Error> {
10406 let _result = self.send_raw(result);
10407 if _result.is_err() {
10408 self.control_handle.shutdown();
10409 }
10410 self.drop_without_shutdown();
10411 _result
10412 }
10413
10414 pub fn send_no_shutdown_on_err(
10416 self,
10417 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10418 ) -> Result<(), fidl::Error> {
10419 let _result = self.send_raw(result);
10420 self.drop_without_shutdown();
10421 _result
10422 }
10423
10424 fn send_raw(
10425 &self,
10426 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10427 ) -> Result<(), fidl::Error> {
10428 self.control_handle.inner.send::<fidl::encoding::ResultType<
10429 fidl::encoding::EmptyStruct,
10430 fidl_fuchsia_posix::Errno,
10431 >>(
10432 result,
10433 self.tx_id,
10434 0x6b0cf2f1919c7001,
10435 fidl::encoding::DynamicFlags::empty(),
10436 )
10437 }
10438}
10439
10440#[must_use = "FIDL methods require a response to be sent"]
10441#[derive(Debug)]
10442pub struct SocketGetReceiveBufferResponder {
10443 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10444 tx_id: u32,
10445}
10446
10447impl std::ops::Drop for SocketGetReceiveBufferResponder {
10451 fn drop(&mut self) {
10452 self.control_handle.shutdown();
10453 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10455 }
10456}
10457
10458impl fidl::endpoints::Responder for SocketGetReceiveBufferResponder {
10459 type ControlHandle = SocketControlHandle;
10460
10461 fn control_handle(&self) -> &SocketControlHandle {
10462 &self.control_handle
10463 }
10464
10465 fn drop_without_shutdown(mut self) {
10466 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10468 std::mem::forget(self);
10470 }
10471}
10472
10473impl SocketGetReceiveBufferResponder {
10474 pub fn send(
10478 self,
10479 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
10480 ) -> Result<(), fidl::Error> {
10481 let _result = self.send_raw(result);
10482 if _result.is_err() {
10483 self.control_handle.shutdown();
10484 }
10485 self.drop_without_shutdown();
10486 _result
10487 }
10488
10489 pub fn send_no_shutdown_on_err(
10491 self,
10492 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
10493 ) -> Result<(), fidl::Error> {
10494 let _result = self.send_raw(result);
10495 self.drop_without_shutdown();
10496 _result
10497 }
10498
10499 fn send_raw(
10500 &self,
10501 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
10502 ) -> Result<(), fidl::Error> {
10503 self.control_handle.inner.send::<fidl::encoding::ResultType<
10504 fidl_fuchsia_posix_socket::BaseSocketGetReceiveBufferResponse,
10505 fidl_fuchsia_posix::Errno,
10506 >>(
10507 result.map(|value_bytes| (value_bytes,)),
10508 self.tx_id,
10509 0x14c1a4b64f709e5c,
10510 fidl::encoding::DynamicFlags::empty(),
10511 )
10512 }
10513}
10514
10515#[must_use = "FIDL methods require a response to be sent"]
10516#[derive(Debug)]
10517pub struct SocketSetKeepAliveResponder {
10518 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10519 tx_id: u32,
10520}
10521
10522impl std::ops::Drop for SocketSetKeepAliveResponder {
10526 fn drop(&mut self) {
10527 self.control_handle.shutdown();
10528 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10530 }
10531}
10532
10533impl fidl::endpoints::Responder for SocketSetKeepAliveResponder {
10534 type ControlHandle = SocketControlHandle;
10535
10536 fn control_handle(&self) -> &SocketControlHandle {
10537 &self.control_handle
10538 }
10539
10540 fn drop_without_shutdown(mut self) {
10541 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10543 std::mem::forget(self);
10545 }
10546}
10547
10548impl SocketSetKeepAliveResponder {
10549 pub fn send(
10553 self,
10554 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10555 ) -> Result<(), fidl::Error> {
10556 let _result = self.send_raw(result);
10557 if _result.is_err() {
10558 self.control_handle.shutdown();
10559 }
10560 self.drop_without_shutdown();
10561 _result
10562 }
10563
10564 pub fn send_no_shutdown_on_err(
10566 self,
10567 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10568 ) -> Result<(), fidl::Error> {
10569 let _result = self.send_raw(result);
10570 self.drop_without_shutdown();
10571 _result
10572 }
10573
10574 fn send_raw(
10575 &self,
10576 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10577 ) -> Result<(), fidl::Error> {
10578 self.control_handle.inner.send::<fidl::encoding::ResultType<
10579 fidl::encoding::EmptyStruct,
10580 fidl_fuchsia_posix::Errno,
10581 >>(
10582 result,
10583 self.tx_id,
10584 0x572df8f0b920d2c7,
10585 fidl::encoding::DynamicFlags::empty(),
10586 )
10587 }
10588}
10589
10590#[must_use = "FIDL methods require a response to be sent"]
10591#[derive(Debug)]
10592pub struct SocketGetKeepAliveResponder {
10593 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10594 tx_id: u32,
10595}
10596
10597impl std::ops::Drop for SocketGetKeepAliveResponder {
10601 fn drop(&mut self) {
10602 self.control_handle.shutdown();
10603 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10605 }
10606}
10607
10608impl fidl::endpoints::Responder for SocketGetKeepAliveResponder {
10609 type ControlHandle = SocketControlHandle;
10610
10611 fn control_handle(&self) -> &SocketControlHandle {
10612 &self.control_handle
10613 }
10614
10615 fn drop_without_shutdown(mut self) {
10616 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10618 std::mem::forget(self);
10620 }
10621}
10622
10623impl SocketGetKeepAliveResponder {
10624 pub fn send(
10628 self,
10629 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10630 ) -> Result<(), fidl::Error> {
10631 let _result = self.send_raw(result);
10632 if _result.is_err() {
10633 self.control_handle.shutdown();
10634 }
10635 self.drop_without_shutdown();
10636 _result
10637 }
10638
10639 pub fn send_no_shutdown_on_err(
10641 self,
10642 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10643 ) -> Result<(), fidl::Error> {
10644 let _result = self.send_raw(result);
10645 self.drop_without_shutdown();
10646 _result
10647 }
10648
10649 fn send_raw(
10650 &self,
10651 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10652 ) -> Result<(), fidl::Error> {
10653 self.control_handle.inner.send::<fidl::encoding::ResultType<
10654 fidl_fuchsia_posix_socket::BaseSocketGetKeepAliveResponse,
10655 fidl_fuchsia_posix::Errno,
10656 >>(
10657 result.map(|value| (value,)),
10658 self.tx_id,
10659 0x2dd29d3215f2c9d2,
10660 fidl::encoding::DynamicFlags::empty(),
10661 )
10662 }
10663}
10664
10665#[must_use = "FIDL methods require a response to be sent"]
10666#[derive(Debug)]
10667pub struct SocketSetOutOfBandInlineResponder {
10668 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10669 tx_id: u32,
10670}
10671
10672impl std::ops::Drop for SocketSetOutOfBandInlineResponder {
10676 fn drop(&mut self) {
10677 self.control_handle.shutdown();
10678 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10680 }
10681}
10682
10683impl fidl::endpoints::Responder for SocketSetOutOfBandInlineResponder {
10684 type ControlHandle = SocketControlHandle;
10685
10686 fn control_handle(&self) -> &SocketControlHandle {
10687 &self.control_handle
10688 }
10689
10690 fn drop_without_shutdown(mut self) {
10691 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10693 std::mem::forget(self);
10695 }
10696}
10697
10698impl SocketSetOutOfBandInlineResponder {
10699 pub fn send(
10703 self,
10704 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10705 ) -> Result<(), fidl::Error> {
10706 let _result = self.send_raw(result);
10707 if _result.is_err() {
10708 self.control_handle.shutdown();
10709 }
10710 self.drop_without_shutdown();
10711 _result
10712 }
10713
10714 pub fn send_no_shutdown_on_err(
10716 self,
10717 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10718 ) -> Result<(), fidl::Error> {
10719 let _result = self.send_raw(result);
10720 self.drop_without_shutdown();
10721 _result
10722 }
10723
10724 fn send_raw(
10725 &self,
10726 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10727 ) -> Result<(), fidl::Error> {
10728 self.control_handle.inner.send::<fidl::encoding::ResultType<
10729 fidl::encoding::EmptyStruct,
10730 fidl_fuchsia_posix::Errno,
10731 >>(
10732 result,
10733 self.tx_id,
10734 0x3ecb49968bee439,
10735 fidl::encoding::DynamicFlags::empty(),
10736 )
10737 }
10738}
10739
10740#[must_use = "FIDL methods require a response to be sent"]
10741#[derive(Debug)]
10742pub struct SocketGetOutOfBandInlineResponder {
10743 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10744 tx_id: u32,
10745}
10746
10747impl std::ops::Drop for SocketGetOutOfBandInlineResponder {
10751 fn drop(&mut self) {
10752 self.control_handle.shutdown();
10753 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10755 }
10756}
10757
10758impl fidl::endpoints::Responder for SocketGetOutOfBandInlineResponder {
10759 type ControlHandle = SocketControlHandle;
10760
10761 fn control_handle(&self) -> &SocketControlHandle {
10762 &self.control_handle
10763 }
10764
10765 fn drop_without_shutdown(mut self) {
10766 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10768 std::mem::forget(self);
10770 }
10771}
10772
10773impl SocketGetOutOfBandInlineResponder {
10774 pub fn send(
10778 self,
10779 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10780 ) -> Result<(), fidl::Error> {
10781 let _result = self.send_raw(result);
10782 if _result.is_err() {
10783 self.control_handle.shutdown();
10784 }
10785 self.drop_without_shutdown();
10786 _result
10787 }
10788
10789 pub fn send_no_shutdown_on_err(
10791 self,
10792 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10793 ) -> Result<(), fidl::Error> {
10794 let _result = self.send_raw(result);
10795 self.drop_without_shutdown();
10796 _result
10797 }
10798
10799 fn send_raw(
10800 &self,
10801 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10802 ) -> Result<(), fidl::Error> {
10803 self.control_handle.inner.send::<fidl::encoding::ResultType<
10804 fidl_fuchsia_posix_socket::BaseSocketGetOutOfBandInlineResponse,
10805 fidl_fuchsia_posix::Errno,
10806 >>(
10807 result.map(|value| (value,)),
10808 self.tx_id,
10809 0x348c1ab3aeca1745,
10810 fidl::encoding::DynamicFlags::empty(),
10811 )
10812 }
10813}
10814
10815#[must_use = "FIDL methods require a response to be sent"]
10816#[derive(Debug)]
10817pub struct SocketSetNoCheckResponder {
10818 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10819 tx_id: u32,
10820}
10821
10822impl std::ops::Drop for SocketSetNoCheckResponder {
10826 fn drop(&mut self) {
10827 self.control_handle.shutdown();
10828 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10830 }
10831}
10832
10833impl fidl::endpoints::Responder for SocketSetNoCheckResponder {
10834 type ControlHandle = SocketControlHandle;
10835
10836 fn control_handle(&self) -> &SocketControlHandle {
10837 &self.control_handle
10838 }
10839
10840 fn drop_without_shutdown(mut self) {
10841 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10843 std::mem::forget(self);
10845 }
10846}
10847
10848impl SocketSetNoCheckResponder {
10849 pub fn send(
10853 self,
10854 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10855 ) -> Result<(), fidl::Error> {
10856 let _result = self.send_raw(result);
10857 if _result.is_err() {
10858 self.control_handle.shutdown();
10859 }
10860 self.drop_without_shutdown();
10861 _result
10862 }
10863
10864 pub fn send_no_shutdown_on_err(
10866 self,
10867 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10868 ) -> Result<(), fidl::Error> {
10869 let _result = self.send_raw(result);
10870 self.drop_without_shutdown();
10871 _result
10872 }
10873
10874 fn send_raw(
10875 &self,
10876 mut result: Result<(), fidl_fuchsia_posix::Errno>,
10877 ) -> Result<(), fidl::Error> {
10878 self.control_handle.inner.send::<fidl::encoding::ResultType<
10879 fidl::encoding::EmptyStruct,
10880 fidl_fuchsia_posix::Errno,
10881 >>(
10882 result,
10883 self.tx_id,
10884 0x6bbf00c53a4c78c2,
10885 fidl::encoding::DynamicFlags::empty(),
10886 )
10887 }
10888}
10889
10890#[must_use = "FIDL methods require a response to be sent"]
10891#[derive(Debug)]
10892pub struct SocketGetNoCheckResponder {
10893 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10894 tx_id: u32,
10895}
10896
10897impl std::ops::Drop for SocketGetNoCheckResponder {
10901 fn drop(&mut self) {
10902 self.control_handle.shutdown();
10903 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10905 }
10906}
10907
10908impl fidl::endpoints::Responder for SocketGetNoCheckResponder {
10909 type ControlHandle = SocketControlHandle;
10910
10911 fn control_handle(&self) -> &SocketControlHandle {
10912 &self.control_handle
10913 }
10914
10915 fn drop_without_shutdown(mut self) {
10916 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10918 std::mem::forget(self);
10920 }
10921}
10922
10923impl SocketGetNoCheckResponder {
10924 pub fn send(
10928 self,
10929 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10930 ) -> Result<(), fidl::Error> {
10931 let _result = self.send_raw(result);
10932 if _result.is_err() {
10933 self.control_handle.shutdown();
10934 }
10935 self.drop_without_shutdown();
10936 _result
10937 }
10938
10939 pub fn send_no_shutdown_on_err(
10941 self,
10942 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10943 ) -> Result<(), fidl::Error> {
10944 let _result = self.send_raw(result);
10945 self.drop_without_shutdown();
10946 _result
10947 }
10948
10949 fn send_raw(
10950 &self,
10951 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
10952 ) -> Result<(), fidl::Error> {
10953 self.control_handle.inner.send::<fidl::encoding::ResultType<
10954 fidl_fuchsia_posix_socket::BaseSocketGetNoCheckResponse,
10955 fidl_fuchsia_posix::Errno,
10956 >>(
10957 result.map(|value| (value,)),
10958 self.tx_id,
10959 0x2cd4249286417694,
10960 fidl::encoding::DynamicFlags::empty(),
10961 )
10962 }
10963}
10964
10965#[must_use = "FIDL methods require a response to be sent"]
10966#[derive(Debug)]
10967pub struct SocketSetLingerResponder {
10968 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
10969 tx_id: u32,
10970}
10971
10972impl std::ops::Drop for SocketSetLingerResponder {
10976 fn drop(&mut self) {
10977 self.control_handle.shutdown();
10978 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10980 }
10981}
10982
10983impl fidl::endpoints::Responder for SocketSetLingerResponder {
10984 type ControlHandle = SocketControlHandle;
10985
10986 fn control_handle(&self) -> &SocketControlHandle {
10987 &self.control_handle
10988 }
10989
10990 fn drop_without_shutdown(mut self) {
10991 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
10993 std::mem::forget(self);
10995 }
10996}
10997
10998impl SocketSetLingerResponder {
10999 pub fn send(
11003 self,
11004 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11005 ) -> Result<(), fidl::Error> {
11006 let _result = self.send_raw(result);
11007 if _result.is_err() {
11008 self.control_handle.shutdown();
11009 }
11010 self.drop_without_shutdown();
11011 _result
11012 }
11013
11014 pub fn send_no_shutdown_on_err(
11016 self,
11017 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11018 ) -> Result<(), fidl::Error> {
11019 let _result = self.send_raw(result);
11020 self.drop_without_shutdown();
11021 _result
11022 }
11023
11024 fn send_raw(
11025 &self,
11026 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11027 ) -> Result<(), fidl::Error> {
11028 self.control_handle.inner.send::<fidl::encoding::ResultType<
11029 fidl::encoding::EmptyStruct,
11030 fidl_fuchsia_posix::Errno,
11031 >>(
11032 result,
11033 self.tx_id,
11034 0x45386351246e998e,
11035 fidl::encoding::DynamicFlags::empty(),
11036 )
11037 }
11038}
11039
11040#[must_use = "FIDL methods require a response to be sent"]
11041#[derive(Debug)]
11042pub struct SocketGetLingerResponder {
11043 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11044 tx_id: u32,
11045}
11046
11047impl std::ops::Drop for SocketGetLingerResponder {
11051 fn drop(&mut self) {
11052 self.control_handle.shutdown();
11053 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11055 }
11056}
11057
11058impl fidl::endpoints::Responder for SocketGetLingerResponder {
11059 type ControlHandle = SocketControlHandle;
11060
11061 fn control_handle(&self) -> &SocketControlHandle {
11062 &self.control_handle
11063 }
11064
11065 fn drop_without_shutdown(mut self) {
11066 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11068 std::mem::forget(self);
11070 }
11071}
11072
11073impl SocketGetLingerResponder {
11074 pub fn send(
11078 self,
11079 mut result: Result<(bool, u32), fidl_fuchsia_posix::Errno>,
11080 ) -> Result<(), fidl::Error> {
11081 let _result = self.send_raw(result);
11082 if _result.is_err() {
11083 self.control_handle.shutdown();
11084 }
11085 self.drop_without_shutdown();
11086 _result
11087 }
11088
11089 pub fn send_no_shutdown_on_err(
11091 self,
11092 mut result: Result<(bool, u32), fidl_fuchsia_posix::Errno>,
11093 ) -> Result<(), fidl::Error> {
11094 let _result = self.send_raw(result);
11095 self.drop_without_shutdown();
11096 _result
11097 }
11098
11099 fn send_raw(
11100 &self,
11101 mut result: Result<(bool, u32), fidl_fuchsia_posix::Errno>,
11102 ) -> Result<(), fidl::Error> {
11103 self.control_handle.inner.send::<fidl::encoding::ResultType<
11104 fidl_fuchsia_posix_socket::BaseSocketGetLingerResponse,
11105 fidl_fuchsia_posix::Errno,
11106 >>(
11107 result,
11108 self.tx_id,
11109 0x48eb20fc5ccb0e45,
11110 fidl::encoding::DynamicFlags::empty(),
11111 )
11112 }
11113}
11114
11115#[must_use = "FIDL methods require a response to be sent"]
11116#[derive(Debug)]
11117pub struct SocketSetReusePortResponder {
11118 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11119 tx_id: u32,
11120}
11121
11122impl std::ops::Drop for SocketSetReusePortResponder {
11126 fn drop(&mut self) {
11127 self.control_handle.shutdown();
11128 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11130 }
11131}
11132
11133impl fidl::endpoints::Responder for SocketSetReusePortResponder {
11134 type ControlHandle = SocketControlHandle;
11135
11136 fn control_handle(&self) -> &SocketControlHandle {
11137 &self.control_handle
11138 }
11139
11140 fn drop_without_shutdown(mut self) {
11141 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11143 std::mem::forget(self);
11145 }
11146}
11147
11148impl SocketSetReusePortResponder {
11149 pub fn send(
11153 self,
11154 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11155 ) -> Result<(), fidl::Error> {
11156 let _result = self.send_raw(result);
11157 if _result.is_err() {
11158 self.control_handle.shutdown();
11159 }
11160 self.drop_without_shutdown();
11161 _result
11162 }
11163
11164 pub fn send_no_shutdown_on_err(
11166 self,
11167 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11168 ) -> Result<(), fidl::Error> {
11169 let _result = self.send_raw(result);
11170 self.drop_without_shutdown();
11171 _result
11172 }
11173
11174 fn send_raw(
11175 &self,
11176 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11177 ) -> Result<(), fidl::Error> {
11178 self.control_handle.inner.send::<fidl::encoding::ResultType<
11179 fidl::encoding::EmptyStruct,
11180 fidl_fuchsia_posix::Errno,
11181 >>(
11182 result,
11183 self.tx_id,
11184 0x24dd3e5cb36d9ccb,
11185 fidl::encoding::DynamicFlags::empty(),
11186 )
11187 }
11188}
11189
11190#[must_use = "FIDL methods require a response to be sent"]
11191#[derive(Debug)]
11192pub struct SocketGetReusePortResponder {
11193 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11194 tx_id: u32,
11195}
11196
11197impl std::ops::Drop for SocketGetReusePortResponder {
11201 fn drop(&mut self) {
11202 self.control_handle.shutdown();
11203 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11205 }
11206}
11207
11208impl fidl::endpoints::Responder for SocketGetReusePortResponder {
11209 type ControlHandle = SocketControlHandle;
11210
11211 fn control_handle(&self) -> &SocketControlHandle {
11212 &self.control_handle
11213 }
11214
11215 fn drop_without_shutdown(mut self) {
11216 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11218 std::mem::forget(self);
11220 }
11221}
11222
11223impl SocketGetReusePortResponder {
11224 pub fn send(
11228 self,
11229 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
11230 ) -> Result<(), fidl::Error> {
11231 let _result = self.send_raw(result);
11232 if _result.is_err() {
11233 self.control_handle.shutdown();
11234 }
11235 self.drop_without_shutdown();
11236 _result
11237 }
11238
11239 pub fn send_no_shutdown_on_err(
11241 self,
11242 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
11243 ) -> Result<(), fidl::Error> {
11244 let _result = self.send_raw(result);
11245 self.drop_without_shutdown();
11246 _result
11247 }
11248
11249 fn send_raw(
11250 &self,
11251 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
11252 ) -> Result<(), fidl::Error> {
11253 self.control_handle.inner.send::<fidl::encoding::ResultType<
11254 fidl_fuchsia_posix_socket::BaseSocketGetReusePortResponse,
11255 fidl_fuchsia_posix::Errno,
11256 >>(
11257 result.map(|value| (value,)),
11258 self.tx_id,
11259 0x7a112c1ab54ff828,
11260 fidl::encoding::DynamicFlags::empty(),
11261 )
11262 }
11263}
11264
11265#[must_use = "FIDL methods require a response to be sent"]
11266#[derive(Debug)]
11267pub struct SocketGetAcceptConnResponder {
11268 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11269 tx_id: u32,
11270}
11271
11272impl std::ops::Drop for SocketGetAcceptConnResponder {
11276 fn drop(&mut self) {
11277 self.control_handle.shutdown();
11278 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11280 }
11281}
11282
11283impl fidl::endpoints::Responder for SocketGetAcceptConnResponder {
11284 type ControlHandle = SocketControlHandle;
11285
11286 fn control_handle(&self) -> &SocketControlHandle {
11287 &self.control_handle
11288 }
11289
11290 fn drop_without_shutdown(mut self) {
11291 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11293 std::mem::forget(self);
11295 }
11296}
11297
11298impl SocketGetAcceptConnResponder {
11299 pub fn send(
11303 self,
11304 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
11305 ) -> Result<(), fidl::Error> {
11306 let _result = self.send_raw(result);
11307 if _result.is_err() {
11308 self.control_handle.shutdown();
11309 }
11310 self.drop_without_shutdown();
11311 _result
11312 }
11313
11314 pub fn send_no_shutdown_on_err(
11316 self,
11317 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
11318 ) -> Result<(), fidl::Error> {
11319 let _result = self.send_raw(result);
11320 self.drop_without_shutdown();
11321 _result
11322 }
11323
11324 fn send_raw(
11325 &self,
11326 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
11327 ) -> Result<(), fidl::Error> {
11328 self.control_handle.inner.send::<fidl::encoding::ResultType<
11329 fidl_fuchsia_posix_socket::BaseSocketGetAcceptConnResponse,
11330 fidl_fuchsia_posix::Errno,
11331 >>(
11332 result.map(|value| (value,)),
11333 self.tx_id,
11334 0x67ce6db6c2ec8966,
11335 fidl::encoding::DynamicFlags::empty(),
11336 )
11337 }
11338}
11339
11340#[must_use = "FIDL methods require a response to be sent"]
11341#[derive(Debug)]
11342pub struct SocketSetBindToDeviceResponder {
11343 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11344 tx_id: u32,
11345}
11346
11347impl std::ops::Drop for SocketSetBindToDeviceResponder {
11351 fn drop(&mut self) {
11352 self.control_handle.shutdown();
11353 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11355 }
11356}
11357
11358impl fidl::endpoints::Responder for SocketSetBindToDeviceResponder {
11359 type ControlHandle = SocketControlHandle;
11360
11361 fn control_handle(&self) -> &SocketControlHandle {
11362 &self.control_handle
11363 }
11364
11365 fn drop_without_shutdown(mut self) {
11366 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11368 std::mem::forget(self);
11370 }
11371}
11372
11373impl SocketSetBindToDeviceResponder {
11374 pub fn send(
11378 self,
11379 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11380 ) -> Result<(), fidl::Error> {
11381 let _result = self.send_raw(result);
11382 if _result.is_err() {
11383 self.control_handle.shutdown();
11384 }
11385 self.drop_without_shutdown();
11386 _result
11387 }
11388
11389 pub fn send_no_shutdown_on_err(
11391 self,
11392 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11393 ) -> Result<(), fidl::Error> {
11394 let _result = self.send_raw(result);
11395 self.drop_without_shutdown();
11396 _result
11397 }
11398
11399 fn send_raw(
11400 &self,
11401 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11402 ) -> Result<(), fidl::Error> {
11403 self.control_handle.inner.send::<fidl::encoding::ResultType<
11404 fidl::encoding::EmptyStruct,
11405 fidl_fuchsia_posix::Errno,
11406 >>(
11407 result,
11408 self.tx_id,
11409 0x2118b483f28aafc4,
11410 fidl::encoding::DynamicFlags::empty(),
11411 )
11412 }
11413}
11414
11415#[must_use = "FIDL methods require a response to be sent"]
11416#[derive(Debug)]
11417pub struct SocketGetBindToDeviceResponder {
11418 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11419 tx_id: u32,
11420}
11421
11422impl std::ops::Drop for SocketGetBindToDeviceResponder {
11426 fn drop(&mut self) {
11427 self.control_handle.shutdown();
11428 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11430 }
11431}
11432
11433impl fidl::endpoints::Responder for SocketGetBindToDeviceResponder {
11434 type ControlHandle = SocketControlHandle;
11435
11436 fn control_handle(&self) -> &SocketControlHandle {
11437 &self.control_handle
11438 }
11439
11440 fn drop_without_shutdown(mut self) {
11441 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11443 std::mem::forget(self);
11445 }
11446}
11447
11448impl SocketGetBindToDeviceResponder {
11449 pub fn send(
11453 self,
11454 mut result: Result<&str, fidl_fuchsia_posix::Errno>,
11455 ) -> Result<(), fidl::Error> {
11456 let _result = self.send_raw(result);
11457 if _result.is_err() {
11458 self.control_handle.shutdown();
11459 }
11460 self.drop_without_shutdown();
11461 _result
11462 }
11463
11464 pub fn send_no_shutdown_on_err(
11466 self,
11467 mut result: Result<&str, fidl_fuchsia_posix::Errno>,
11468 ) -> Result<(), fidl::Error> {
11469 let _result = self.send_raw(result);
11470 self.drop_without_shutdown();
11471 _result
11472 }
11473
11474 fn send_raw(
11475 &self,
11476 mut result: Result<&str, fidl_fuchsia_posix::Errno>,
11477 ) -> Result<(), fidl::Error> {
11478 self.control_handle.inner.send::<fidl::encoding::ResultType<
11479 fidl_fuchsia_posix_socket::BaseSocketGetBindToDeviceResponse,
11480 fidl_fuchsia_posix::Errno,
11481 >>(
11482 result.map(|value| (value,)),
11483 self.tx_id,
11484 0x1ab1fbf0ef7906c8,
11485 fidl::encoding::DynamicFlags::empty(),
11486 )
11487 }
11488}
11489
11490#[must_use = "FIDL methods require a response to be sent"]
11491#[derive(Debug)]
11492pub struct SocketSetBindToInterfaceIndexResponder {
11493 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11494 tx_id: u32,
11495}
11496
11497impl std::ops::Drop for SocketSetBindToInterfaceIndexResponder {
11501 fn drop(&mut self) {
11502 self.control_handle.shutdown();
11503 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11505 }
11506}
11507
11508impl fidl::endpoints::Responder for SocketSetBindToInterfaceIndexResponder {
11509 type ControlHandle = SocketControlHandle;
11510
11511 fn control_handle(&self) -> &SocketControlHandle {
11512 &self.control_handle
11513 }
11514
11515 fn drop_without_shutdown(mut self) {
11516 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11518 std::mem::forget(self);
11520 }
11521}
11522
11523impl SocketSetBindToInterfaceIndexResponder {
11524 pub fn send(
11528 self,
11529 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11530 ) -> Result<(), fidl::Error> {
11531 let _result = self.send_raw(result);
11532 if _result.is_err() {
11533 self.control_handle.shutdown();
11534 }
11535 self.drop_without_shutdown();
11536 _result
11537 }
11538
11539 pub fn send_no_shutdown_on_err(
11541 self,
11542 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11543 ) -> Result<(), fidl::Error> {
11544 let _result = self.send_raw(result);
11545 self.drop_without_shutdown();
11546 _result
11547 }
11548
11549 fn send_raw(
11550 &self,
11551 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11552 ) -> Result<(), fidl::Error> {
11553 self.control_handle.inner.send::<fidl::encoding::ResultType<
11554 fidl::encoding::EmptyStruct,
11555 fidl_fuchsia_posix::Errno,
11556 >>(
11557 result,
11558 self.tx_id,
11559 0x6e387a0def00821,
11560 fidl::encoding::DynamicFlags::empty(),
11561 )
11562 }
11563}
11564
11565#[must_use = "FIDL methods require a response to be sent"]
11566#[derive(Debug)]
11567pub struct SocketGetBindToInterfaceIndexResponder {
11568 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11569 tx_id: u32,
11570}
11571
11572impl std::ops::Drop for SocketGetBindToInterfaceIndexResponder {
11576 fn drop(&mut self) {
11577 self.control_handle.shutdown();
11578 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11580 }
11581}
11582
11583impl fidl::endpoints::Responder for SocketGetBindToInterfaceIndexResponder {
11584 type ControlHandle = SocketControlHandle;
11585
11586 fn control_handle(&self) -> &SocketControlHandle {
11587 &self.control_handle
11588 }
11589
11590 fn drop_without_shutdown(mut self) {
11591 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11593 std::mem::forget(self);
11595 }
11596}
11597
11598impl SocketGetBindToInterfaceIndexResponder {
11599 pub fn send(
11603 self,
11604 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
11605 ) -> Result<(), fidl::Error> {
11606 let _result = self.send_raw(result);
11607 if _result.is_err() {
11608 self.control_handle.shutdown();
11609 }
11610 self.drop_without_shutdown();
11611 _result
11612 }
11613
11614 pub fn send_no_shutdown_on_err(
11616 self,
11617 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
11618 ) -> Result<(), fidl::Error> {
11619 let _result = self.send_raw(result);
11620 self.drop_without_shutdown();
11621 _result
11622 }
11623
11624 fn send_raw(
11625 &self,
11626 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
11627 ) -> Result<(), fidl::Error> {
11628 self.control_handle.inner.send::<fidl::encoding::ResultType<
11629 fidl_fuchsia_posix_socket::BaseSocketGetBindToInterfaceIndexResponse,
11630 fidl_fuchsia_posix::Errno,
11631 >>(
11632 result.map(|value| (value,)),
11633 self.tx_id,
11634 0x59c31dd3e3078295,
11635 fidl::encoding::DynamicFlags::empty(),
11636 )
11637 }
11638}
11639
11640#[must_use = "FIDL methods require a response to be sent"]
11641#[derive(Debug)]
11642pub struct SocketSetTimestampResponder {
11643 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11644 tx_id: u32,
11645}
11646
11647impl std::ops::Drop for SocketSetTimestampResponder {
11651 fn drop(&mut self) {
11652 self.control_handle.shutdown();
11653 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11655 }
11656}
11657
11658impl fidl::endpoints::Responder for SocketSetTimestampResponder {
11659 type ControlHandle = SocketControlHandle;
11660
11661 fn control_handle(&self) -> &SocketControlHandle {
11662 &self.control_handle
11663 }
11664
11665 fn drop_without_shutdown(mut self) {
11666 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11668 std::mem::forget(self);
11670 }
11671}
11672
11673impl SocketSetTimestampResponder {
11674 pub fn send(
11678 self,
11679 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11680 ) -> Result<(), fidl::Error> {
11681 let _result = self.send_raw(result);
11682 if _result.is_err() {
11683 self.control_handle.shutdown();
11684 }
11685 self.drop_without_shutdown();
11686 _result
11687 }
11688
11689 pub fn send_no_shutdown_on_err(
11691 self,
11692 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11693 ) -> Result<(), fidl::Error> {
11694 let _result = self.send_raw(result);
11695 self.drop_without_shutdown();
11696 _result
11697 }
11698
11699 fn send_raw(
11700 &self,
11701 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11702 ) -> Result<(), fidl::Error> {
11703 self.control_handle.inner.send::<fidl::encoding::ResultType<
11704 fidl::encoding::EmptyStruct,
11705 fidl_fuchsia_posix::Errno,
11706 >>(
11707 result,
11708 self.tx_id,
11709 0x285d6516c263d839,
11710 fidl::encoding::DynamicFlags::empty(),
11711 )
11712 }
11713}
11714
11715#[must_use = "FIDL methods require a response to be sent"]
11716#[derive(Debug)]
11717pub struct SocketGetTimestampResponder {
11718 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11719 tx_id: u32,
11720}
11721
11722impl std::ops::Drop for SocketGetTimestampResponder {
11726 fn drop(&mut self) {
11727 self.control_handle.shutdown();
11728 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11730 }
11731}
11732
11733impl fidl::endpoints::Responder for SocketGetTimestampResponder {
11734 type ControlHandle = SocketControlHandle;
11735
11736 fn control_handle(&self) -> &SocketControlHandle {
11737 &self.control_handle
11738 }
11739
11740 fn drop_without_shutdown(mut self) {
11741 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11743 std::mem::forget(self);
11745 }
11746}
11747
11748impl SocketGetTimestampResponder {
11749 pub fn send(
11753 self,
11754 mut result: Result<fidl_fuchsia_posix_socket::TimestampOption, fidl_fuchsia_posix::Errno>,
11755 ) -> Result<(), fidl::Error> {
11756 let _result = self.send_raw(result);
11757 if _result.is_err() {
11758 self.control_handle.shutdown();
11759 }
11760 self.drop_without_shutdown();
11761 _result
11762 }
11763
11764 pub fn send_no_shutdown_on_err(
11766 self,
11767 mut result: Result<fidl_fuchsia_posix_socket::TimestampOption, fidl_fuchsia_posix::Errno>,
11768 ) -> Result<(), fidl::Error> {
11769 let _result = self.send_raw(result);
11770 self.drop_without_shutdown();
11771 _result
11772 }
11773
11774 fn send_raw(
11775 &self,
11776 mut result: Result<fidl_fuchsia_posix_socket::TimestampOption, fidl_fuchsia_posix::Errno>,
11777 ) -> Result<(), fidl::Error> {
11778 self.control_handle.inner.send::<fidl::encoding::ResultType<
11779 fidl_fuchsia_posix_socket::BaseSocketGetTimestampResponse,
11780 fidl_fuchsia_posix::Errno,
11781 >>(
11782 result.map(|value| (value,)),
11783 self.tx_id,
11784 0x49f2fffbbcc2bd27,
11785 fidl::encoding::DynamicFlags::empty(),
11786 )
11787 }
11788}
11789
11790#[must_use = "FIDL methods require a response to be sent"]
11791#[derive(Debug)]
11792pub struct SocketSetMarkResponder {
11793 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11794 tx_id: u32,
11795}
11796
11797impl std::ops::Drop for SocketSetMarkResponder {
11801 fn drop(&mut self) {
11802 self.control_handle.shutdown();
11803 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11805 }
11806}
11807
11808impl fidl::endpoints::Responder for SocketSetMarkResponder {
11809 type ControlHandle = SocketControlHandle;
11810
11811 fn control_handle(&self) -> &SocketControlHandle {
11812 &self.control_handle
11813 }
11814
11815 fn drop_without_shutdown(mut self) {
11816 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11818 std::mem::forget(self);
11820 }
11821}
11822
11823impl SocketSetMarkResponder {
11824 pub fn send(
11828 self,
11829 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11830 ) -> Result<(), fidl::Error> {
11831 let _result = self.send_raw(result);
11832 if _result.is_err() {
11833 self.control_handle.shutdown();
11834 }
11835 self.drop_without_shutdown();
11836 _result
11837 }
11838
11839 pub fn send_no_shutdown_on_err(
11841 self,
11842 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11843 ) -> Result<(), fidl::Error> {
11844 let _result = self.send_raw(result);
11845 self.drop_without_shutdown();
11846 _result
11847 }
11848
11849 fn send_raw(
11850 &self,
11851 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11852 ) -> Result<(), fidl::Error> {
11853 self.control_handle.inner.send::<fidl::encoding::ResultType<
11854 fidl::encoding::EmptyStruct,
11855 fidl_fuchsia_posix::Errno,
11856 >>(
11857 result,
11858 self.tx_id,
11859 0x6ead6de09f653236,
11860 fidl::encoding::DynamicFlags::empty(),
11861 )
11862 }
11863}
11864
11865#[must_use = "FIDL methods require a response to be sent"]
11866#[derive(Debug)]
11867pub struct SocketGetMarkResponder {
11868 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11869 tx_id: u32,
11870}
11871
11872impl std::ops::Drop for SocketGetMarkResponder {
11876 fn drop(&mut self) {
11877 self.control_handle.shutdown();
11878 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11880 }
11881}
11882
11883impl fidl::endpoints::Responder for SocketGetMarkResponder {
11884 type ControlHandle = SocketControlHandle;
11885
11886 fn control_handle(&self) -> &SocketControlHandle {
11887 &self.control_handle
11888 }
11889
11890 fn drop_without_shutdown(mut self) {
11891 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11893 std::mem::forget(self);
11895 }
11896}
11897
11898impl SocketGetMarkResponder {
11899 pub fn send(
11903 self,
11904 mut result: Result<&fidl_fuchsia_posix_socket::OptionalUint32, fidl_fuchsia_posix::Errno>,
11905 ) -> Result<(), fidl::Error> {
11906 let _result = self.send_raw(result);
11907 if _result.is_err() {
11908 self.control_handle.shutdown();
11909 }
11910 self.drop_without_shutdown();
11911 _result
11912 }
11913
11914 pub fn send_no_shutdown_on_err(
11916 self,
11917 mut result: Result<&fidl_fuchsia_posix_socket::OptionalUint32, fidl_fuchsia_posix::Errno>,
11918 ) -> Result<(), fidl::Error> {
11919 let _result = self.send_raw(result);
11920 self.drop_without_shutdown();
11921 _result
11922 }
11923
11924 fn send_raw(
11925 &self,
11926 mut result: Result<&fidl_fuchsia_posix_socket::OptionalUint32, fidl_fuchsia_posix::Errno>,
11927 ) -> Result<(), fidl::Error> {
11928 self.control_handle.inner.send::<fidl::encoding::ResultType<
11929 fidl_fuchsia_posix_socket::BaseSocketGetMarkResponse,
11930 fidl_fuchsia_posix::Errno,
11931 >>(
11932 result.map(|mark| (mark,)),
11933 self.tx_id,
11934 0x57a2752c61d93d47,
11935 fidl::encoding::DynamicFlags::empty(),
11936 )
11937 }
11938}
11939
11940#[must_use = "FIDL methods require a response to be sent"]
11941#[derive(Debug)]
11942pub struct SocketBindResponder {
11943 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
11944 tx_id: u32,
11945}
11946
11947impl std::ops::Drop for SocketBindResponder {
11951 fn drop(&mut self) {
11952 self.control_handle.shutdown();
11953 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11955 }
11956}
11957
11958impl fidl::endpoints::Responder for SocketBindResponder {
11959 type ControlHandle = SocketControlHandle;
11960
11961 fn control_handle(&self) -> &SocketControlHandle {
11962 &self.control_handle
11963 }
11964
11965 fn drop_without_shutdown(mut self) {
11966 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
11968 std::mem::forget(self);
11970 }
11971}
11972
11973impl SocketBindResponder {
11974 pub fn send(
11978 self,
11979 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11980 ) -> Result<(), fidl::Error> {
11981 let _result = self.send_raw(result);
11982 if _result.is_err() {
11983 self.control_handle.shutdown();
11984 }
11985 self.drop_without_shutdown();
11986 _result
11987 }
11988
11989 pub fn send_no_shutdown_on_err(
11991 self,
11992 mut result: Result<(), fidl_fuchsia_posix::Errno>,
11993 ) -> Result<(), fidl::Error> {
11994 let _result = self.send_raw(result);
11995 self.drop_without_shutdown();
11996 _result
11997 }
11998
11999 fn send_raw(
12000 &self,
12001 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12002 ) -> Result<(), fidl::Error> {
12003 self.control_handle.inner.send::<fidl::encoding::ResultType<
12004 fidl::encoding::EmptyStruct,
12005 fidl_fuchsia_posix::Errno,
12006 >>(
12007 result,
12008 self.tx_id,
12009 0x4bc6400ae92125d,
12010 fidl::encoding::DynamicFlags::empty(),
12011 )
12012 }
12013}
12014
12015#[must_use = "FIDL methods require a response to be sent"]
12016#[derive(Debug)]
12017pub struct SocketConnectResponder {
12018 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12019 tx_id: u32,
12020}
12021
12022impl std::ops::Drop for SocketConnectResponder {
12026 fn drop(&mut self) {
12027 self.control_handle.shutdown();
12028 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12030 }
12031}
12032
12033impl fidl::endpoints::Responder for SocketConnectResponder {
12034 type ControlHandle = SocketControlHandle;
12035
12036 fn control_handle(&self) -> &SocketControlHandle {
12037 &self.control_handle
12038 }
12039
12040 fn drop_without_shutdown(mut self) {
12041 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12043 std::mem::forget(self);
12045 }
12046}
12047
12048impl SocketConnectResponder {
12049 pub fn send(
12053 self,
12054 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12055 ) -> Result<(), fidl::Error> {
12056 let _result = self.send_raw(result);
12057 if _result.is_err() {
12058 self.control_handle.shutdown();
12059 }
12060 self.drop_without_shutdown();
12061 _result
12062 }
12063
12064 pub fn send_no_shutdown_on_err(
12066 self,
12067 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12068 ) -> Result<(), fidl::Error> {
12069 let _result = self.send_raw(result);
12070 self.drop_without_shutdown();
12071 _result
12072 }
12073
12074 fn send_raw(
12075 &self,
12076 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12077 ) -> Result<(), fidl::Error> {
12078 self.control_handle.inner.send::<fidl::encoding::ResultType<
12079 fidl::encoding::EmptyStruct,
12080 fidl_fuchsia_posix::Errno,
12081 >>(
12082 result,
12083 self.tx_id,
12084 0x5f05f19bfdd38871,
12085 fidl::encoding::DynamicFlags::empty(),
12086 )
12087 }
12088}
12089
12090#[must_use = "FIDL methods require a response to be sent"]
12091#[derive(Debug)]
12092pub struct SocketDisconnectResponder {
12093 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12094 tx_id: u32,
12095}
12096
12097impl std::ops::Drop for SocketDisconnectResponder {
12101 fn drop(&mut self) {
12102 self.control_handle.shutdown();
12103 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12105 }
12106}
12107
12108impl fidl::endpoints::Responder for SocketDisconnectResponder {
12109 type ControlHandle = SocketControlHandle;
12110
12111 fn control_handle(&self) -> &SocketControlHandle {
12112 &self.control_handle
12113 }
12114
12115 fn drop_without_shutdown(mut self) {
12116 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12118 std::mem::forget(self);
12120 }
12121}
12122
12123impl SocketDisconnectResponder {
12124 pub fn send(
12128 self,
12129 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12130 ) -> Result<(), fidl::Error> {
12131 let _result = self.send_raw(result);
12132 if _result.is_err() {
12133 self.control_handle.shutdown();
12134 }
12135 self.drop_without_shutdown();
12136 _result
12137 }
12138
12139 pub fn send_no_shutdown_on_err(
12141 self,
12142 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12143 ) -> Result<(), fidl::Error> {
12144 let _result = self.send_raw(result);
12145 self.drop_without_shutdown();
12146 _result
12147 }
12148
12149 fn send_raw(
12150 &self,
12151 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12152 ) -> Result<(), fidl::Error> {
12153 self.control_handle.inner.send::<fidl::encoding::ResultType<
12154 fidl::encoding::EmptyStruct,
12155 fidl_fuchsia_posix::Errno,
12156 >>(
12157 result,
12158 self.tx_id,
12159 0x74e63b91f7b29b2,
12160 fidl::encoding::DynamicFlags::empty(),
12161 )
12162 }
12163}
12164
12165#[must_use = "FIDL methods require a response to be sent"]
12166#[derive(Debug)]
12167pub struct SocketGetSockNameResponder {
12168 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12169 tx_id: u32,
12170}
12171
12172impl std::ops::Drop for SocketGetSockNameResponder {
12176 fn drop(&mut self) {
12177 self.control_handle.shutdown();
12178 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12180 }
12181}
12182
12183impl fidl::endpoints::Responder for SocketGetSockNameResponder {
12184 type ControlHandle = SocketControlHandle;
12185
12186 fn control_handle(&self) -> &SocketControlHandle {
12187 &self.control_handle
12188 }
12189
12190 fn drop_without_shutdown(mut self) {
12191 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12193 std::mem::forget(self);
12195 }
12196}
12197
12198impl SocketGetSockNameResponder {
12199 pub fn send(
12203 self,
12204 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
12205 ) -> Result<(), fidl::Error> {
12206 let _result = self.send_raw(result);
12207 if _result.is_err() {
12208 self.control_handle.shutdown();
12209 }
12210 self.drop_without_shutdown();
12211 _result
12212 }
12213
12214 pub fn send_no_shutdown_on_err(
12216 self,
12217 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
12218 ) -> Result<(), fidl::Error> {
12219 let _result = self.send_raw(result);
12220 self.drop_without_shutdown();
12221 _result
12222 }
12223
12224 fn send_raw(
12225 &self,
12226 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
12227 ) -> Result<(), fidl::Error> {
12228 self.control_handle.inner.send::<fidl::encoding::ResultType<
12229 fidl_fuchsia_posix_socket::BaseNetworkSocketGetSockNameResponse,
12230 fidl_fuchsia_posix::Errno,
12231 >>(
12232 result.map(|addr| (addr,)),
12233 self.tx_id,
12234 0x475f23f84a1a4f85,
12235 fidl::encoding::DynamicFlags::empty(),
12236 )
12237 }
12238}
12239
12240#[must_use = "FIDL methods require a response to be sent"]
12241#[derive(Debug)]
12242pub struct SocketGetPeerNameResponder {
12243 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12244 tx_id: u32,
12245}
12246
12247impl std::ops::Drop for SocketGetPeerNameResponder {
12251 fn drop(&mut self) {
12252 self.control_handle.shutdown();
12253 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12255 }
12256}
12257
12258impl fidl::endpoints::Responder for SocketGetPeerNameResponder {
12259 type ControlHandle = SocketControlHandle;
12260
12261 fn control_handle(&self) -> &SocketControlHandle {
12262 &self.control_handle
12263 }
12264
12265 fn drop_without_shutdown(mut self) {
12266 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12268 std::mem::forget(self);
12270 }
12271}
12272
12273impl SocketGetPeerNameResponder {
12274 pub fn send(
12278 self,
12279 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
12280 ) -> Result<(), fidl::Error> {
12281 let _result = self.send_raw(result);
12282 if _result.is_err() {
12283 self.control_handle.shutdown();
12284 }
12285 self.drop_without_shutdown();
12286 _result
12287 }
12288
12289 pub fn send_no_shutdown_on_err(
12291 self,
12292 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
12293 ) -> Result<(), fidl::Error> {
12294 let _result = self.send_raw(result);
12295 self.drop_without_shutdown();
12296 _result
12297 }
12298
12299 fn send_raw(
12300 &self,
12301 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
12302 ) -> Result<(), fidl::Error> {
12303 self.control_handle.inner.send::<fidl::encoding::ResultType<
12304 fidl_fuchsia_posix_socket::BaseNetworkSocketGetPeerNameResponse,
12305 fidl_fuchsia_posix::Errno,
12306 >>(
12307 result.map(|addr| (addr,)),
12308 self.tx_id,
12309 0x1ffecf4bd5b6432e,
12310 fidl::encoding::DynamicFlags::empty(),
12311 )
12312 }
12313}
12314
12315#[must_use = "FIDL methods require a response to be sent"]
12316#[derive(Debug)]
12317pub struct SocketShutdownResponder {
12318 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12319 tx_id: u32,
12320}
12321
12322impl std::ops::Drop for SocketShutdownResponder {
12326 fn drop(&mut self) {
12327 self.control_handle.shutdown();
12328 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12330 }
12331}
12332
12333impl fidl::endpoints::Responder for SocketShutdownResponder {
12334 type ControlHandle = SocketControlHandle;
12335
12336 fn control_handle(&self) -> &SocketControlHandle {
12337 &self.control_handle
12338 }
12339
12340 fn drop_without_shutdown(mut self) {
12341 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12343 std::mem::forget(self);
12345 }
12346}
12347
12348impl SocketShutdownResponder {
12349 pub fn send(
12353 self,
12354 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12355 ) -> Result<(), fidl::Error> {
12356 let _result = self.send_raw(result);
12357 if _result.is_err() {
12358 self.control_handle.shutdown();
12359 }
12360 self.drop_without_shutdown();
12361 _result
12362 }
12363
12364 pub fn send_no_shutdown_on_err(
12366 self,
12367 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12368 ) -> Result<(), fidl::Error> {
12369 let _result = self.send_raw(result);
12370 self.drop_without_shutdown();
12371 _result
12372 }
12373
12374 fn send_raw(
12375 &self,
12376 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12377 ) -> Result<(), fidl::Error> {
12378 self.control_handle.inner.send::<fidl::encoding::ResultType<
12379 fidl::encoding::EmptyStruct,
12380 fidl_fuchsia_posix::Errno,
12381 >>(
12382 result,
12383 self.tx_id,
12384 0x247f38b6db68c336,
12385 fidl::encoding::DynamicFlags::empty(),
12386 )
12387 }
12388}
12389
12390#[must_use = "FIDL methods require a response to be sent"]
12391#[derive(Debug)]
12392pub struct SocketSetIpTypeOfServiceResponder {
12393 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12394 tx_id: u32,
12395}
12396
12397impl std::ops::Drop for SocketSetIpTypeOfServiceResponder {
12401 fn drop(&mut self) {
12402 self.control_handle.shutdown();
12403 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12405 }
12406}
12407
12408impl fidl::endpoints::Responder for SocketSetIpTypeOfServiceResponder {
12409 type ControlHandle = SocketControlHandle;
12410
12411 fn control_handle(&self) -> &SocketControlHandle {
12412 &self.control_handle
12413 }
12414
12415 fn drop_without_shutdown(mut self) {
12416 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12418 std::mem::forget(self);
12420 }
12421}
12422
12423impl SocketSetIpTypeOfServiceResponder {
12424 pub fn send(
12428 self,
12429 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12430 ) -> Result<(), fidl::Error> {
12431 let _result = self.send_raw(result);
12432 if _result.is_err() {
12433 self.control_handle.shutdown();
12434 }
12435 self.drop_without_shutdown();
12436 _result
12437 }
12438
12439 pub fn send_no_shutdown_on_err(
12441 self,
12442 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12443 ) -> Result<(), fidl::Error> {
12444 let _result = self.send_raw(result);
12445 self.drop_without_shutdown();
12446 _result
12447 }
12448
12449 fn send_raw(
12450 &self,
12451 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12452 ) -> Result<(), fidl::Error> {
12453 self.control_handle.inner.send::<fidl::encoding::ResultType<
12454 fidl::encoding::EmptyStruct,
12455 fidl_fuchsia_posix::Errno,
12456 >>(
12457 result,
12458 self.tx_id,
12459 0x995c600475b6d46,
12460 fidl::encoding::DynamicFlags::empty(),
12461 )
12462 }
12463}
12464
12465#[must_use = "FIDL methods require a response to be sent"]
12466#[derive(Debug)]
12467pub struct SocketGetIpTypeOfServiceResponder {
12468 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12469 tx_id: u32,
12470}
12471
12472impl std::ops::Drop for SocketGetIpTypeOfServiceResponder {
12476 fn drop(&mut self) {
12477 self.control_handle.shutdown();
12478 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12480 }
12481}
12482
12483impl fidl::endpoints::Responder for SocketGetIpTypeOfServiceResponder {
12484 type ControlHandle = SocketControlHandle;
12485
12486 fn control_handle(&self) -> &SocketControlHandle {
12487 &self.control_handle
12488 }
12489
12490 fn drop_without_shutdown(mut self) {
12491 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12493 std::mem::forget(self);
12495 }
12496}
12497
12498impl SocketGetIpTypeOfServiceResponder {
12499 pub fn send(
12503 self,
12504 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
12505 ) -> Result<(), fidl::Error> {
12506 let _result = self.send_raw(result);
12507 if _result.is_err() {
12508 self.control_handle.shutdown();
12509 }
12510 self.drop_without_shutdown();
12511 _result
12512 }
12513
12514 pub fn send_no_shutdown_on_err(
12516 self,
12517 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
12518 ) -> Result<(), fidl::Error> {
12519 let _result = self.send_raw(result);
12520 self.drop_without_shutdown();
12521 _result
12522 }
12523
12524 fn send_raw(
12525 &self,
12526 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
12527 ) -> Result<(), fidl::Error> {
12528 self.control_handle.inner.send::<fidl::encoding::ResultType<
12529 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTypeOfServiceResponse,
12530 fidl_fuchsia_posix::Errno,
12531 >>(
12532 result.map(|value| (value,)),
12533 self.tx_id,
12534 0x3814a04259f75fcb,
12535 fidl::encoding::DynamicFlags::empty(),
12536 )
12537 }
12538}
12539
12540#[must_use = "FIDL methods require a response to be sent"]
12541#[derive(Debug)]
12542pub struct SocketSetIpTtlResponder {
12543 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12544 tx_id: u32,
12545}
12546
12547impl std::ops::Drop for SocketSetIpTtlResponder {
12551 fn drop(&mut self) {
12552 self.control_handle.shutdown();
12553 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12555 }
12556}
12557
12558impl fidl::endpoints::Responder for SocketSetIpTtlResponder {
12559 type ControlHandle = SocketControlHandle;
12560
12561 fn control_handle(&self) -> &SocketControlHandle {
12562 &self.control_handle
12563 }
12564
12565 fn drop_without_shutdown(mut self) {
12566 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12568 std::mem::forget(self);
12570 }
12571}
12572
12573impl SocketSetIpTtlResponder {
12574 pub fn send(
12578 self,
12579 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12580 ) -> Result<(), fidl::Error> {
12581 let _result = self.send_raw(result);
12582 if _result.is_err() {
12583 self.control_handle.shutdown();
12584 }
12585 self.drop_without_shutdown();
12586 _result
12587 }
12588
12589 pub fn send_no_shutdown_on_err(
12591 self,
12592 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12593 ) -> Result<(), fidl::Error> {
12594 let _result = self.send_raw(result);
12595 self.drop_without_shutdown();
12596 _result
12597 }
12598
12599 fn send_raw(
12600 &self,
12601 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12602 ) -> Result<(), fidl::Error> {
12603 self.control_handle.inner.send::<fidl::encoding::ResultType<
12604 fidl::encoding::EmptyStruct,
12605 fidl_fuchsia_posix::Errno,
12606 >>(
12607 result,
12608 self.tx_id,
12609 0x29e2424b433ae1ef,
12610 fidl::encoding::DynamicFlags::empty(),
12611 )
12612 }
12613}
12614
12615#[must_use = "FIDL methods require a response to be sent"]
12616#[derive(Debug)]
12617pub struct SocketGetIpTtlResponder {
12618 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12619 tx_id: u32,
12620}
12621
12622impl std::ops::Drop for SocketGetIpTtlResponder {
12626 fn drop(&mut self) {
12627 self.control_handle.shutdown();
12628 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12630 }
12631}
12632
12633impl fidl::endpoints::Responder for SocketGetIpTtlResponder {
12634 type ControlHandle = SocketControlHandle;
12635
12636 fn control_handle(&self) -> &SocketControlHandle {
12637 &self.control_handle
12638 }
12639
12640 fn drop_without_shutdown(mut self) {
12641 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12643 std::mem::forget(self);
12645 }
12646}
12647
12648impl SocketGetIpTtlResponder {
12649 pub fn send(
12653 self,
12654 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
12655 ) -> Result<(), fidl::Error> {
12656 let _result = self.send_raw(result);
12657 if _result.is_err() {
12658 self.control_handle.shutdown();
12659 }
12660 self.drop_without_shutdown();
12661 _result
12662 }
12663
12664 pub fn send_no_shutdown_on_err(
12666 self,
12667 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
12668 ) -> Result<(), fidl::Error> {
12669 let _result = self.send_raw(result);
12670 self.drop_without_shutdown();
12671 _result
12672 }
12673
12674 fn send_raw(
12675 &self,
12676 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
12677 ) -> Result<(), fidl::Error> {
12678 self.control_handle.inner.send::<fidl::encoding::ResultType<
12679 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTtlResponse,
12680 fidl_fuchsia_posix::Errno,
12681 >>(
12682 result.map(|value| (value,)),
12683 self.tx_id,
12684 0x47e47fa1f24da471,
12685 fidl::encoding::DynamicFlags::empty(),
12686 )
12687 }
12688}
12689
12690#[must_use = "FIDL methods require a response to be sent"]
12691#[derive(Debug)]
12692pub struct SocketSetIpPacketInfoResponder {
12693 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12694 tx_id: u32,
12695}
12696
12697impl std::ops::Drop for SocketSetIpPacketInfoResponder {
12701 fn drop(&mut self) {
12702 self.control_handle.shutdown();
12703 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12705 }
12706}
12707
12708impl fidl::endpoints::Responder for SocketSetIpPacketInfoResponder {
12709 type ControlHandle = SocketControlHandle;
12710
12711 fn control_handle(&self) -> &SocketControlHandle {
12712 &self.control_handle
12713 }
12714
12715 fn drop_without_shutdown(mut self) {
12716 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12718 std::mem::forget(self);
12720 }
12721}
12722
12723impl SocketSetIpPacketInfoResponder {
12724 pub fn send(
12728 self,
12729 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12730 ) -> Result<(), fidl::Error> {
12731 let _result = self.send_raw(result);
12732 if _result.is_err() {
12733 self.control_handle.shutdown();
12734 }
12735 self.drop_without_shutdown();
12736 _result
12737 }
12738
12739 pub fn send_no_shutdown_on_err(
12741 self,
12742 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12743 ) -> Result<(), fidl::Error> {
12744 let _result = self.send_raw(result);
12745 self.drop_without_shutdown();
12746 _result
12747 }
12748
12749 fn send_raw(
12750 &self,
12751 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12752 ) -> Result<(), fidl::Error> {
12753 self.control_handle.inner.send::<fidl::encoding::ResultType<
12754 fidl::encoding::EmptyStruct,
12755 fidl_fuchsia_posix::Errno,
12756 >>(
12757 result,
12758 self.tx_id,
12759 0x392d16bee20c0e16,
12760 fidl::encoding::DynamicFlags::empty(),
12761 )
12762 }
12763}
12764
12765#[must_use = "FIDL methods require a response to be sent"]
12766#[derive(Debug)]
12767pub struct SocketGetIpPacketInfoResponder {
12768 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12769 tx_id: u32,
12770}
12771
12772impl std::ops::Drop for SocketGetIpPacketInfoResponder {
12776 fn drop(&mut self) {
12777 self.control_handle.shutdown();
12778 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12780 }
12781}
12782
12783impl fidl::endpoints::Responder for SocketGetIpPacketInfoResponder {
12784 type ControlHandle = SocketControlHandle;
12785
12786 fn control_handle(&self) -> &SocketControlHandle {
12787 &self.control_handle
12788 }
12789
12790 fn drop_without_shutdown(mut self) {
12791 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12793 std::mem::forget(self);
12795 }
12796}
12797
12798impl SocketGetIpPacketInfoResponder {
12799 pub fn send(
12803 self,
12804 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
12805 ) -> Result<(), fidl::Error> {
12806 let _result = self.send_raw(result);
12807 if _result.is_err() {
12808 self.control_handle.shutdown();
12809 }
12810 self.drop_without_shutdown();
12811 _result
12812 }
12813
12814 pub fn send_no_shutdown_on_err(
12816 self,
12817 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
12818 ) -> Result<(), fidl::Error> {
12819 let _result = self.send_raw(result);
12820 self.drop_without_shutdown();
12821 _result
12822 }
12823
12824 fn send_raw(
12825 &self,
12826 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
12827 ) -> Result<(), fidl::Error> {
12828 self.control_handle.inner.send::<fidl::encoding::ResultType<
12829 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpPacketInfoResponse,
12830 fidl_fuchsia_posix::Errno,
12831 >>(
12832 result.map(|value| (value,)),
12833 self.tx_id,
12834 0x54b505f242280740,
12835 fidl::encoding::DynamicFlags::empty(),
12836 )
12837 }
12838}
12839
12840#[must_use = "FIDL methods require a response to be sent"]
12841#[derive(Debug)]
12842pub struct SocketSetIpReceiveTypeOfServiceResponder {
12843 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12844 tx_id: u32,
12845}
12846
12847impl std::ops::Drop for SocketSetIpReceiveTypeOfServiceResponder {
12851 fn drop(&mut self) {
12852 self.control_handle.shutdown();
12853 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12855 }
12856}
12857
12858impl fidl::endpoints::Responder for SocketSetIpReceiveTypeOfServiceResponder {
12859 type ControlHandle = SocketControlHandle;
12860
12861 fn control_handle(&self) -> &SocketControlHandle {
12862 &self.control_handle
12863 }
12864
12865 fn drop_without_shutdown(mut self) {
12866 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12868 std::mem::forget(self);
12870 }
12871}
12872
12873impl SocketSetIpReceiveTypeOfServiceResponder {
12874 pub fn send(
12878 self,
12879 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12880 ) -> Result<(), fidl::Error> {
12881 let _result = self.send_raw(result);
12882 if _result.is_err() {
12883 self.control_handle.shutdown();
12884 }
12885 self.drop_without_shutdown();
12886 _result
12887 }
12888
12889 pub fn send_no_shutdown_on_err(
12891 self,
12892 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12893 ) -> Result<(), fidl::Error> {
12894 let _result = self.send_raw(result);
12895 self.drop_without_shutdown();
12896 _result
12897 }
12898
12899 fn send_raw(
12900 &self,
12901 mut result: Result<(), fidl_fuchsia_posix::Errno>,
12902 ) -> Result<(), fidl::Error> {
12903 self.control_handle.inner.send::<fidl::encoding::ResultType<
12904 fidl::encoding::EmptyStruct,
12905 fidl_fuchsia_posix::Errno,
12906 >>(
12907 result,
12908 self.tx_id,
12909 0x6c4f6714995f84ef,
12910 fidl::encoding::DynamicFlags::empty(),
12911 )
12912 }
12913}
12914
12915#[must_use = "FIDL methods require a response to be sent"]
12916#[derive(Debug)]
12917pub struct SocketGetIpReceiveTypeOfServiceResponder {
12918 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12919 tx_id: u32,
12920}
12921
12922impl std::ops::Drop for SocketGetIpReceiveTypeOfServiceResponder {
12926 fn drop(&mut self) {
12927 self.control_handle.shutdown();
12928 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12930 }
12931}
12932
12933impl fidl::endpoints::Responder for SocketGetIpReceiveTypeOfServiceResponder {
12934 type ControlHandle = SocketControlHandle;
12935
12936 fn control_handle(&self) -> &SocketControlHandle {
12937 &self.control_handle
12938 }
12939
12940 fn drop_without_shutdown(mut self) {
12941 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
12943 std::mem::forget(self);
12945 }
12946}
12947
12948impl SocketGetIpReceiveTypeOfServiceResponder {
12949 pub fn send(
12953 self,
12954 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
12955 ) -> Result<(), fidl::Error> {
12956 let _result = self.send_raw(result);
12957 if _result.is_err() {
12958 self.control_handle.shutdown();
12959 }
12960 self.drop_without_shutdown();
12961 _result
12962 }
12963
12964 pub fn send_no_shutdown_on_err(
12966 self,
12967 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
12968 ) -> Result<(), fidl::Error> {
12969 let _result = self.send_raw(result);
12970 self.drop_without_shutdown();
12971 _result
12972 }
12973
12974 fn send_raw(
12975 &self,
12976 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
12977 ) -> Result<(), fidl::Error> {
12978 self.control_handle.inner.send::<fidl::encoding::ResultType<
12979 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTypeOfServiceResponse,
12980 fidl_fuchsia_posix::Errno,
12981 >>(
12982 result.map(|value| (value,)),
12983 self.tx_id,
12984 0x4158ba7dc2795960,
12985 fidl::encoding::DynamicFlags::empty(),
12986 )
12987 }
12988}
12989
12990#[must_use = "FIDL methods require a response to be sent"]
12991#[derive(Debug)]
12992pub struct SocketSetIpReceiveTtlResponder {
12993 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
12994 tx_id: u32,
12995}
12996
12997impl std::ops::Drop for SocketSetIpReceiveTtlResponder {
13001 fn drop(&mut self) {
13002 self.control_handle.shutdown();
13003 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13005 }
13006}
13007
13008impl fidl::endpoints::Responder for SocketSetIpReceiveTtlResponder {
13009 type ControlHandle = SocketControlHandle;
13010
13011 fn control_handle(&self) -> &SocketControlHandle {
13012 &self.control_handle
13013 }
13014
13015 fn drop_without_shutdown(mut self) {
13016 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13018 std::mem::forget(self);
13020 }
13021}
13022
13023impl SocketSetIpReceiveTtlResponder {
13024 pub fn send(
13028 self,
13029 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13030 ) -> Result<(), fidl::Error> {
13031 let _result = self.send_raw(result);
13032 if _result.is_err() {
13033 self.control_handle.shutdown();
13034 }
13035 self.drop_without_shutdown();
13036 _result
13037 }
13038
13039 pub fn send_no_shutdown_on_err(
13041 self,
13042 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13043 ) -> Result<(), fidl::Error> {
13044 let _result = self.send_raw(result);
13045 self.drop_without_shutdown();
13046 _result
13047 }
13048
13049 fn send_raw(
13050 &self,
13051 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13052 ) -> Result<(), fidl::Error> {
13053 self.control_handle.inner.send::<fidl::encoding::ResultType<
13054 fidl::encoding::EmptyStruct,
13055 fidl_fuchsia_posix::Errno,
13056 >>(
13057 result,
13058 self.tx_id,
13059 0x46f15be0ce0ab82b,
13060 fidl::encoding::DynamicFlags::empty(),
13061 )
13062 }
13063}
13064
13065#[must_use = "FIDL methods require a response to be sent"]
13066#[derive(Debug)]
13067pub struct SocketGetIpReceiveTtlResponder {
13068 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13069 tx_id: u32,
13070}
13071
13072impl std::ops::Drop for SocketGetIpReceiveTtlResponder {
13076 fn drop(&mut self) {
13077 self.control_handle.shutdown();
13078 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13080 }
13081}
13082
13083impl fidl::endpoints::Responder for SocketGetIpReceiveTtlResponder {
13084 type ControlHandle = SocketControlHandle;
13085
13086 fn control_handle(&self) -> &SocketControlHandle {
13087 &self.control_handle
13088 }
13089
13090 fn drop_without_shutdown(mut self) {
13091 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13093 std::mem::forget(self);
13095 }
13096}
13097
13098impl SocketGetIpReceiveTtlResponder {
13099 pub fn send(
13103 self,
13104 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13105 ) -> Result<(), fidl::Error> {
13106 let _result = self.send_raw(result);
13107 if _result.is_err() {
13108 self.control_handle.shutdown();
13109 }
13110 self.drop_without_shutdown();
13111 _result
13112 }
13113
13114 pub fn send_no_shutdown_on_err(
13116 self,
13117 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13118 ) -> Result<(), fidl::Error> {
13119 let _result = self.send_raw(result);
13120 self.drop_without_shutdown();
13121 _result
13122 }
13123
13124 fn send_raw(
13125 &self,
13126 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13127 ) -> Result<(), fidl::Error> {
13128 self.control_handle.inner.send::<fidl::encoding::ResultType<
13129 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveTtlResponse,
13130 fidl_fuchsia_posix::Errno,
13131 >>(
13132 result.map(|value| (value,)),
13133 self.tx_id,
13134 0x678ddd5a5dfa2eb5,
13135 fidl::encoding::DynamicFlags::empty(),
13136 )
13137 }
13138}
13139
13140#[must_use = "FIDL methods require a response to be sent"]
13141#[derive(Debug)]
13142pub struct SocketSetIpMulticastInterfaceResponder {
13143 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13144 tx_id: u32,
13145}
13146
13147impl std::ops::Drop for SocketSetIpMulticastInterfaceResponder {
13151 fn drop(&mut self) {
13152 self.control_handle.shutdown();
13153 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13155 }
13156}
13157
13158impl fidl::endpoints::Responder for SocketSetIpMulticastInterfaceResponder {
13159 type ControlHandle = SocketControlHandle;
13160
13161 fn control_handle(&self) -> &SocketControlHandle {
13162 &self.control_handle
13163 }
13164
13165 fn drop_without_shutdown(mut self) {
13166 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13168 std::mem::forget(self);
13170 }
13171}
13172
13173impl SocketSetIpMulticastInterfaceResponder {
13174 pub fn send(
13178 self,
13179 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13180 ) -> Result<(), fidl::Error> {
13181 let _result = self.send_raw(result);
13182 if _result.is_err() {
13183 self.control_handle.shutdown();
13184 }
13185 self.drop_without_shutdown();
13186 _result
13187 }
13188
13189 pub fn send_no_shutdown_on_err(
13191 self,
13192 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13193 ) -> Result<(), fidl::Error> {
13194 let _result = self.send_raw(result);
13195 self.drop_without_shutdown();
13196 _result
13197 }
13198
13199 fn send_raw(
13200 &self,
13201 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13202 ) -> Result<(), fidl::Error> {
13203 self.control_handle.inner.send::<fidl::encoding::ResultType<
13204 fidl::encoding::EmptyStruct,
13205 fidl_fuchsia_posix::Errno,
13206 >>(
13207 result,
13208 self.tx_id,
13209 0x752fbfa9b12befe,
13210 fidl::encoding::DynamicFlags::empty(),
13211 )
13212 }
13213}
13214
13215#[must_use = "FIDL methods require a response to be sent"]
13216#[derive(Debug)]
13217pub struct SocketGetIpMulticastInterfaceResponder {
13218 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13219 tx_id: u32,
13220}
13221
13222impl std::ops::Drop for SocketGetIpMulticastInterfaceResponder {
13226 fn drop(&mut self) {
13227 self.control_handle.shutdown();
13228 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13230 }
13231}
13232
13233impl fidl::endpoints::Responder for SocketGetIpMulticastInterfaceResponder {
13234 type ControlHandle = SocketControlHandle;
13235
13236 fn control_handle(&self) -> &SocketControlHandle {
13237 &self.control_handle
13238 }
13239
13240 fn drop_without_shutdown(mut self) {
13241 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13243 std::mem::forget(self);
13245 }
13246}
13247
13248impl SocketGetIpMulticastInterfaceResponder {
13249 pub fn send(
13253 self,
13254 mut result: Result<&fidl_fuchsia_net::Ipv4Address, fidl_fuchsia_posix::Errno>,
13255 ) -> Result<(), fidl::Error> {
13256 let _result = self.send_raw(result);
13257 if _result.is_err() {
13258 self.control_handle.shutdown();
13259 }
13260 self.drop_without_shutdown();
13261 _result
13262 }
13263
13264 pub fn send_no_shutdown_on_err(
13266 self,
13267 mut result: Result<&fidl_fuchsia_net::Ipv4Address, fidl_fuchsia_posix::Errno>,
13268 ) -> Result<(), fidl::Error> {
13269 let _result = self.send_raw(result);
13270 self.drop_without_shutdown();
13271 _result
13272 }
13273
13274 fn send_raw(
13275 &self,
13276 mut result: Result<&fidl_fuchsia_net::Ipv4Address, fidl_fuchsia_posix::Errno>,
13277 ) -> Result<(), fidl::Error> {
13278 self.control_handle.inner.send::<fidl::encoding::ResultType<
13279 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastInterfaceResponse,
13280 fidl_fuchsia_posix::Errno,
13281 >>(
13282 result.map(|value| (value,)),
13283 self.tx_id,
13284 0x320bd14c4df046c4,
13285 fidl::encoding::DynamicFlags::empty(),
13286 )
13287 }
13288}
13289
13290#[must_use = "FIDL methods require a response to be sent"]
13291#[derive(Debug)]
13292pub struct SocketSetIpMulticastTtlResponder {
13293 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13294 tx_id: u32,
13295}
13296
13297impl std::ops::Drop for SocketSetIpMulticastTtlResponder {
13301 fn drop(&mut self) {
13302 self.control_handle.shutdown();
13303 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13305 }
13306}
13307
13308impl fidl::endpoints::Responder for SocketSetIpMulticastTtlResponder {
13309 type ControlHandle = SocketControlHandle;
13310
13311 fn control_handle(&self) -> &SocketControlHandle {
13312 &self.control_handle
13313 }
13314
13315 fn drop_without_shutdown(mut self) {
13316 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13318 std::mem::forget(self);
13320 }
13321}
13322
13323impl SocketSetIpMulticastTtlResponder {
13324 pub fn send(
13328 self,
13329 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13330 ) -> Result<(), fidl::Error> {
13331 let _result = self.send_raw(result);
13332 if _result.is_err() {
13333 self.control_handle.shutdown();
13334 }
13335 self.drop_without_shutdown();
13336 _result
13337 }
13338
13339 pub fn send_no_shutdown_on_err(
13341 self,
13342 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13343 ) -> Result<(), fidl::Error> {
13344 let _result = self.send_raw(result);
13345 self.drop_without_shutdown();
13346 _result
13347 }
13348
13349 fn send_raw(
13350 &self,
13351 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13352 ) -> Result<(), fidl::Error> {
13353 self.control_handle.inner.send::<fidl::encoding::ResultType<
13354 fidl::encoding::EmptyStruct,
13355 fidl_fuchsia_posix::Errno,
13356 >>(
13357 result,
13358 self.tx_id,
13359 0x63134d53772916a1,
13360 fidl::encoding::DynamicFlags::empty(),
13361 )
13362 }
13363}
13364
13365#[must_use = "FIDL methods require a response to be sent"]
13366#[derive(Debug)]
13367pub struct SocketGetIpMulticastTtlResponder {
13368 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13369 tx_id: u32,
13370}
13371
13372impl std::ops::Drop for SocketGetIpMulticastTtlResponder {
13376 fn drop(&mut self) {
13377 self.control_handle.shutdown();
13378 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13380 }
13381}
13382
13383impl fidl::endpoints::Responder for SocketGetIpMulticastTtlResponder {
13384 type ControlHandle = SocketControlHandle;
13385
13386 fn control_handle(&self) -> &SocketControlHandle {
13387 &self.control_handle
13388 }
13389
13390 fn drop_without_shutdown(mut self) {
13391 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13393 std::mem::forget(self);
13395 }
13396}
13397
13398impl SocketGetIpMulticastTtlResponder {
13399 pub fn send(
13403 self,
13404 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
13405 ) -> Result<(), fidl::Error> {
13406 let _result = self.send_raw(result);
13407 if _result.is_err() {
13408 self.control_handle.shutdown();
13409 }
13410 self.drop_without_shutdown();
13411 _result
13412 }
13413
13414 pub fn send_no_shutdown_on_err(
13416 self,
13417 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
13418 ) -> Result<(), fidl::Error> {
13419 let _result = self.send_raw(result);
13420 self.drop_without_shutdown();
13421 _result
13422 }
13423
13424 fn send_raw(
13425 &self,
13426 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
13427 ) -> Result<(), fidl::Error> {
13428 self.control_handle.inner.send::<fidl::encoding::ResultType<
13429 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastTtlResponse,
13430 fidl_fuchsia_posix::Errno,
13431 >>(
13432 result.map(|value| (value,)),
13433 self.tx_id,
13434 0x4665cd378f39e1a,
13435 fidl::encoding::DynamicFlags::empty(),
13436 )
13437 }
13438}
13439
13440#[must_use = "FIDL methods require a response to be sent"]
13441#[derive(Debug)]
13442pub struct SocketSetIpMulticastLoopbackResponder {
13443 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13444 tx_id: u32,
13445}
13446
13447impl std::ops::Drop for SocketSetIpMulticastLoopbackResponder {
13451 fn drop(&mut self) {
13452 self.control_handle.shutdown();
13453 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13455 }
13456}
13457
13458impl fidl::endpoints::Responder for SocketSetIpMulticastLoopbackResponder {
13459 type ControlHandle = SocketControlHandle;
13460
13461 fn control_handle(&self) -> &SocketControlHandle {
13462 &self.control_handle
13463 }
13464
13465 fn drop_without_shutdown(mut self) {
13466 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13468 std::mem::forget(self);
13470 }
13471}
13472
13473impl SocketSetIpMulticastLoopbackResponder {
13474 pub fn send(
13478 self,
13479 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13480 ) -> Result<(), fidl::Error> {
13481 let _result = self.send_raw(result);
13482 if _result.is_err() {
13483 self.control_handle.shutdown();
13484 }
13485 self.drop_without_shutdown();
13486 _result
13487 }
13488
13489 pub fn send_no_shutdown_on_err(
13491 self,
13492 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13493 ) -> Result<(), fidl::Error> {
13494 let _result = self.send_raw(result);
13495 self.drop_without_shutdown();
13496 _result
13497 }
13498
13499 fn send_raw(
13500 &self,
13501 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13502 ) -> Result<(), fidl::Error> {
13503 self.control_handle.inner.send::<fidl::encoding::ResultType<
13504 fidl::encoding::EmptyStruct,
13505 fidl_fuchsia_posix::Errno,
13506 >>(
13507 result,
13508 self.tx_id,
13509 0x20c55c11f00943ea,
13510 fidl::encoding::DynamicFlags::empty(),
13511 )
13512 }
13513}
13514
13515#[must_use = "FIDL methods require a response to be sent"]
13516#[derive(Debug)]
13517pub struct SocketGetIpMulticastLoopbackResponder {
13518 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13519 tx_id: u32,
13520}
13521
13522impl std::ops::Drop for SocketGetIpMulticastLoopbackResponder {
13526 fn drop(&mut self) {
13527 self.control_handle.shutdown();
13528 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13530 }
13531}
13532
13533impl fidl::endpoints::Responder for SocketGetIpMulticastLoopbackResponder {
13534 type ControlHandle = SocketControlHandle;
13535
13536 fn control_handle(&self) -> &SocketControlHandle {
13537 &self.control_handle
13538 }
13539
13540 fn drop_without_shutdown(mut self) {
13541 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13543 std::mem::forget(self);
13545 }
13546}
13547
13548impl SocketGetIpMulticastLoopbackResponder {
13549 pub fn send(
13553 self,
13554 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13555 ) -> Result<(), fidl::Error> {
13556 let _result = self.send_raw(result);
13557 if _result.is_err() {
13558 self.control_handle.shutdown();
13559 }
13560 self.drop_without_shutdown();
13561 _result
13562 }
13563
13564 pub fn send_no_shutdown_on_err(
13566 self,
13567 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13568 ) -> Result<(), fidl::Error> {
13569 let _result = self.send_raw(result);
13570 self.drop_without_shutdown();
13571 _result
13572 }
13573
13574 fn send_raw(
13575 &self,
13576 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13577 ) -> Result<(), fidl::Error> {
13578 self.control_handle.inner.send::<fidl::encoding::ResultType<
13579 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpMulticastLoopbackResponse,
13580 fidl_fuchsia_posix::Errno,
13581 >>(
13582 result.map(|value| (value,)),
13583 self.tx_id,
13584 0x3b6b26ff558298f2,
13585 fidl::encoding::DynamicFlags::empty(),
13586 )
13587 }
13588}
13589
13590#[must_use = "FIDL methods require a response to be sent"]
13591#[derive(Debug)]
13592pub struct SocketAddIpMembershipResponder {
13593 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13594 tx_id: u32,
13595}
13596
13597impl std::ops::Drop for SocketAddIpMembershipResponder {
13601 fn drop(&mut self) {
13602 self.control_handle.shutdown();
13603 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13605 }
13606}
13607
13608impl fidl::endpoints::Responder for SocketAddIpMembershipResponder {
13609 type ControlHandle = SocketControlHandle;
13610
13611 fn control_handle(&self) -> &SocketControlHandle {
13612 &self.control_handle
13613 }
13614
13615 fn drop_without_shutdown(mut self) {
13616 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13618 std::mem::forget(self);
13620 }
13621}
13622
13623impl SocketAddIpMembershipResponder {
13624 pub fn send(
13628 self,
13629 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13630 ) -> Result<(), fidl::Error> {
13631 let _result = self.send_raw(result);
13632 if _result.is_err() {
13633 self.control_handle.shutdown();
13634 }
13635 self.drop_without_shutdown();
13636 _result
13637 }
13638
13639 pub fn send_no_shutdown_on_err(
13641 self,
13642 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13643 ) -> Result<(), fidl::Error> {
13644 let _result = self.send_raw(result);
13645 self.drop_without_shutdown();
13646 _result
13647 }
13648
13649 fn send_raw(
13650 &self,
13651 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13652 ) -> Result<(), fidl::Error> {
13653 self.control_handle.inner.send::<fidl::encoding::ResultType<
13654 fidl::encoding::EmptyStruct,
13655 fidl_fuchsia_posix::Errno,
13656 >>(
13657 result,
13658 self.tx_id,
13659 0x76bc7df115a3b4d0,
13660 fidl::encoding::DynamicFlags::empty(),
13661 )
13662 }
13663}
13664
13665#[must_use = "FIDL methods require a response to be sent"]
13666#[derive(Debug)]
13667pub struct SocketDropIpMembershipResponder {
13668 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13669 tx_id: u32,
13670}
13671
13672impl std::ops::Drop for SocketDropIpMembershipResponder {
13676 fn drop(&mut self) {
13677 self.control_handle.shutdown();
13678 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13680 }
13681}
13682
13683impl fidl::endpoints::Responder for SocketDropIpMembershipResponder {
13684 type ControlHandle = SocketControlHandle;
13685
13686 fn control_handle(&self) -> &SocketControlHandle {
13687 &self.control_handle
13688 }
13689
13690 fn drop_without_shutdown(mut self) {
13691 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13693 std::mem::forget(self);
13695 }
13696}
13697
13698impl SocketDropIpMembershipResponder {
13699 pub fn send(
13703 self,
13704 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13705 ) -> Result<(), fidl::Error> {
13706 let _result = self.send_raw(result);
13707 if _result.is_err() {
13708 self.control_handle.shutdown();
13709 }
13710 self.drop_without_shutdown();
13711 _result
13712 }
13713
13714 pub fn send_no_shutdown_on_err(
13716 self,
13717 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13718 ) -> Result<(), fidl::Error> {
13719 let _result = self.send_raw(result);
13720 self.drop_without_shutdown();
13721 _result
13722 }
13723
13724 fn send_raw(
13725 &self,
13726 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13727 ) -> Result<(), fidl::Error> {
13728 self.control_handle.inner.send::<fidl::encoding::ResultType<
13729 fidl::encoding::EmptyStruct,
13730 fidl_fuchsia_posix::Errno,
13731 >>(
13732 result,
13733 self.tx_id,
13734 0x2888f3099188d03,
13735 fidl::encoding::DynamicFlags::empty(),
13736 )
13737 }
13738}
13739
13740#[must_use = "FIDL methods require a response to be sent"]
13741#[derive(Debug)]
13742pub struct SocketSetIpTransparentResponder {
13743 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13744 tx_id: u32,
13745}
13746
13747impl std::ops::Drop for SocketSetIpTransparentResponder {
13751 fn drop(&mut self) {
13752 self.control_handle.shutdown();
13753 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13755 }
13756}
13757
13758impl fidl::endpoints::Responder for SocketSetIpTransparentResponder {
13759 type ControlHandle = SocketControlHandle;
13760
13761 fn control_handle(&self) -> &SocketControlHandle {
13762 &self.control_handle
13763 }
13764
13765 fn drop_without_shutdown(mut self) {
13766 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13768 std::mem::forget(self);
13770 }
13771}
13772
13773impl SocketSetIpTransparentResponder {
13774 pub fn send(
13778 self,
13779 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13780 ) -> Result<(), fidl::Error> {
13781 let _result = self.send_raw(result);
13782 if _result.is_err() {
13783 self.control_handle.shutdown();
13784 }
13785 self.drop_without_shutdown();
13786 _result
13787 }
13788
13789 pub fn send_no_shutdown_on_err(
13791 self,
13792 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13793 ) -> Result<(), fidl::Error> {
13794 let _result = self.send_raw(result);
13795 self.drop_without_shutdown();
13796 _result
13797 }
13798
13799 fn send_raw(
13800 &self,
13801 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13802 ) -> Result<(), fidl::Error> {
13803 self.control_handle.inner.send::<fidl::encoding::ResultType<
13804 fidl::encoding::EmptyStruct,
13805 fidl_fuchsia_posix::Errno,
13806 >>(
13807 result,
13808 self.tx_id,
13809 0x1ae532b0c066e3a0,
13810 fidl::encoding::DynamicFlags::empty(),
13811 )
13812 }
13813}
13814
13815#[must_use = "FIDL methods require a response to be sent"]
13816#[derive(Debug)]
13817pub struct SocketGetIpTransparentResponder {
13818 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13819 tx_id: u32,
13820}
13821
13822impl std::ops::Drop for SocketGetIpTransparentResponder {
13826 fn drop(&mut self) {
13827 self.control_handle.shutdown();
13828 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13830 }
13831}
13832
13833impl fidl::endpoints::Responder for SocketGetIpTransparentResponder {
13834 type ControlHandle = SocketControlHandle;
13835
13836 fn control_handle(&self) -> &SocketControlHandle {
13837 &self.control_handle
13838 }
13839
13840 fn drop_without_shutdown(mut self) {
13841 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13843 std::mem::forget(self);
13845 }
13846}
13847
13848impl SocketGetIpTransparentResponder {
13849 pub fn send(
13853 self,
13854 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13855 ) -> Result<(), fidl::Error> {
13856 let _result = self.send_raw(result);
13857 if _result.is_err() {
13858 self.control_handle.shutdown();
13859 }
13860 self.drop_without_shutdown();
13861 _result
13862 }
13863
13864 pub fn send_no_shutdown_on_err(
13866 self,
13867 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13868 ) -> Result<(), fidl::Error> {
13869 let _result = self.send_raw(result);
13870 self.drop_without_shutdown();
13871 _result
13872 }
13873
13874 fn send_raw(
13875 &self,
13876 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
13877 ) -> Result<(), fidl::Error> {
13878 self.control_handle.inner.send::<fidl::encoding::ResultType<
13879 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpTransparentResponse,
13880 fidl_fuchsia_posix::Errno,
13881 >>(
13882 result.map(|value| (value,)),
13883 self.tx_id,
13884 0x51d43695962ebfb5,
13885 fidl::encoding::DynamicFlags::empty(),
13886 )
13887 }
13888}
13889
13890#[must_use = "FIDL methods require a response to be sent"]
13891#[derive(Debug)]
13892pub struct SocketSetIpReceiveOriginalDestinationAddressResponder {
13893 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13894 tx_id: u32,
13895}
13896
13897impl std::ops::Drop for SocketSetIpReceiveOriginalDestinationAddressResponder {
13901 fn drop(&mut self) {
13902 self.control_handle.shutdown();
13903 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13905 }
13906}
13907
13908impl fidl::endpoints::Responder for SocketSetIpReceiveOriginalDestinationAddressResponder {
13909 type ControlHandle = SocketControlHandle;
13910
13911 fn control_handle(&self) -> &SocketControlHandle {
13912 &self.control_handle
13913 }
13914
13915 fn drop_without_shutdown(mut self) {
13916 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13918 std::mem::forget(self);
13920 }
13921}
13922
13923impl SocketSetIpReceiveOriginalDestinationAddressResponder {
13924 pub fn send(
13928 self,
13929 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13930 ) -> Result<(), fidl::Error> {
13931 let _result = self.send_raw(result);
13932 if _result.is_err() {
13933 self.control_handle.shutdown();
13934 }
13935 self.drop_without_shutdown();
13936 _result
13937 }
13938
13939 pub fn send_no_shutdown_on_err(
13941 self,
13942 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13943 ) -> Result<(), fidl::Error> {
13944 let _result = self.send_raw(result);
13945 self.drop_without_shutdown();
13946 _result
13947 }
13948
13949 fn send_raw(
13950 &self,
13951 mut result: Result<(), fidl_fuchsia_posix::Errno>,
13952 ) -> Result<(), fidl::Error> {
13953 self.control_handle.inner.send::<fidl::encoding::ResultType<
13954 fidl::encoding::EmptyStruct,
13955 fidl_fuchsia_posix::Errno,
13956 >>(
13957 result,
13958 self.tx_id,
13959 0x4722b4ce52f7840,
13960 fidl::encoding::DynamicFlags::empty(),
13961 )
13962 }
13963}
13964
13965#[must_use = "FIDL methods require a response to be sent"]
13966#[derive(Debug)]
13967pub struct SocketGetIpReceiveOriginalDestinationAddressResponder {
13968 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
13969 tx_id: u32,
13970}
13971
13972impl std::ops::Drop for SocketGetIpReceiveOriginalDestinationAddressResponder {
13976 fn drop(&mut self) {
13977 self.control_handle.shutdown();
13978 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13980 }
13981}
13982
13983impl fidl::endpoints::Responder for SocketGetIpReceiveOriginalDestinationAddressResponder {
13984 type ControlHandle = SocketControlHandle;
13985
13986 fn control_handle(&self) -> &SocketControlHandle {
13987 &self.control_handle
13988 }
13989
13990 fn drop_without_shutdown(mut self) {
13991 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
13993 std::mem::forget(self);
13995 }
13996}
13997
13998impl SocketGetIpReceiveOriginalDestinationAddressResponder {
13999 pub fn send(
14003 self,
14004 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14005 ) -> Result<(), fidl::Error> {
14006 let _result = self.send_raw(result);
14007 if _result.is_err() {
14008 self.control_handle.shutdown();
14009 }
14010 self.drop_without_shutdown();
14011 _result
14012 }
14013
14014 pub fn send_no_shutdown_on_err(
14016 self,
14017 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14018 ) -> Result<(), fidl::Error> {
14019 let _result = self.send_raw(result);
14020 self.drop_without_shutdown();
14021 _result
14022 }
14023
14024 fn send_raw(
14025 &self,
14026 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14027 ) -> Result<(), fidl::Error> {
14028 self.control_handle.inner.send::<fidl::encoding::ResultType<fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpReceiveOriginalDestinationAddressResponse, fidl_fuchsia_posix::Errno>>(
14029 result.map(|value| (value,)),
14030 self.tx_id,
14031 0x2a0e7dc5d6bfdfe9,
14032 fidl::encoding::DynamicFlags::empty()
14033 )
14034 }
14035}
14036
14037#[must_use = "FIDL methods require a response to be sent"]
14038#[derive(Debug)]
14039pub struct SocketAddIpv6MembershipResponder {
14040 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14041 tx_id: u32,
14042}
14043
14044impl std::ops::Drop for SocketAddIpv6MembershipResponder {
14048 fn drop(&mut self) {
14049 self.control_handle.shutdown();
14050 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14052 }
14053}
14054
14055impl fidl::endpoints::Responder for SocketAddIpv6MembershipResponder {
14056 type ControlHandle = SocketControlHandle;
14057
14058 fn control_handle(&self) -> &SocketControlHandle {
14059 &self.control_handle
14060 }
14061
14062 fn drop_without_shutdown(mut self) {
14063 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14065 std::mem::forget(self);
14067 }
14068}
14069
14070impl SocketAddIpv6MembershipResponder {
14071 pub fn send(
14075 self,
14076 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14077 ) -> Result<(), fidl::Error> {
14078 let _result = self.send_raw(result);
14079 if _result.is_err() {
14080 self.control_handle.shutdown();
14081 }
14082 self.drop_without_shutdown();
14083 _result
14084 }
14085
14086 pub fn send_no_shutdown_on_err(
14088 self,
14089 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14090 ) -> Result<(), fidl::Error> {
14091 let _result = self.send_raw(result);
14092 self.drop_without_shutdown();
14093 _result
14094 }
14095
14096 fn send_raw(
14097 &self,
14098 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14099 ) -> Result<(), fidl::Error> {
14100 self.control_handle.inner.send::<fidl::encoding::ResultType<
14101 fidl::encoding::EmptyStruct,
14102 fidl_fuchsia_posix::Errno,
14103 >>(
14104 result,
14105 self.tx_id,
14106 0x7c94727acb4ea4b3,
14107 fidl::encoding::DynamicFlags::empty(),
14108 )
14109 }
14110}
14111
14112#[must_use = "FIDL methods require a response to be sent"]
14113#[derive(Debug)]
14114pub struct SocketDropIpv6MembershipResponder {
14115 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14116 tx_id: u32,
14117}
14118
14119impl std::ops::Drop for SocketDropIpv6MembershipResponder {
14123 fn drop(&mut self) {
14124 self.control_handle.shutdown();
14125 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14127 }
14128}
14129
14130impl fidl::endpoints::Responder for SocketDropIpv6MembershipResponder {
14131 type ControlHandle = SocketControlHandle;
14132
14133 fn control_handle(&self) -> &SocketControlHandle {
14134 &self.control_handle
14135 }
14136
14137 fn drop_without_shutdown(mut self) {
14138 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14140 std::mem::forget(self);
14142 }
14143}
14144
14145impl SocketDropIpv6MembershipResponder {
14146 pub fn send(
14150 self,
14151 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14152 ) -> Result<(), fidl::Error> {
14153 let _result = self.send_raw(result);
14154 if _result.is_err() {
14155 self.control_handle.shutdown();
14156 }
14157 self.drop_without_shutdown();
14158 _result
14159 }
14160
14161 pub fn send_no_shutdown_on_err(
14163 self,
14164 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14165 ) -> Result<(), fidl::Error> {
14166 let _result = self.send_raw(result);
14167 self.drop_without_shutdown();
14168 _result
14169 }
14170
14171 fn send_raw(
14172 &self,
14173 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14174 ) -> Result<(), fidl::Error> {
14175 self.control_handle.inner.send::<fidl::encoding::ResultType<
14176 fidl::encoding::EmptyStruct,
14177 fidl_fuchsia_posix::Errno,
14178 >>(
14179 result,
14180 self.tx_id,
14181 0x42104c70ccaba304,
14182 fidl::encoding::DynamicFlags::empty(),
14183 )
14184 }
14185}
14186
14187#[must_use = "FIDL methods require a response to be sent"]
14188#[derive(Debug)]
14189pub struct SocketSetIpv6MulticastInterfaceResponder {
14190 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14191 tx_id: u32,
14192}
14193
14194impl std::ops::Drop for SocketSetIpv6MulticastInterfaceResponder {
14198 fn drop(&mut self) {
14199 self.control_handle.shutdown();
14200 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14202 }
14203}
14204
14205impl fidl::endpoints::Responder for SocketSetIpv6MulticastInterfaceResponder {
14206 type ControlHandle = SocketControlHandle;
14207
14208 fn control_handle(&self) -> &SocketControlHandle {
14209 &self.control_handle
14210 }
14211
14212 fn drop_without_shutdown(mut self) {
14213 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14215 std::mem::forget(self);
14217 }
14218}
14219
14220impl SocketSetIpv6MulticastInterfaceResponder {
14221 pub fn send(
14225 self,
14226 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14227 ) -> Result<(), fidl::Error> {
14228 let _result = self.send_raw(result);
14229 if _result.is_err() {
14230 self.control_handle.shutdown();
14231 }
14232 self.drop_without_shutdown();
14233 _result
14234 }
14235
14236 pub fn send_no_shutdown_on_err(
14238 self,
14239 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14240 ) -> Result<(), fidl::Error> {
14241 let _result = self.send_raw(result);
14242 self.drop_without_shutdown();
14243 _result
14244 }
14245
14246 fn send_raw(
14247 &self,
14248 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14249 ) -> Result<(), fidl::Error> {
14250 self.control_handle.inner.send::<fidl::encoding::ResultType<
14251 fidl::encoding::EmptyStruct,
14252 fidl_fuchsia_posix::Errno,
14253 >>(
14254 result,
14255 self.tx_id,
14256 0x135f76db3774ab3b,
14257 fidl::encoding::DynamicFlags::empty(),
14258 )
14259 }
14260}
14261
14262#[must_use = "FIDL methods require a response to be sent"]
14263#[derive(Debug)]
14264pub struct SocketGetIpv6MulticastInterfaceResponder {
14265 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14266 tx_id: u32,
14267}
14268
14269impl std::ops::Drop for SocketGetIpv6MulticastInterfaceResponder {
14273 fn drop(&mut self) {
14274 self.control_handle.shutdown();
14275 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14277 }
14278}
14279
14280impl fidl::endpoints::Responder for SocketGetIpv6MulticastInterfaceResponder {
14281 type ControlHandle = SocketControlHandle;
14282
14283 fn control_handle(&self) -> &SocketControlHandle {
14284 &self.control_handle
14285 }
14286
14287 fn drop_without_shutdown(mut self) {
14288 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14290 std::mem::forget(self);
14292 }
14293}
14294
14295impl SocketGetIpv6MulticastInterfaceResponder {
14296 pub fn send(
14300 self,
14301 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
14302 ) -> Result<(), fidl::Error> {
14303 let _result = self.send_raw(result);
14304 if _result.is_err() {
14305 self.control_handle.shutdown();
14306 }
14307 self.drop_without_shutdown();
14308 _result
14309 }
14310
14311 pub fn send_no_shutdown_on_err(
14313 self,
14314 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
14315 ) -> Result<(), fidl::Error> {
14316 let _result = self.send_raw(result);
14317 self.drop_without_shutdown();
14318 _result
14319 }
14320
14321 fn send_raw(
14322 &self,
14323 mut result: Result<u64, fidl_fuchsia_posix::Errno>,
14324 ) -> Result<(), fidl::Error> {
14325 self.control_handle.inner.send::<fidl::encoding::ResultType<
14326 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastInterfaceResponse,
14327 fidl_fuchsia_posix::Errno,
14328 >>(
14329 result.map(|value| (value,)),
14330 self.tx_id,
14331 0x1f26fcdd348f1882,
14332 fidl::encoding::DynamicFlags::empty(),
14333 )
14334 }
14335}
14336
14337#[must_use = "FIDL methods require a response to be sent"]
14338#[derive(Debug)]
14339pub struct SocketSetIpv6UnicastHopsResponder {
14340 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14341 tx_id: u32,
14342}
14343
14344impl std::ops::Drop for SocketSetIpv6UnicastHopsResponder {
14348 fn drop(&mut self) {
14349 self.control_handle.shutdown();
14350 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14352 }
14353}
14354
14355impl fidl::endpoints::Responder for SocketSetIpv6UnicastHopsResponder {
14356 type ControlHandle = SocketControlHandle;
14357
14358 fn control_handle(&self) -> &SocketControlHandle {
14359 &self.control_handle
14360 }
14361
14362 fn drop_without_shutdown(mut self) {
14363 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14365 std::mem::forget(self);
14367 }
14368}
14369
14370impl SocketSetIpv6UnicastHopsResponder {
14371 pub fn send(
14375 self,
14376 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14377 ) -> Result<(), fidl::Error> {
14378 let _result = self.send_raw(result);
14379 if _result.is_err() {
14380 self.control_handle.shutdown();
14381 }
14382 self.drop_without_shutdown();
14383 _result
14384 }
14385
14386 pub fn send_no_shutdown_on_err(
14388 self,
14389 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14390 ) -> Result<(), fidl::Error> {
14391 let _result = self.send_raw(result);
14392 self.drop_without_shutdown();
14393 _result
14394 }
14395
14396 fn send_raw(
14397 &self,
14398 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14399 ) -> Result<(), fidl::Error> {
14400 self.control_handle.inner.send::<fidl::encoding::ResultType<
14401 fidl::encoding::EmptyStruct,
14402 fidl_fuchsia_posix::Errno,
14403 >>(
14404 result,
14405 self.tx_id,
14406 0x157d51e98f462859,
14407 fidl::encoding::DynamicFlags::empty(),
14408 )
14409 }
14410}
14411
14412#[must_use = "FIDL methods require a response to be sent"]
14413#[derive(Debug)]
14414pub struct SocketGetIpv6UnicastHopsResponder {
14415 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14416 tx_id: u32,
14417}
14418
14419impl std::ops::Drop for SocketGetIpv6UnicastHopsResponder {
14423 fn drop(&mut self) {
14424 self.control_handle.shutdown();
14425 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14427 }
14428}
14429
14430impl fidl::endpoints::Responder for SocketGetIpv6UnicastHopsResponder {
14431 type ControlHandle = SocketControlHandle;
14432
14433 fn control_handle(&self) -> &SocketControlHandle {
14434 &self.control_handle
14435 }
14436
14437 fn drop_without_shutdown(mut self) {
14438 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14440 std::mem::forget(self);
14442 }
14443}
14444
14445impl SocketGetIpv6UnicastHopsResponder {
14446 pub fn send(
14450 self,
14451 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
14452 ) -> Result<(), fidl::Error> {
14453 let _result = self.send_raw(result);
14454 if _result.is_err() {
14455 self.control_handle.shutdown();
14456 }
14457 self.drop_without_shutdown();
14458 _result
14459 }
14460
14461 pub fn send_no_shutdown_on_err(
14463 self,
14464 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
14465 ) -> Result<(), fidl::Error> {
14466 let _result = self.send_raw(result);
14467 self.drop_without_shutdown();
14468 _result
14469 }
14470
14471 fn send_raw(
14472 &self,
14473 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
14474 ) -> Result<(), fidl::Error> {
14475 self.control_handle.inner.send::<fidl::encoding::ResultType<
14476 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6UnicastHopsResponse,
14477 fidl_fuchsia_posix::Errno,
14478 >>(
14479 result.map(|value| (value,)),
14480 self.tx_id,
14481 0x21f4641cad8bd8d2,
14482 fidl::encoding::DynamicFlags::empty(),
14483 )
14484 }
14485}
14486
14487#[must_use = "FIDL methods require a response to be sent"]
14488#[derive(Debug)]
14489pub struct SocketSetIpv6ReceiveHopLimitResponder {
14490 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14491 tx_id: u32,
14492}
14493
14494impl std::ops::Drop for SocketSetIpv6ReceiveHopLimitResponder {
14498 fn drop(&mut self) {
14499 self.control_handle.shutdown();
14500 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14502 }
14503}
14504
14505impl fidl::endpoints::Responder for SocketSetIpv6ReceiveHopLimitResponder {
14506 type ControlHandle = SocketControlHandle;
14507
14508 fn control_handle(&self) -> &SocketControlHandle {
14509 &self.control_handle
14510 }
14511
14512 fn drop_without_shutdown(mut self) {
14513 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14515 std::mem::forget(self);
14517 }
14518}
14519
14520impl SocketSetIpv6ReceiveHopLimitResponder {
14521 pub fn send(
14525 self,
14526 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14527 ) -> Result<(), fidl::Error> {
14528 let _result = self.send_raw(result);
14529 if _result.is_err() {
14530 self.control_handle.shutdown();
14531 }
14532 self.drop_without_shutdown();
14533 _result
14534 }
14535
14536 pub fn send_no_shutdown_on_err(
14538 self,
14539 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14540 ) -> Result<(), fidl::Error> {
14541 let _result = self.send_raw(result);
14542 self.drop_without_shutdown();
14543 _result
14544 }
14545
14546 fn send_raw(
14547 &self,
14548 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14549 ) -> Result<(), fidl::Error> {
14550 self.control_handle.inner.send::<fidl::encoding::ResultType<
14551 fidl::encoding::EmptyStruct,
14552 fidl_fuchsia_posix::Errno,
14553 >>(
14554 result,
14555 self.tx_id,
14556 0x5c24808ed2e84a1e,
14557 fidl::encoding::DynamicFlags::empty(),
14558 )
14559 }
14560}
14561
14562#[must_use = "FIDL methods require a response to be sent"]
14563#[derive(Debug)]
14564pub struct SocketGetIpv6ReceiveHopLimitResponder {
14565 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14566 tx_id: u32,
14567}
14568
14569impl std::ops::Drop for SocketGetIpv6ReceiveHopLimitResponder {
14573 fn drop(&mut self) {
14574 self.control_handle.shutdown();
14575 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14577 }
14578}
14579
14580impl fidl::endpoints::Responder for SocketGetIpv6ReceiveHopLimitResponder {
14581 type ControlHandle = SocketControlHandle;
14582
14583 fn control_handle(&self) -> &SocketControlHandle {
14584 &self.control_handle
14585 }
14586
14587 fn drop_without_shutdown(mut self) {
14588 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14590 std::mem::forget(self);
14592 }
14593}
14594
14595impl SocketGetIpv6ReceiveHopLimitResponder {
14596 pub fn send(
14600 self,
14601 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14602 ) -> Result<(), fidl::Error> {
14603 let _result = self.send_raw(result);
14604 if _result.is_err() {
14605 self.control_handle.shutdown();
14606 }
14607 self.drop_without_shutdown();
14608 _result
14609 }
14610
14611 pub fn send_no_shutdown_on_err(
14613 self,
14614 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14615 ) -> Result<(), fidl::Error> {
14616 let _result = self.send_raw(result);
14617 self.drop_without_shutdown();
14618 _result
14619 }
14620
14621 fn send_raw(
14622 &self,
14623 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14624 ) -> Result<(), fidl::Error> {
14625 self.control_handle.inner.send::<fidl::encoding::ResultType<
14626 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveHopLimitResponse,
14627 fidl_fuchsia_posix::Errno,
14628 >>(
14629 result.map(|value| (value,)),
14630 self.tx_id,
14631 0x341e06689885b4c0,
14632 fidl::encoding::DynamicFlags::empty(),
14633 )
14634 }
14635}
14636
14637#[must_use = "FIDL methods require a response to be sent"]
14638#[derive(Debug)]
14639pub struct SocketSetIpv6MulticastHopsResponder {
14640 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14641 tx_id: u32,
14642}
14643
14644impl std::ops::Drop for SocketSetIpv6MulticastHopsResponder {
14648 fn drop(&mut self) {
14649 self.control_handle.shutdown();
14650 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14652 }
14653}
14654
14655impl fidl::endpoints::Responder for SocketSetIpv6MulticastHopsResponder {
14656 type ControlHandle = SocketControlHandle;
14657
14658 fn control_handle(&self) -> &SocketControlHandle {
14659 &self.control_handle
14660 }
14661
14662 fn drop_without_shutdown(mut self) {
14663 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14665 std::mem::forget(self);
14667 }
14668}
14669
14670impl SocketSetIpv6MulticastHopsResponder {
14671 pub fn send(
14675 self,
14676 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14677 ) -> Result<(), fidl::Error> {
14678 let _result = self.send_raw(result);
14679 if _result.is_err() {
14680 self.control_handle.shutdown();
14681 }
14682 self.drop_without_shutdown();
14683 _result
14684 }
14685
14686 pub fn send_no_shutdown_on_err(
14688 self,
14689 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14690 ) -> Result<(), fidl::Error> {
14691 let _result = self.send_raw(result);
14692 self.drop_without_shutdown();
14693 _result
14694 }
14695
14696 fn send_raw(
14697 &self,
14698 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14699 ) -> Result<(), fidl::Error> {
14700 self.control_handle.inner.send::<fidl::encoding::ResultType<
14701 fidl::encoding::EmptyStruct,
14702 fidl_fuchsia_posix::Errno,
14703 >>(
14704 result,
14705 self.tx_id,
14706 0x25b9cd4d181f82c1,
14707 fidl::encoding::DynamicFlags::empty(),
14708 )
14709 }
14710}
14711
14712#[must_use = "FIDL methods require a response to be sent"]
14713#[derive(Debug)]
14714pub struct SocketGetIpv6MulticastHopsResponder {
14715 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14716 tx_id: u32,
14717}
14718
14719impl std::ops::Drop for SocketGetIpv6MulticastHopsResponder {
14723 fn drop(&mut self) {
14724 self.control_handle.shutdown();
14725 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14727 }
14728}
14729
14730impl fidl::endpoints::Responder for SocketGetIpv6MulticastHopsResponder {
14731 type ControlHandle = SocketControlHandle;
14732
14733 fn control_handle(&self) -> &SocketControlHandle {
14734 &self.control_handle
14735 }
14736
14737 fn drop_without_shutdown(mut self) {
14738 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14740 std::mem::forget(self);
14742 }
14743}
14744
14745impl SocketGetIpv6MulticastHopsResponder {
14746 pub fn send(
14750 self,
14751 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
14752 ) -> Result<(), fidl::Error> {
14753 let _result = self.send_raw(result);
14754 if _result.is_err() {
14755 self.control_handle.shutdown();
14756 }
14757 self.drop_without_shutdown();
14758 _result
14759 }
14760
14761 pub fn send_no_shutdown_on_err(
14763 self,
14764 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
14765 ) -> Result<(), fidl::Error> {
14766 let _result = self.send_raw(result);
14767 self.drop_without_shutdown();
14768 _result
14769 }
14770
14771 fn send_raw(
14772 &self,
14773 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
14774 ) -> Result<(), fidl::Error> {
14775 self.control_handle.inner.send::<fidl::encoding::ResultType<
14776 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastHopsResponse,
14777 fidl_fuchsia_posix::Errno,
14778 >>(
14779 result.map(|value| (value,)),
14780 self.tx_id,
14781 0x52916948a365012a,
14782 fidl::encoding::DynamicFlags::empty(),
14783 )
14784 }
14785}
14786
14787#[must_use = "FIDL methods require a response to be sent"]
14788#[derive(Debug)]
14789pub struct SocketSetIpv6MulticastLoopbackResponder {
14790 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14791 tx_id: u32,
14792}
14793
14794impl std::ops::Drop for SocketSetIpv6MulticastLoopbackResponder {
14798 fn drop(&mut self) {
14799 self.control_handle.shutdown();
14800 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14802 }
14803}
14804
14805impl fidl::endpoints::Responder for SocketSetIpv6MulticastLoopbackResponder {
14806 type ControlHandle = SocketControlHandle;
14807
14808 fn control_handle(&self) -> &SocketControlHandle {
14809 &self.control_handle
14810 }
14811
14812 fn drop_without_shutdown(mut self) {
14813 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14815 std::mem::forget(self);
14817 }
14818}
14819
14820impl SocketSetIpv6MulticastLoopbackResponder {
14821 pub fn send(
14825 self,
14826 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14827 ) -> Result<(), fidl::Error> {
14828 let _result = self.send_raw(result);
14829 if _result.is_err() {
14830 self.control_handle.shutdown();
14831 }
14832 self.drop_without_shutdown();
14833 _result
14834 }
14835
14836 pub fn send_no_shutdown_on_err(
14838 self,
14839 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14840 ) -> Result<(), fidl::Error> {
14841 let _result = self.send_raw(result);
14842 self.drop_without_shutdown();
14843 _result
14844 }
14845
14846 fn send_raw(
14847 &self,
14848 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14849 ) -> Result<(), fidl::Error> {
14850 self.control_handle.inner.send::<fidl::encoding::ResultType<
14851 fidl::encoding::EmptyStruct,
14852 fidl_fuchsia_posix::Errno,
14853 >>(
14854 result,
14855 self.tx_id,
14856 0x55701c409ff41b40,
14857 fidl::encoding::DynamicFlags::empty(),
14858 )
14859 }
14860}
14861
14862#[must_use = "FIDL methods require a response to be sent"]
14863#[derive(Debug)]
14864pub struct SocketGetIpv6MulticastLoopbackResponder {
14865 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14866 tx_id: u32,
14867}
14868
14869impl std::ops::Drop for SocketGetIpv6MulticastLoopbackResponder {
14873 fn drop(&mut self) {
14874 self.control_handle.shutdown();
14875 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14877 }
14878}
14879
14880impl fidl::endpoints::Responder for SocketGetIpv6MulticastLoopbackResponder {
14881 type ControlHandle = SocketControlHandle;
14882
14883 fn control_handle(&self) -> &SocketControlHandle {
14884 &self.control_handle
14885 }
14886
14887 fn drop_without_shutdown(mut self) {
14888 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14890 std::mem::forget(self);
14892 }
14893}
14894
14895impl SocketGetIpv6MulticastLoopbackResponder {
14896 pub fn send(
14900 self,
14901 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14902 ) -> Result<(), fidl::Error> {
14903 let _result = self.send_raw(result);
14904 if _result.is_err() {
14905 self.control_handle.shutdown();
14906 }
14907 self.drop_without_shutdown();
14908 _result
14909 }
14910
14911 pub fn send_no_shutdown_on_err(
14913 self,
14914 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14915 ) -> Result<(), fidl::Error> {
14916 let _result = self.send_raw(result);
14917 self.drop_without_shutdown();
14918 _result
14919 }
14920
14921 fn send_raw(
14922 &self,
14923 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
14924 ) -> Result<(), fidl::Error> {
14925 self.control_handle.inner.send::<fidl::encoding::ResultType<
14926 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6MulticastLoopbackResponse,
14927 fidl_fuchsia_posix::Errno,
14928 >>(
14929 result.map(|value| (value,)),
14930 self.tx_id,
14931 0x4415b701fde319c3,
14932 fidl::encoding::DynamicFlags::empty(),
14933 )
14934 }
14935}
14936
14937#[must_use = "FIDL methods require a response to be sent"]
14938#[derive(Debug)]
14939pub struct SocketSetIpv6OnlyResponder {
14940 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
14941 tx_id: u32,
14942}
14943
14944impl std::ops::Drop for SocketSetIpv6OnlyResponder {
14948 fn drop(&mut self) {
14949 self.control_handle.shutdown();
14950 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14952 }
14953}
14954
14955impl fidl::endpoints::Responder for SocketSetIpv6OnlyResponder {
14956 type ControlHandle = SocketControlHandle;
14957
14958 fn control_handle(&self) -> &SocketControlHandle {
14959 &self.control_handle
14960 }
14961
14962 fn drop_without_shutdown(mut self) {
14963 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
14965 std::mem::forget(self);
14967 }
14968}
14969
14970impl SocketSetIpv6OnlyResponder {
14971 pub fn send(
14975 self,
14976 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14977 ) -> Result<(), fidl::Error> {
14978 let _result = self.send_raw(result);
14979 if _result.is_err() {
14980 self.control_handle.shutdown();
14981 }
14982 self.drop_without_shutdown();
14983 _result
14984 }
14985
14986 pub fn send_no_shutdown_on_err(
14988 self,
14989 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14990 ) -> Result<(), fidl::Error> {
14991 let _result = self.send_raw(result);
14992 self.drop_without_shutdown();
14993 _result
14994 }
14995
14996 fn send_raw(
14997 &self,
14998 mut result: Result<(), fidl_fuchsia_posix::Errno>,
14999 ) -> Result<(), fidl::Error> {
15000 self.control_handle.inner.send::<fidl::encoding::ResultType<
15001 fidl::encoding::EmptyStruct,
15002 fidl_fuchsia_posix::Errno,
15003 >>(
15004 result,
15005 self.tx_id,
15006 0x4873f1364758cbba,
15007 fidl::encoding::DynamicFlags::empty(),
15008 )
15009 }
15010}
15011
15012#[must_use = "FIDL methods require a response to be sent"]
15013#[derive(Debug)]
15014pub struct SocketGetIpv6OnlyResponder {
15015 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15016 tx_id: u32,
15017}
15018
15019impl std::ops::Drop for SocketGetIpv6OnlyResponder {
15023 fn drop(&mut self) {
15024 self.control_handle.shutdown();
15025 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15027 }
15028}
15029
15030impl fidl::endpoints::Responder for SocketGetIpv6OnlyResponder {
15031 type ControlHandle = SocketControlHandle;
15032
15033 fn control_handle(&self) -> &SocketControlHandle {
15034 &self.control_handle
15035 }
15036
15037 fn drop_without_shutdown(mut self) {
15038 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15040 std::mem::forget(self);
15042 }
15043}
15044
15045impl SocketGetIpv6OnlyResponder {
15046 pub fn send(
15050 self,
15051 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15052 ) -> Result<(), fidl::Error> {
15053 let _result = self.send_raw(result);
15054 if _result.is_err() {
15055 self.control_handle.shutdown();
15056 }
15057 self.drop_without_shutdown();
15058 _result
15059 }
15060
15061 pub fn send_no_shutdown_on_err(
15063 self,
15064 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15065 ) -> Result<(), fidl::Error> {
15066 let _result = self.send_raw(result);
15067 self.drop_without_shutdown();
15068 _result
15069 }
15070
15071 fn send_raw(
15072 &self,
15073 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15074 ) -> Result<(), fidl::Error> {
15075 self.control_handle.inner.send::<fidl::encoding::ResultType<
15076 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6OnlyResponse,
15077 fidl_fuchsia_posix::Errno,
15078 >>(
15079 result.map(|value| (value,)),
15080 self.tx_id,
15081 0x4aa3340a1a26b89c,
15082 fidl::encoding::DynamicFlags::empty(),
15083 )
15084 }
15085}
15086
15087#[must_use = "FIDL methods require a response to be sent"]
15088#[derive(Debug)]
15089pub struct SocketSetIpv6ReceiveTrafficClassResponder {
15090 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15091 tx_id: u32,
15092}
15093
15094impl std::ops::Drop for SocketSetIpv6ReceiveTrafficClassResponder {
15098 fn drop(&mut self) {
15099 self.control_handle.shutdown();
15100 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15102 }
15103}
15104
15105impl fidl::endpoints::Responder for SocketSetIpv6ReceiveTrafficClassResponder {
15106 type ControlHandle = SocketControlHandle;
15107
15108 fn control_handle(&self) -> &SocketControlHandle {
15109 &self.control_handle
15110 }
15111
15112 fn drop_without_shutdown(mut self) {
15113 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15115 std::mem::forget(self);
15117 }
15118}
15119
15120impl SocketSetIpv6ReceiveTrafficClassResponder {
15121 pub fn send(
15125 self,
15126 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15127 ) -> Result<(), fidl::Error> {
15128 let _result = self.send_raw(result);
15129 if _result.is_err() {
15130 self.control_handle.shutdown();
15131 }
15132 self.drop_without_shutdown();
15133 _result
15134 }
15135
15136 pub fn send_no_shutdown_on_err(
15138 self,
15139 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15140 ) -> Result<(), fidl::Error> {
15141 let _result = self.send_raw(result);
15142 self.drop_without_shutdown();
15143 _result
15144 }
15145
15146 fn send_raw(
15147 &self,
15148 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15149 ) -> Result<(), fidl::Error> {
15150 self.control_handle.inner.send::<fidl::encoding::ResultType<
15151 fidl::encoding::EmptyStruct,
15152 fidl_fuchsia_posix::Errno,
15153 >>(
15154 result,
15155 self.tx_id,
15156 0x58f07c8788d099a0,
15157 fidl::encoding::DynamicFlags::empty(),
15158 )
15159 }
15160}
15161
15162#[must_use = "FIDL methods require a response to be sent"]
15163#[derive(Debug)]
15164pub struct SocketGetIpv6ReceiveTrafficClassResponder {
15165 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15166 tx_id: u32,
15167}
15168
15169impl std::ops::Drop for SocketGetIpv6ReceiveTrafficClassResponder {
15173 fn drop(&mut self) {
15174 self.control_handle.shutdown();
15175 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15177 }
15178}
15179
15180impl fidl::endpoints::Responder for SocketGetIpv6ReceiveTrafficClassResponder {
15181 type ControlHandle = SocketControlHandle;
15182
15183 fn control_handle(&self) -> &SocketControlHandle {
15184 &self.control_handle
15185 }
15186
15187 fn drop_without_shutdown(mut self) {
15188 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15190 std::mem::forget(self);
15192 }
15193}
15194
15195impl SocketGetIpv6ReceiveTrafficClassResponder {
15196 pub fn send(
15200 self,
15201 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15202 ) -> Result<(), fidl::Error> {
15203 let _result = self.send_raw(result);
15204 if _result.is_err() {
15205 self.control_handle.shutdown();
15206 }
15207 self.drop_without_shutdown();
15208 _result
15209 }
15210
15211 pub fn send_no_shutdown_on_err(
15213 self,
15214 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15215 ) -> Result<(), fidl::Error> {
15216 let _result = self.send_raw(result);
15217 self.drop_without_shutdown();
15218 _result
15219 }
15220
15221 fn send_raw(
15222 &self,
15223 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15224 ) -> Result<(), fidl::Error> {
15225 self.control_handle.inner.send::<fidl::encoding::ResultType<
15226 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceiveTrafficClassResponse,
15227 fidl_fuchsia_posix::Errno,
15228 >>(
15229 result.map(|value| (value,)),
15230 self.tx_id,
15231 0x2e334df1da553ffa,
15232 fidl::encoding::DynamicFlags::empty(),
15233 )
15234 }
15235}
15236
15237#[must_use = "FIDL methods require a response to be sent"]
15238#[derive(Debug)]
15239pub struct SocketSetIpv6TrafficClassResponder {
15240 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15241 tx_id: u32,
15242}
15243
15244impl std::ops::Drop for SocketSetIpv6TrafficClassResponder {
15248 fn drop(&mut self) {
15249 self.control_handle.shutdown();
15250 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15252 }
15253}
15254
15255impl fidl::endpoints::Responder for SocketSetIpv6TrafficClassResponder {
15256 type ControlHandle = SocketControlHandle;
15257
15258 fn control_handle(&self) -> &SocketControlHandle {
15259 &self.control_handle
15260 }
15261
15262 fn drop_without_shutdown(mut self) {
15263 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15265 std::mem::forget(self);
15267 }
15268}
15269
15270impl SocketSetIpv6TrafficClassResponder {
15271 pub fn send(
15275 self,
15276 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15277 ) -> Result<(), fidl::Error> {
15278 let _result = self.send_raw(result);
15279 if _result.is_err() {
15280 self.control_handle.shutdown();
15281 }
15282 self.drop_without_shutdown();
15283 _result
15284 }
15285
15286 pub fn send_no_shutdown_on_err(
15288 self,
15289 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15290 ) -> Result<(), fidl::Error> {
15291 let _result = self.send_raw(result);
15292 self.drop_without_shutdown();
15293 _result
15294 }
15295
15296 fn send_raw(
15297 &self,
15298 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15299 ) -> Result<(), fidl::Error> {
15300 self.control_handle.inner.send::<fidl::encoding::ResultType<
15301 fidl::encoding::EmptyStruct,
15302 fidl_fuchsia_posix::Errno,
15303 >>(
15304 result,
15305 self.tx_id,
15306 0x6af077800c5a0b4f,
15307 fidl::encoding::DynamicFlags::empty(),
15308 )
15309 }
15310}
15311
15312#[must_use = "FIDL methods require a response to be sent"]
15313#[derive(Debug)]
15314pub struct SocketGetIpv6TrafficClassResponder {
15315 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15316 tx_id: u32,
15317}
15318
15319impl std::ops::Drop for SocketGetIpv6TrafficClassResponder {
15323 fn drop(&mut self) {
15324 self.control_handle.shutdown();
15325 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15327 }
15328}
15329
15330impl fidl::endpoints::Responder for SocketGetIpv6TrafficClassResponder {
15331 type ControlHandle = SocketControlHandle;
15332
15333 fn control_handle(&self) -> &SocketControlHandle {
15334 &self.control_handle
15335 }
15336
15337 fn drop_without_shutdown(mut self) {
15338 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15340 std::mem::forget(self);
15342 }
15343}
15344
15345impl SocketGetIpv6TrafficClassResponder {
15346 pub fn send(
15350 self,
15351 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
15352 ) -> Result<(), fidl::Error> {
15353 let _result = self.send_raw(result);
15354 if _result.is_err() {
15355 self.control_handle.shutdown();
15356 }
15357 self.drop_without_shutdown();
15358 _result
15359 }
15360
15361 pub fn send_no_shutdown_on_err(
15363 self,
15364 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
15365 ) -> Result<(), fidl::Error> {
15366 let _result = self.send_raw(result);
15367 self.drop_without_shutdown();
15368 _result
15369 }
15370
15371 fn send_raw(
15372 &self,
15373 mut result: Result<u8, fidl_fuchsia_posix::Errno>,
15374 ) -> Result<(), fidl::Error> {
15375 self.control_handle.inner.send::<fidl::encoding::ResultType<
15376 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6TrafficClassResponse,
15377 fidl_fuchsia_posix::Errno,
15378 >>(
15379 result.map(|value| (value,)),
15380 self.tx_id,
15381 0x6baf6eed8fc2f04,
15382 fidl::encoding::DynamicFlags::empty(),
15383 )
15384 }
15385}
15386
15387#[must_use = "FIDL methods require a response to be sent"]
15388#[derive(Debug)]
15389pub struct SocketSetIpv6ReceivePacketInfoResponder {
15390 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15391 tx_id: u32,
15392}
15393
15394impl std::ops::Drop for SocketSetIpv6ReceivePacketInfoResponder {
15398 fn drop(&mut self) {
15399 self.control_handle.shutdown();
15400 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15402 }
15403}
15404
15405impl fidl::endpoints::Responder for SocketSetIpv6ReceivePacketInfoResponder {
15406 type ControlHandle = SocketControlHandle;
15407
15408 fn control_handle(&self) -> &SocketControlHandle {
15409 &self.control_handle
15410 }
15411
15412 fn drop_without_shutdown(mut self) {
15413 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15415 std::mem::forget(self);
15417 }
15418}
15419
15420impl SocketSetIpv6ReceivePacketInfoResponder {
15421 pub fn send(
15425 self,
15426 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15427 ) -> Result<(), fidl::Error> {
15428 let _result = self.send_raw(result);
15429 if _result.is_err() {
15430 self.control_handle.shutdown();
15431 }
15432 self.drop_without_shutdown();
15433 _result
15434 }
15435
15436 pub fn send_no_shutdown_on_err(
15438 self,
15439 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15440 ) -> Result<(), fidl::Error> {
15441 let _result = self.send_raw(result);
15442 self.drop_without_shutdown();
15443 _result
15444 }
15445
15446 fn send_raw(
15447 &self,
15448 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15449 ) -> Result<(), fidl::Error> {
15450 self.control_handle.inner.send::<fidl::encoding::ResultType<
15451 fidl::encoding::EmptyStruct,
15452 fidl_fuchsia_posix::Errno,
15453 >>(
15454 result,
15455 self.tx_id,
15456 0x19259775b1a92768,
15457 fidl::encoding::DynamicFlags::empty(),
15458 )
15459 }
15460}
15461
15462#[must_use = "FIDL methods require a response to be sent"]
15463#[derive(Debug)]
15464pub struct SocketGetIpv6ReceivePacketInfoResponder {
15465 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15466 tx_id: u32,
15467}
15468
15469impl std::ops::Drop for SocketGetIpv6ReceivePacketInfoResponder {
15473 fn drop(&mut self) {
15474 self.control_handle.shutdown();
15475 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15477 }
15478}
15479
15480impl fidl::endpoints::Responder for SocketGetIpv6ReceivePacketInfoResponder {
15481 type ControlHandle = SocketControlHandle;
15482
15483 fn control_handle(&self) -> &SocketControlHandle {
15484 &self.control_handle
15485 }
15486
15487 fn drop_without_shutdown(mut self) {
15488 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15490 std::mem::forget(self);
15492 }
15493}
15494
15495impl SocketGetIpv6ReceivePacketInfoResponder {
15496 pub fn send(
15500 self,
15501 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15502 ) -> Result<(), fidl::Error> {
15503 let _result = self.send_raw(result);
15504 if _result.is_err() {
15505 self.control_handle.shutdown();
15506 }
15507 self.drop_without_shutdown();
15508 _result
15509 }
15510
15511 pub fn send_no_shutdown_on_err(
15513 self,
15514 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15515 ) -> Result<(), fidl::Error> {
15516 let _result = self.send_raw(result);
15517 self.drop_without_shutdown();
15518 _result
15519 }
15520
15521 fn send_raw(
15522 &self,
15523 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
15524 ) -> Result<(), fidl::Error> {
15525 self.control_handle.inner.send::<fidl::encoding::ResultType<
15526 fidl_fuchsia_posix_socket::BaseNetworkSocketGetIpv6ReceivePacketInfoResponse,
15527 fidl_fuchsia_posix::Errno,
15528 >>(
15529 result.map(|value| (value,)),
15530 self.tx_id,
15531 0x7acd4a2775baec75,
15532 fidl::encoding::DynamicFlags::empty(),
15533 )
15534 }
15535}
15536
15537#[must_use = "FIDL methods require a response to be sent"]
15538#[derive(Debug)]
15539pub struct SocketGetOriginalDestinationResponder {
15540 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15541 tx_id: u32,
15542}
15543
15544impl std::ops::Drop for SocketGetOriginalDestinationResponder {
15548 fn drop(&mut self) {
15549 self.control_handle.shutdown();
15550 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15552 }
15553}
15554
15555impl fidl::endpoints::Responder for SocketGetOriginalDestinationResponder {
15556 type ControlHandle = SocketControlHandle;
15557
15558 fn control_handle(&self) -> &SocketControlHandle {
15559 &self.control_handle
15560 }
15561
15562 fn drop_without_shutdown(mut self) {
15563 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15565 std::mem::forget(self);
15567 }
15568}
15569
15570impl SocketGetOriginalDestinationResponder {
15571 pub fn send(
15575 self,
15576 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
15577 ) -> Result<(), fidl::Error> {
15578 let _result = self.send_raw(result);
15579 if _result.is_err() {
15580 self.control_handle.shutdown();
15581 }
15582 self.drop_without_shutdown();
15583 _result
15584 }
15585
15586 pub fn send_no_shutdown_on_err(
15588 self,
15589 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
15590 ) -> Result<(), fidl::Error> {
15591 let _result = self.send_raw(result);
15592 self.drop_without_shutdown();
15593 _result
15594 }
15595
15596 fn send_raw(
15597 &self,
15598 mut result: Result<&fidl_fuchsia_net::SocketAddress, fidl_fuchsia_posix::Errno>,
15599 ) -> Result<(), fidl::Error> {
15600 self.control_handle.inner.send::<fidl::encoding::ResultType<
15601 fidl_fuchsia_posix_socket::BaseNetworkSocketGetOriginalDestinationResponse,
15602 fidl_fuchsia_posix::Errno,
15603 >>(
15604 result.map(|value| (value,)),
15605 self.tx_id,
15606 0x38bf28f0dafdbac0,
15607 fidl::encoding::DynamicFlags::empty(),
15608 )
15609 }
15610}
15611
15612#[must_use = "FIDL methods require a response to be sent"]
15613#[derive(Debug)]
15614pub struct SocketDescribeResponder {
15615 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15616 tx_id: u32,
15617}
15618
15619impl std::ops::Drop for SocketDescribeResponder {
15623 fn drop(&mut self) {
15624 self.control_handle.shutdown();
15625 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15627 }
15628}
15629
15630impl fidl::endpoints::Responder for SocketDescribeResponder {
15631 type ControlHandle = SocketControlHandle;
15632
15633 fn control_handle(&self) -> &SocketControlHandle {
15634 &self.control_handle
15635 }
15636
15637 fn drop_without_shutdown(mut self) {
15638 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15640 std::mem::forget(self);
15642 }
15643}
15644
15645impl SocketDescribeResponder {
15646 pub fn send(self, mut payload: SocketDescribeResponse) -> Result<(), fidl::Error> {
15650 let _result = self.send_raw(payload);
15651 if _result.is_err() {
15652 self.control_handle.shutdown();
15653 }
15654 self.drop_without_shutdown();
15655 _result
15656 }
15657
15658 pub fn send_no_shutdown_on_err(
15660 self,
15661 mut payload: SocketDescribeResponse,
15662 ) -> Result<(), fidl::Error> {
15663 let _result = self.send_raw(payload);
15664 self.drop_without_shutdown();
15665 _result
15666 }
15667
15668 fn send_raw(&self, mut payload: SocketDescribeResponse) -> Result<(), fidl::Error> {
15669 self.control_handle.inner.send::<SocketDescribeResponse>(
15670 &mut payload,
15671 self.tx_id,
15672 0x335706eccf54a135,
15673 fidl::encoding::DynamicFlags::empty(),
15674 )
15675 }
15676}
15677
15678#[must_use = "FIDL methods require a response to be sent"]
15679#[derive(Debug)]
15680pub struct SocketRecvMsgResponder {
15681 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15682 tx_id: u32,
15683}
15684
15685impl std::ops::Drop for SocketRecvMsgResponder {
15689 fn drop(&mut self) {
15690 self.control_handle.shutdown();
15691 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15693 }
15694}
15695
15696impl fidl::endpoints::Responder for SocketRecvMsgResponder {
15697 type ControlHandle = SocketControlHandle;
15698
15699 fn control_handle(&self) -> &SocketControlHandle {
15700 &self.control_handle
15701 }
15702
15703 fn drop_without_shutdown(mut self) {
15704 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15706 std::mem::forget(self);
15708 }
15709}
15710
15711impl SocketRecvMsgResponder {
15712 pub fn send(
15716 self,
15717 mut result: Result<
15718 (
15719 Option<&fidl_fuchsia_net::SocketAddress>,
15720 &[u8],
15721 &fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
15722 u32,
15723 ),
15724 fidl_fuchsia_posix::Errno,
15725 >,
15726 ) -> Result<(), fidl::Error> {
15727 let _result = self.send_raw(result);
15728 if _result.is_err() {
15729 self.control_handle.shutdown();
15730 }
15731 self.drop_without_shutdown();
15732 _result
15733 }
15734
15735 pub fn send_no_shutdown_on_err(
15737 self,
15738 mut result: Result<
15739 (
15740 Option<&fidl_fuchsia_net::SocketAddress>,
15741 &[u8],
15742 &fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
15743 u32,
15744 ),
15745 fidl_fuchsia_posix::Errno,
15746 >,
15747 ) -> Result<(), fidl::Error> {
15748 let _result = self.send_raw(result);
15749 self.drop_without_shutdown();
15750 _result
15751 }
15752
15753 fn send_raw(
15754 &self,
15755 mut result: Result<
15756 (
15757 Option<&fidl_fuchsia_net::SocketAddress>,
15758 &[u8],
15759 &fidl_fuchsia_posix_socket::NetworkSocketRecvControlData,
15760 u32,
15761 ),
15762 fidl_fuchsia_posix::Errno,
15763 >,
15764 ) -> Result<(), fidl::Error> {
15765 self.control_handle.inner.send::<fidl::encoding::ResultType<
15766 SocketRecvMsgResponse,
15767 fidl_fuchsia_posix::Errno,
15768 >>(
15769 result,
15770 self.tx_id,
15771 0x1dfb695351d3aa1d,
15772 fidl::encoding::DynamicFlags::empty(),
15773 )
15774 }
15775}
15776
15777#[must_use = "FIDL methods require a response to be sent"]
15778#[derive(Debug)]
15779pub struct SocketSendMsgResponder {
15780 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15781 tx_id: u32,
15782}
15783
15784impl std::ops::Drop for SocketSendMsgResponder {
15788 fn drop(&mut self) {
15789 self.control_handle.shutdown();
15790 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15792 }
15793}
15794
15795impl fidl::endpoints::Responder for SocketSendMsgResponder {
15796 type ControlHandle = SocketControlHandle;
15797
15798 fn control_handle(&self) -> &SocketControlHandle {
15799 &self.control_handle
15800 }
15801
15802 fn drop_without_shutdown(mut self) {
15803 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15805 std::mem::forget(self);
15807 }
15808}
15809
15810impl SocketSendMsgResponder {
15811 pub fn send(
15815 self,
15816 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15817 ) -> Result<(), fidl::Error> {
15818 let _result = self.send_raw(result);
15819 if _result.is_err() {
15820 self.control_handle.shutdown();
15821 }
15822 self.drop_without_shutdown();
15823 _result
15824 }
15825
15826 pub fn send_no_shutdown_on_err(
15828 self,
15829 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15830 ) -> Result<(), fidl::Error> {
15831 let _result = self.send_raw(result);
15832 self.drop_without_shutdown();
15833 _result
15834 }
15835
15836 fn send_raw(
15837 &self,
15838 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15839 ) -> Result<(), fidl::Error> {
15840 self.control_handle.inner.send::<fidl::encoding::ResultType<
15841 fidl::encoding::EmptyStruct,
15842 fidl_fuchsia_posix::Errno,
15843 >>(
15844 result,
15845 self.tx_id,
15846 0x2cf1eac9a7fc8958,
15847 fidl::encoding::DynamicFlags::empty(),
15848 )
15849 }
15850}
15851
15852#[must_use = "FIDL methods require a response to be sent"]
15853#[derive(Debug)]
15854pub struct SocketGetInfoResponder {
15855 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15856 tx_id: u32,
15857}
15858
15859impl std::ops::Drop for SocketGetInfoResponder {
15863 fn drop(&mut self) {
15864 self.control_handle.shutdown();
15865 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15867 }
15868}
15869
15870impl fidl::endpoints::Responder for SocketGetInfoResponder {
15871 type ControlHandle = SocketControlHandle;
15872
15873 fn control_handle(&self) -> &SocketControlHandle {
15874 &self.control_handle
15875 }
15876
15877 fn drop_without_shutdown(mut self) {
15878 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15880 std::mem::forget(self);
15882 }
15883}
15884
15885impl SocketGetInfoResponder {
15886 pub fn send(
15890 self,
15891 mut result: Result<
15892 (fidl_fuchsia_posix_socket::Domain, &ProtocolAssociation),
15893 fidl_fuchsia_posix::Errno,
15894 >,
15895 ) -> Result<(), fidl::Error> {
15896 let _result = self.send_raw(result);
15897 if _result.is_err() {
15898 self.control_handle.shutdown();
15899 }
15900 self.drop_without_shutdown();
15901 _result
15902 }
15903
15904 pub fn send_no_shutdown_on_err(
15906 self,
15907 mut result: Result<
15908 (fidl_fuchsia_posix_socket::Domain, &ProtocolAssociation),
15909 fidl_fuchsia_posix::Errno,
15910 >,
15911 ) -> Result<(), fidl::Error> {
15912 let _result = self.send_raw(result);
15913 self.drop_without_shutdown();
15914 _result
15915 }
15916
15917 fn send_raw(
15918 &self,
15919 mut result: Result<
15920 (fidl_fuchsia_posix_socket::Domain, &ProtocolAssociation),
15921 fidl_fuchsia_posix::Errno,
15922 >,
15923 ) -> Result<(), fidl::Error> {
15924 self.control_handle.inner.send::<fidl::encoding::ResultType<
15925 SocketGetInfoResponse,
15926 fidl_fuchsia_posix::Errno,
15927 >>(
15928 result,
15929 self.tx_id,
15930 0x39676f75aec339ba,
15931 fidl::encoding::DynamicFlags::empty(),
15932 )
15933 }
15934}
15935
15936#[must_use = "FIDL methods require a response to be sent"]
15937#[derive(Debug)]
15938pub struct SocketSetIpHeaderIncludedResponder {
15939 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
15940 tx_id: u32,
15941}
15942
15943impl std::ops::Drop for SocketSetIpHeaderIncludedResponder {
15947 fn drop(&mut self) {
15948 self.control_handle.shutdown();
15949 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15951 }
15952}
15953
15954impl fidl::endpoints::Responder for SocketSetIpHeaderIncludedResponder {
15955 type ControlHandle = SocketControlHandle;
15956
15957 fn control_handle(&self) -> &SocketControlHandle {
15958 &self.control_handle
15959 }
15960
15961 fn drop_without_shutdown(mut self) {
15962 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
15964 std::mem::forget(self);
15966 }
15967}
15968
15969impl SocketSetIpHeaderIncludedResponder {
15970 pub fn send(
15974 self,
15975 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15976 ) -> Result<(), fidl::Error> {
15977 let _result = self.send_raw(result);
15978 if _result.is_err() {
15979 self.control_handle.shutdown();
15980 }
15981 self.drop_without_shutdown();
15982 _result
15983 }
15984
15985 pub fn send_no_shutdown_on_err(
15987 self,
15988 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15989 ) -> Result<(), fidl::Error> {
15990 let _result = self.send_raw(result);
15991 self.drop_without_shutdown();
15992 _result
15993 }
15994
15995 fn send_raw(
15996 &self,
15997 mut result: Result<(), fidl_fuchsia_posix::Errno>,
15998 ) -> Result<(), fidl::Error> {
15999 self.control_handle.inner.send::<fidl::encoding::ResultType<
16000 fidl::encoding::EmptyStruct,
16001 fidl_fuchsia_posix::Errno,
16002 >>(
16003 result,
16004 self.tx_id,
16005 0x5d06a606d95e8f3,
16006 fidl::encoding::DynamicFlags::empty(),
16007 )
16008 }
16009}
16010
16011#[must_use = "FIDL methods require a response to be sent"]
16012#[derive(Debug)]
16013pub struct SocketGetIpHeaderIncludedResponder {
16014 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
16015 tx_id: u32,
16016}
16017
16018impl std::ops::Drop for SocketGetIpHeaderIncludedResponder {
16022 fn drop(&mut self) {
16023 self.control_handle.shutdown();
16024 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16026 }
16027}
16028
16029impl fidl::endpoints::Responder for SocketGetIpHeaderIncludedResponder {
16030 type ControlHandle = SocketControlHandle;
16031
16032 fn control_handle(&self) -> &SocketControlHandle {
16033 &self.control_handle
16034 }
16035
16036 fn drop_without_shutdown(mut self) {
16037 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16039 std::mem::forget(self);
16041 }
16042}
16043
16044impl SocketGetIpHeaderIncludedResponder {
16045 pub fn send(
16049 self,
16050 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
16051 ) -> Result<(), fidl::Error> {
16052 let _result = self.send_raw(result);
16053 if _result.is_err() {
16054 self.control_handle.shutdown();
16055 }
16056 self.drop_without_shutdown();
16057 _result
16058 }
16059
16060 pub fn send_no_shutdown_on_err(
16062 self,
16063 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
16064 ) -> Result<(), fidl::Error> {
16065 let _result = self.send_raw(result);
16066 self.drop_without_shutdown();
16067 _result
16068 }
16069
16070 fn send_raw(
16071 &self,
16072 mut result: Result<bool, fidl_fuchsia_posix::Errno>,
16073 ) -> Result<(), fidl::Error> {
16074 self.control_handle.inner.send::<fidl::encoding::ResultType<
16075 SocketGetIpHeaderIncludedResponse,
16076 fidl_fuchsia_posix::Errno,
16077 >>(
16078 result.map(|value| (value,)),
16079 self.tx_id,
16080 0x76125ad1f4d175f6,
16081 fidl::encoding::DynamicFlags::empty(),
16082 )
16083 }
16084}
16085
16086#[must_use = "FIDL methods require a response to be sent"]
16087#[derive(Debug)]
16088pub struct SocketSetIcmpv6FilterResponder {
16089 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
16090 tx_id: u32,
16091}
16092
16093impl std::ops::Drop for SocketSetIcmpv6FilterResponder {
16097 fn drop(&mut self) {
16098 self.control_handle.shutdown();
16099 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16101 }
16102}
16103
16104impl fidl::endpoints::Responder for SocketSetIcmpv6FilterResponder {
16105 type ControlHandle = SocketControlHandle;
16106
16107 fn control_handle(&self) -> &SocketControlHandle {
16108 &self.control_handle
16109 }
16110
16111 fn drop_without_shutdown(mut self) {
16112 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16114 std::mem::forget(self);
16116 }
16117}
16118
16119impl SocketSetIcmpv6FilterResponder {
16120 pub fn send(
16124 self,
16125 mut result: Result<(), fidl_fuchsia_posix::Errno>,
16126 ) -> Result<(), fidl::Error> {
16127 let _result = self.send_raw(result);
16128 if _result.is_err() {
16129 self.control_handle.shutdown();
16130 }
16131 self.drop_without_shutdown();
16132 _result
16133 }
16134
16135 pub fn send_no_shutdown_on_err(
16137 self,
16138 mut result: Result<(), fidl_fuchsia_posix::Errno>,
16139 ) -> Result<(), fidl::Error> {
16140 let _result = self.send_raw(result);
16141 self.drop_without_shutdown();
16142 _result
16143 }
16144
16145 fn send_raw(
16146 &self,
16147 mut result: Result<(), fidl_fuchsia_posix::Errno>,
16148 ) -> Result<(), fidl::Error> {
16149 self.control_handle.inner.send::<fidl::encoding::ResultType<
16150 fidl::encoding::EmptyStruct,
16151 fidl_fuchsia_posix::Errno,
16152 >>(
16153 result,
16154 self.tx_id,
16155 0x4ebea92a43ae68a9,
16156 fidl::encoding::DynamicFlags::empty(),
16157 )
16158 }
16159}
16160
16161#[must_use = "FIDL methods require a response to be sent"]
16162#[derive(Debug)]
16163pub struct SocketGetIcmpv6FilterResponder {
16164 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
16165 tx_id: u32,
16166}
16167
16168impl std::ops::Drop for SocketGetIcmpv6FilterResponder {
16172 fn drop(&mut self) {
16173 self.control_handle.shutdown();
16174 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16176 }
16177}
16178
16179impl fidl::endpoints::Responder for SocketGetIcmpv6FilterResponder {
16180 type ControlHandle = SocketControlHandle;
16181
16182 fn control_handle(&self) -> &SocketControlHandle {
16183 &self.control_handle
16184 }
16185
16186 fn drop_without_shutdown(mut self) {
16187 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16189 std::mem::forget(self);
16191 }
16192}
16193
16194impl SocketGetIcmpv6FilterResponder {
16195 pub fn send(
16199 self,
16200 mut result: Result<&Icmpv6Filter, fidl_fuchsia_posix::Errno>,
16201 ) -> Result<(), fidl::Error> {
16202 let _result = self.send_raw(result);
16203 if _result.is_err() {
16204 self.control_handle.shutdown();
16205 }
16206 self.drop_without_shutdown();
16207 _result
16208 }
16209
16210 pub fn send_no_shutdown_on_err(
16212 self,
16213 mut result: Result<&Icmpv6Filter, fidl_fuchsia_posix::Errno>,
16214 ) -> Result<(), fidl::Error> {
16215 let _result = self.send_raw(result);
16216 self.drop_without_shutdown();
16217 _result
16218 }
16219
16220 fn send_raw(
16221 &self,
16222 mut result: Result<&Icmpv6Filter, fidl_fuchsia_posix::Errno>,
16223 ) -> Result<(), fidl::Error> {
16224 self.control_handle.inner.send::<fidl::encoding::ResultType<
16225 SocketGetIcmpv6FilterResponse,
16226 fidl_fuchsia_posix::Errno,
16227 >>(
16228 result.map(|filter| (filter,)),
16229 self.tx_id,
16230 0x43bd4f3bc0970ace,
16231 fidl::encoding::DynamicFlags::empty(),
16232 )
16233 }
16234}
16235
16236#[must_use = "FIDL methods require a response to be sent"]
16237#[derive(Debug)]
16238pub struct SocketSetIpv6ChecksumResponder {
16239 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
16240 tx_id: u32,
16241}
16242
16243impl std::ops::Drop for SocketSetIpv6ChecksumResponder {
16247 fn drop(&mut self) {
16248 self.control_handle.shutdown();
16249 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16251 }
16252}
16253
16254impl fidl::endpoints::Responder for SocketSetIpv6ChecksumResponder {
16255 type ControlHandle = SocketControlHandle;
16256
16257 fn control_handle(&self) -> &SocketControlHandle {
16258 &self.control_handle
16259 }
16260
16261 fn drop_without_shutdown(mut self) {
16262 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16264 std::mem::forget(self);
16266 }
16267}
16268
16269impl SocketSetIpv6ChecksumResponder {
16270 pub fn send(
16274 self,
16275 mut result: Result<(), fidl_fuchsia_posix::Errno>,
16276 ) -> Result<(), fidl::Error> {
16277 let _result = self.send_raw(result);
16278 if _result.is_err() {
16279 self.control_handle.shutdown();
16280 }
16281 self.drop_without_shutdown();
16282 _result
16283 }
16284
16285 pub fn send_no_shutdown_on_err(
16287 self,
16288 mut result: Result<(), fidl_fuchsia_posix::Errno>,
16289 ) -> Result<(), fidl::Error> {
16290 let _result = self.send_raw(result);
16291 self.drop_without_shutdown();
16292 _result
16293 }
16294
16295 fn send_raw(
16296 &self,
16297 mut result: Result<(), fidl_fuchsia_posix::Errno>,
16298 ) -> Result<(), fidl::Error> {
16299 self.control_handle.inner.send::<fidl::encoding::ResultType<
16300 fidl::encoding::EmptyStruct,
16301 fidl_fuchsia_posix::Errno,
16302 >>(
16303 result,
16304 self.tx_id,
16305 0x18b7809577199cb4,
16306 fidl::encoding::DynamicFlags::empty(),
16307 )
16308 }
16309}
16310
16311#[must_use = "FIDL methods require a response to be sent"]
16312#[derive(Debug)]
16313pub struct SocketGetIpv6ChecksumResponder {
16314 control_handle: std::mem::ManuallyDrop<SocketControlHandle>,
16315 tx_id: u32,
16316}
16317
16318impl std::ops::Drop for SocketGetIpv6ChecksumResponder {
16322 fn drop(&mut self) {
16323 self.control_handle.shutdown();
16324 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16326 }
16327}
16328
16329impl fidl::endpoints::Responder for SocketGetIpv6ChecksumResponder {
16330 type ControlHandle = SocketControlHandle;
16331
16332 fn control_handle(&self) -> &SocketControlHandle {
16333 &self.control_handle
16334 }
16335
16336 fn drop_without_shutdown(mut self) {
16337 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
16339 std::mem::forget(self);
16341 }
16342}
16343
16344impl SocketGetIpv6ChecksumResponder {
16345 pub fn send(
16349 self,
16350 mut result: Result<&Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>,
16351 ) -> Result<(), fidl::Error> {
16352 let _result = self.send_raw(result);
16353 if _result.is_err() {
16354 self.control_handle.shutdown();
16355 }
16356 self.drop_without_shutdown();
16357 _result
16358 }
16359
16360 pub fn send_no_shutdown_on_err(
16362 self,
16363 mut result: Result<&Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>,
16364 ) -> Result<(), fidl::Error> {
16365 let _result = self.send_raw(result);
16366 self.drop_without_shutdown();
16367 _result
16368 }
16369
16370 fn send_raw(
16371 &self,
16372 mut result: Result<&Ipv6ChecksumConfiguration, fidl_fuchsia_posix::Errno>,
16373 ) -> Result<(), fidl::Error> {
16374 self.control_handle.inner.send::<fidl::encoding::ResultType<
16375 SocketGetIpv6ChecksumResponse,
16376 fidl_fuchsia_posix::Errno,
16377 >>(
16378 result.map(|config| (config,)),
16379 self.tx_id,
16380 0x1847bf5b2d263dd,
16381 fidl::encoding::DynamicFlags::empty(),
16382 )
16383 }
16384}
16385
16386mod internal {
16387 use super::*;
16388
16389 impl fidl::encoding::ResourceTypeMarker for ProviderSocketWithOptionsResponse {
16390 type Borrowed<'a> = &'a mut Self;
16391 fn take_or_borrow<'a>(
16392 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
16393 ) -> Self::Borrowed<'a> {
16394 value
16395 }
16396 }
16397
16398 unsafe impl fidl::encoding::TypeMarker for ProviderSocketWithOptionsResponse {
16399 type Owned = Self;
16400
16401 #[inline(always)]
16402 fn inline_align(_context: fidl::encoding::Context) -> usize {
16403 4
16404 }
16405
16406 #[inline(always)]
16407 fn inline_size(_context: fidl::encoding::Context) -> usize {
16408 4
16409 }
16410 }
16411
16412 unsafe impl
16413 fidl::encoding::Encode<
16414 ProviderSocketWithOptionsResponse,
16415 fidl::encoding::DefaultFuchsiaResourceDialect,
16416 > for &mut ProviderSocketWithOptionsResponse
16417 {
16418 #[inline]
16419 unsafe fn encode(
16420 self,
16421 encoder: &mut fidl::encoding::Encoder<
16422 '_,
16423 fidl::encoding::DefaultFuchsiaResourceDialect,
16424 >,
16425 offset: usize,
16426 _depth: fidl::encoding::Depth,
16427 ) -> fidl::Result<()> {
16428 encoder.debug_check_bounds::<ProviderSocketWithOptionsResponse>(offset);
16429 fidl::encoding::Encode::<ProviderSocketWithOptionsResponse, fidl::encoding::DefaultFuchsiaResourceDialect>::encode(
16431 (
16432 <fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>> as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.s),
16433 ),
16434 encoder, offset, _depth
16435 )
16436 }
16437 }
16438 unsafe impl<
16439 T0: fidl::encoding::Encode<
16440 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
16441 fidl::encoding::DefaultFuchsiaResourceDialect,
16442 >,
16443 >
16444 fidl::encoding::Encode<
16445 ProviderSocketWithOptionsResponse,
16446 fidl::encoding::DefaultFuchsiaResourceDialect,
16447 > for (T0,)
16448 {
16449 #[inline]
16450 unsafe fn encode(
16451 self,
16452 encoder: &mut fidl::encoding::Encoder<
16453 '_,
16454 fidl::encoding::DefaultFuchsiaResourceDialect,
16455 >,
16456 offset: usize,
16457 depth: fidl::encoding::Depth,
16458 ) -> fidl::Result<()> {
16459 encoder.debug_check_bounds::<ProviderSocketWithOptionsResponse>(offset);
16460 self.0.encode(encoder, offset + 0, depth)?;
16464 Ok(())
16465 }
16466 }
16467
16468 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
16469 for ProviderSocketWithOptionsResponse
16470 {
16471 #[inline(always)]
16472 fn new_empty() -> Self {
16473 Self {
16474 s: fidl::new_empty!(
16475 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
16476 fidl::encoding::DefaultFuchsiaResourceDialect
16477 ),
16478 }
16479 }
16480
16481 #[inline]
16482 unsafe fn decode(
16483 &mut self,
16484 decoder: &mut fidl::encoding::Decoder<
16485 '_,
16486 fidl::encoding::DefaultFuchsiaResourceDialect,
16487 >,
16488 offset: usize,
16489 _depth: fidl::encoding::Depth,
16490 ) -> fidl::Result<()> {
16491 decoder.debug_check_bounds::<Self>(offset);
16492 fidl::decode!(
16494 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
16495 fidl::encoding::DefaultFuchsiaResourceDialect,
16496 &mut self.s,
16497 decoder,
16498 offset + 0,
16499 _depth
16500 )?;
16501 Ok(())
16502 }
16503 }
16504
16505 impl fidl::encoding::ResourceTypeMarker for ProviderSocketResponse {
16506 type Borrowed<'a> = &'a mut Self;
16507 fn take_or_borrow<'a>(
16508 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
16509 ) -> Self::Borrowed<'a> {
16510 value
16511 }
16512 }
16513
16514 unsafe impl fidl::encoding::TypeMarker for ProviderSocketResponse {
16515 type Owned = Self;
16516
16517 #[inline(always)]
16518 fn inline_align(_context: fidl::encoding::Context) -> usize {
16519 4
16520 }
16521
16522 #[inline(always)]
16523 fn inline_size(_context: fidl::encoding::Context) -> usize {
16524 4
16525 }
16526 }
16527
16528 unsafe impl
16529 fidl::encoding::Encode<
16530 ProviderSocketResponse,
16531 fidl::encoding::DefaultFuchsiaResourceDialect,
16532 > for &mut ProviderSocketResponse
16533 {
16534 #[inline]
16535 unsafe fn encode(
16536 self,
16537 encoder: &mut fidl::encoding::Encoder<
16538 '_,
16539 fidl::encoding::DefaultFuchsiaResourceDialect,
16540 >,
16541 offset: usize,
16542 _depth: fidl::encoding::Depth,
16543 ) -> fidl::Result<()> {
16544 encoder.debug_check_bounds::<ProviderSocketResponse>(offset);
16545 fidl::encoding::Encode::<ProviderSocketResponse, fidl::encoding::DefaultFuchsiaResourceDialect>::encode(
16547 (
16548 <fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>> as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.s),
16549 ),
16550 encoder, offset, _depth
16551 )
16552 }
16553 }
16554 unsafe impl<
16555 T0: fidl::encoding::Encode<
16556 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
16557 fidl::encoding::DefaultFuchsiaResourceDialect,
16558 >,
16559 >
16560 fidl::encoding::Encode<
16561 ProviderSocketResponse,
16562 fidl::encoding::DefaultFuchsiaResourceDialect,
16563 > for (T0,)
16564 {
16565 #[inline]
16566 unsafe fn encode(
16567 self,
16568 encoder: &mut fidl::encoding::Encoder<
16569 '_,
16570 fidl::encoding::DefaultFuchsiaResourceDialect,
16571 >,
16572 offset: usize,
16573 depth: fidl::encoding::Depth,
16574 ) -> fidl::Result<()> {
16575 encoder.debug_check_bounds::<ProviderSocketResponse>(offset);
16576 self.0.encode(encoder, offset + 0, depth)?;
16580 Ok(())
16581 }
16582 }
16583
16584 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
16585 for ProviderSocketResponse
16586 {
16587 #[inline(always)]
16588 fn new_empty() -> Self {
16589 Self {
16590 s: fidl::new_empty!(
16591 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
16592 fidl::encoding::DefaultFuchsiaResourceDialect
16593 ),
16594 }
16595 }
16596
16597 #[inline]
16598 unsafe fn decode(
16599 &mut self,
16600 decoder: &mut fidl::encoding::Decoder<
16601 '_,
16602 fidl::encoding::DefaultFuchsiaResourceDialect,
16603 >,
16604 offset: usize,
16605 _depth: fidl::encoding::Depth,
16606 ) -> fidl::Result<()> {
16607 decoder.debug_check_bounds::<Self>(offset);
16608 fidl::decode!(
16610 fidl::encoding::Endpoint<fidl::endpoints::ClientEnd<SocketMarker>>,
16611 fidl::encoding::DefaultFuchsiaResourceDialect,
16612 &mut self.s,
16613 decoder,
16614 offset + 0,
16615 _depth
16616 )?;
16617 Ok(())
16618 }
16619 }
16620
16621 impl SocketDescribeResponse {
16622 #[inline(always)]
16623 fn max_ordinal_present(&self) -> u64 {
16624 if let Some(_) = self.event {
16625 return 1;
16626 }
16627 0
16628 }
16629 }
16630
16631 impl fidl::encoding::ResourceTypeMarker for SocketDescribeResponse {
16632 type Borrowed<'a> = &'a mut Self;
16633 fn take_or_borrow<'a>(
16634 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
16635 ) -> Self::Borrowed<'a> {
16636 value
16637 }
16638 }
16639
16640 unsafe impl fidl::encoding::TypeMarker for SocketDescribeResponse {
16641 type Owned = Self;
16642
16643 #[inline(always)]
16644 fn inline_align(_context: fidl::encoding::Context) -> usize {
16645 8
16646 }
16647
16648 #[inline(always)]
16649 fn inline_size(_context: fidl::encoding::Context) -> usize {
16650 16
16651 }
16652 }
16653
16654 unsafe impl
16655 fidl::encoding::Encode<
16656 SocketDescribeResponse,
16657 fidl::encoding::DefaultFuchsiaResourceDialect,
16658 > for &mut SocketDescribeResponse
16659 {
16660 unsafe fn encode(
16661 self,
16662 encoder: &mut fidl::encoding::Encoder<
16663 '_,
16664 fidl::encoding::DefaultFuchsiaResourceDialect,
16665 >,
16666 offset: usize,
16667 mut depth: fidl::encoding::Depth,
16668 ) -> fidl::Result<()> {
16669 encoder.debug_check_bounds::<SocketDescribeResponse>(offset);
16670 let max_ordinal: u64 = self.max_ordinal_present();
16672 encoder.write_num(max_ordinal, offset);
16673 encoder.write_num(fidl::encoding::ALLOC_PRESENT_U64, offset + 8);
16674 if max_ordinal == 0 {
16676 return Ok(());
16677 }
16678 depth.increment()?;
16679 let envelope_size = 8;
16680 let bytes_len = max_ordinal as usize * envelope_size;
16681 #[allow(unused_variables)]
16682 let offset = encoder.out_of_line_offset(bytes_len);
16683 let mut _prev_end_offset: usize = 0;
16684 if 1 > max_ordinal {
16685 return Ok(());
16686 }
16687
16688 let cur_offset: usize = (1 - 1) * envelope_size;
16691
16692 encoder.padding(offset + _prev_end_offset, cur_offset - _prev_end_offset);
16694
16695 fidl::encoding::encode_in_envelope_optional::<
16700 fidl::encoding::HandleType<
16701 fidl::EventPair,
16702 { fidl::ObjectType::EVENTPAIR.into_raw() },
16703 2147483648,
16704 >,
16705 fidl::encoding::DefaultFuchsiaResourceDialect,
16706 >(
16707 self.event.as_mut().map(
16708 <fidl::encoding::HandleType<
16709 fidl::EventPair,
16710 { fidl::ObjectType::EVENTPAIR.into_raw() },
16711 2147483648,
16712 > as fidl::encoding::ResourceTypeMarker>::take_or_borrow,
16713 ),
16714 encoder,
16715 offset + cur_offset,
16716 depth,
16717 )?;
16718
16719 _prev_end_offset = cur_offset + envelope_size;
16720
16721 Ok(())
16722 }
16723 }
16724
16725 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
16726 for SocketDescribeResponse
16727 {
16728 #[inline(always)]
16729 fn new_empty() -> Self {
16730 Self::default()
16731 }
16732
16733 unsafe fn decode(
16734 &mut self,
16735 decoder: &mut fidl::encoding::Decoder<
16736 '_,
16737 fidl::encoding::DefaultFuchsiaResourceDialect,
16738 >,
16739 offset: usize,
16740 mut depth: fidl::encoding::Depth,
16741 ) -> fidl::Result<()> {
16742 decoder.debug_check_bounds::<Self>(offset);
16743 let len = match fidl::encoding::decode_vector_header(decoder, offset)? {
16744 None => return Err(fidl::Error::NotNullable),
16745 Some(len) => len,
16746 };
16747 if len == 0 {
16749 return Ok(());
16750 };
16751 depth.increment()?;
16752 let envelope_size = 8;
16753 let bytes_len = len * envelope_size;
16754 let offset = decoder.out_of_line_offset(bytes_len)?;
16755 let mut _next_ordinal_to_read = 0;
16757 let mut next_offset = offset;
16758 let end_offset = offset + bytes_len;
16759 _next_ordinal_to_read += 1;
16760 if next_offset >= end_offset {
16761 return Ok(());
16762 }
16763
16764 while _next_ordinal_to_read < 1 {
16766 fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
16767 _next_ordinal_to_read += 1;
16768 next_offset += envelope_size;
16769 }
16770
16771 let next_out_of_line = decoder.next_out_of_line();
16772 let handles_before = decoder.remaining_handles();
16773 if let Some((inlined, num_bytes, num_handles)) =
16774 fidl::encoding::decode_envelope_header(decoder, next_offset)?
16775 {
16776 let member_inline_size = <fidl::encoding::HandleType<
16777 fidl::EventPair,
16778 { fidl::ObjectType::EVENTPAIR.into_raw() },
16779 2147483648,
16780 > as fidl::encoding::TypeMarker>::inline_size(
16781 decoder.context
16782 );
16783 if inlined != (member_inline_size <= 4) {
16784 return Err(fidl::Error::InvalidInlineBitInEnvelope);
16785 }
16786 let inner_offset;
16787 let mut inner_depth = depth.clone();
16788 if inlined {
16789 decoder.check_inline_envelope_padding(next_offset, member_inline_size)?;
16790 inner_offset = next_offset;
16791 } else {
16792 inner_offset = decoder.out_of_line_offset(member_inline_size)?;
16793 inner_depth.increment()?;
16794 }
16795 let val_ref =
16796 self.event.get_or_insert_with(|| fidl::new_empty!(fidl::encoding::HandleType<fidl::EventPair, { fidl::ObjectType::EVENTPAIR.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect));
16797 fidl::decode!(fidl::encoding::HandleType<fidl::EventPair, { fidl::ObjectType::EVENTPAIR.into_raw() }, 2147483648>, fidl::encoding::DefaultFuchsiaResourceDialect, val_ref, decoder, inner_offset, inner_depth)?;
16798 if !inlined && decoder.next_out_of_line() != next_out_of_line + (num_bytes as usize)
16799 {
16800 return Err(fidl::Error::InvalidNumBytesInEnvelope);
16801 }
16802 if handles_before != decoder.remaining_handles() + (num_handles as usize) {
16803 return Err(fidl::Error::InvalidNumHandlesInEnvelope);
16804 }
16805 }
16806
16807 next_offset += envelope_size;
16808
16809 while next_offset < end_offset {
16811 _next_ordinal_to_read += 1;
16812 fidl::encoding::decode_unknown_envelope(decoder, next_offset, depth)?;
16813 next_offset += envelope_size;
16814 }
16815
16816 Ok(())
16817 }
16818 }
16819}