Skip to main content

fidl_next_common_fuchsia_process/
fidl_next_common_fuchsia_process.rs

1// DO NOT EDIT: This file is machine-generated by fidlgen
2#![warn(clippy::all)]
3#![allow(unused_parens, unused_variables, unused_mut, unused_imports, unreachable_code)]
4
5pub mod natural {
6
7    #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
8    pub struct LauncherAddArgsRequest {
9        pub args: ::std::vec::Vec<::std::vec::Vec<u8>>,
10    }
11
12    unsafe impl<___E> ::fidl_next::Encode<crate::wire::LauncherAddArgsRequest<'static>, ___E>
13        for LauncherAddArgsRequest
14    where
15        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
16        ___E: ::fidl_next::Encoder,
17    {
18        #[inline]
19        fn encode(
20            self,
21            encoder_: &mut ___E,
22            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddArgsRequest<'static>>,
23            _: (),
24        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
25            ::fidl_next::munge! {
26                let crate::wire::LauncherAddArgsRequest {
27                    args,
28
29                } = out_;
30            }
31
32            ::fidl_next::Encode::encode(self.args, encoder_, args, (4294967295, (4294967295, ())))?;
33
34            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(args.as_mut_ptr()) };
35            ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
36
37            Ok(())
38        }
39    }
40
41    unsafe impl<'a, ___E> ::fidl_next::Encode<crate::wire::LauncherAddArgsRequest<'static>, ___E>
42        for &'a LauncherAddArgsRequest
43    where
44        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
45        ___E: ::fidl_next::Encoder,
46    {
47        #[inline]
48        fn encode(
49            self,
50            encoder_: &mut ___E,
51            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddArgsRequest<'static>>,
52            _: (),
53        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
54            ::fidl_next::munge! {
55                let crate::wire::LauncherAddArgsRequest {
56                    args,
57
58                } = out_;
59            }
60
61            ::fidl_next::Encode::encode(
62                &self.args,
63                encoder_,
64                args,
65                (4294967295, (4294967295, ())),
66            )?;
67
68            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(args.as_mut_ptr()) };
69            ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
70
71            Ok(())
72        }
73    }
74
75    unsafe impl<___E>
76        ::fidl_next::EncodeOption<
77            ::fidl_next::wire::Box<'static, crate::wire::LauncherAddArgsRequest<'static>>,
78            ___E,
79        > for LauncherAddArgsRequest
80    where
81        ___E: ::fidl_next::Encoder + ?Sized,
82        LauncherAddArgsRequest:
83            ::fidl_next::Encode<crate::wire::LauncherAddArgsRequest<'static>, ___E>,
84    {
85        #[inline]
86        fn encode_option(
87            this: ::core::option::Option<Self>,
88            encoder: &mut ___E,
89            out: &mut ::core::mem::MaybeUninit<
90                ::fidl_next::wire::Box<'static, crate::wire::LauncherAddArgsRequest<'static>>,
91            >,
92            _: (),
93        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
94            if let Some(inner) = this {
95                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
96                ::fidl_next::wire::Box::encode_present(out);
97            } else {
98                ::fidl_next::wire::Box::encode_absent(out);
99            }
100
101            Ok(())
102        }
103    }
104
105    unsafe impl<'a, ___E>
106        ::fidl_next::EncodeOption<
107            ::fidl_next::wire::Box<'static, crate::wire::LauncherAddArgsRequest<'static>>,
108            ___E,
109        > for &'a LauncherAddArgsRequest
110    where
111        ___E: ::fidl_next::Encoder + ?Sized,
112        &'a LauncherAddArgsRequest:
113            ::fidl_next::Encode<crate::wire::LauncherAddArgsRequest<'static>, ___E>,
114    {
115        #[inline]
116        fn encode_option(
117            this: ::core::option::Option<Self>,
118            encoder: &mut ___E,
119            out: &mut ::core::mem::MaybeUninit<
120                ::fidl_next::wire::Box<'static, crate::wire::LauncherAddArgsRequest<'static>>,
121            >,
122            _: (),
123        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
124            if let Some(inner) = this {
125                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
126                ::fidl_next::wire::Box::encode_present(out);
127            } else {
128                ::fidl_next::wire::Box::encode_absent(out);
129            }
130
131            Ok(())
132        }
133    }
134
135    impl<'de> ::fidl_next::FromWire<crate::wire::LauncherAddArgsRequest<'de>>
136        for LauncherAddArgsRequest
137    {
138        #[inline]
139        fn from_wire(wire: crate::wire::LauncherAddArgsRequest<'de>) -> Self {
140            Self { args: ::fidl_next::FromWire::from_wire(wire.args) }
141        }
142    }
143
144    impl<'de> ::fidl_next::FromWireRef<crate::wire::LauncherAddArgsRequest<'de>>
145        for LauncherAddArgsRequest
146    {
147        #[inline]
148        fn from_wire_ref(wire: &crate::wire::LauncherAddArgsRequest<'de>) -> Self {
149            Self { args: ::fidl_next::FromWireRef::from_wire_ref(&wire.args) }
150        }
151    }
152
153    #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
154    pub struct LauncherAddEnvironsRequest {
155        pub environ: ::std::vec::Vec<::std::vec::Vec<u8>>,
156    }
157
158    unsafe impl<___E> ::fidl_next::Encode<crate::wire::LauncherAddEnvironsRequest<'static>, ___E>
159        for LauncherAddEnvironsRequest
160    where
161        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
162        ___E: ::fidl_next::Encoder,
163    {
164        #[inline]
165        fn encode(
166            self,
167            encoder_: &mut ___E,
168            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddEnvironsRequest<'static>>,
169            _: (),
170        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
171            ::fidl_next::munge! {
172                let crate::wire::LauncherAddEnvironsRequest {
173                    environ,
174
175                } = out_;
176            }
177
178            ::fidl_next::Encode::encode(
179                self.environ,
180                encoder_,
181                environ,
182                (4294967295, (4294967295, ())),
183            )?;
184
185            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(environ.as_mut_ptr()) };
186            ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
187
188            Ok(())
189        }
190    }
191
192    unsafe impl<'a, ___E>
193        ::fidl_next::Encode<crate::wire::LauncherAddEnvironsRequest<'static>, ___E>
194        for &'a LauncherAddEnvironsRequest
195    where
196        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
197        ___E: ::fidl_next::Encoder,
198    {
199        #[inline]
200        fn encode(
201            self,
202            encoder_: &mut ___E,
203            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddEnvironsRequest<'static>>,
204            _: (),
205        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
206            ::fidl_next::munge! {
207                let crate::wire::LauncherAddEnvironsRequest {
208                    environ,
209
210                } = out_;
211            }
212
213            ::fidl_next::Encode::encode(
214                &self.environ,
215                encoder_,
216                environ,
217                (4294967295, (4294967295, ())),
218            )?;
219
220            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(environ.as_mut_ptr()) };
221            ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
222
223            Ok(())
224        }
225    }
226
227    unsafe impl<___E>
228        ::fidl_next::EncodeOption<
229            ::fidl_next::wire::Box<'static, crate::wire::LauncherAddEnvironsRequest<'static>>,
230            ___E,
231        > for LauncherAddEnvironsRequest
232    where
233        ___E: ::fidl_next::Encoder + ?Sized,
234        LauncherAddEnvironsRequest:
235            ::fidl_next::Encode<crate::wire::LauncherAddEnvironsRequest<'static>, ___E>,
236    {
237        #[inline]
238        fn encode_option(
239            this: ::core::option::Option<Self>,
240            encoder: &mut ___E,
241            out: &mut ::core::mem::MaybeUninit<
242                ::fidl_next::wire::Box<'static, crate::wire::LauncherAddEnvironsRequest<'static>>,
243            >,
244            _: (),
245        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
246            if let Some(inner) = this {
247                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
248                ::fidl_next::wire::Box::encode_present(out);
249            } else {
250                ::fidl_next::wire::Box::encode_absent(out);
251            }
252
253            Ok(())
254        }
255    }
256
257    unsafe impl<'a, ___E>
258        ::fidl_next::EncodeOption<
259            ::fidl_next::wire::Box<'static, crate::wire::LauncherAddEnvironsRequest<'static>>,
260            ___E,
261        > for &'a LauncherAddEnvironsRequest
262    where
263        ___E: ::fidl_next::Encoder + ?Sized,
264        &'a LauncherAddEnvironsRequest:
265            ::fidl_next::Encode<crate::wire::LauncherAddEnvironsRequest<'static>, ___E>,
266    {
267        #[inline]
268        fn encode_option(
269            this: ::core::option::Option<Self>,
270            encoder: &mut ___E,
271            out: &mut ::core::mem::MaybeUninit<
272                ::fidl_next::wire::Box<'static, crate::wire::LauncherAddEnvironsRequest<'static>>,
273            >,
274            _: (),
275        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
276            if let Some(inner) = this {
277                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
278                ::fidl_next::wire::Box::encode_present(out);
279            } else {
280                ::fidl_next::wire::Box::encode_absent(out);
281            }
282
283            Ok(())
284        }
285    }
286
287    impl<'de> ::fidl_next::FromWire<crate::wire::LauncherAddEnvironsRequest<'de>>
288        for LauncherAddEnvironsRequest
289    {
290        #[inline]
291        fn from_wire(wire: crate::wire::LauncherAddEnvironsRequest<'de>) -> Self {
292            Self { environ: ::fidl_next::FromWire::from_wire(wire.environ) }
293        }
294    }
295
296    impl<'de> ::fidl_next::FromWireRef<crate::wire::LauncherAddEnvironsRequest<'de>>
297        for LauncherAddEnvironsRequest
298    {
299        #[inline]
300        fn from_wire_ref(wire: &crate::wire::LauncherAddEnvironsRequest<'de>) -> Self {
301            Self { environ: ::fidl_next::FromWireRef::from_wire_ref(&wire.environ) }
302        }
303    }
304
305    #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
306    #[repr(C)]
307    pub struct LauncherSetOptionsRequest {
308        pub options: u32,
309    }
310
311    unsafe impl<___E> ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>
312        for LauncherSetOptionsRequest
313    where
314        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
315    {
316        const COPY_OPTIMIZATION: ::fidl_next::CopyOptimization<
317            Self,
318            crate::wire::LauncherSetOptionsRequest,
319        > = unsafe {
320            ::fidl_next::CopyOptimization::enable_if(
321            true
322
323                && <
324                    u32 as ::fidl_next::Encode<::fidl_next::wire::Uint32, ___E>
325                >::COPY_OPTIMIZATION.is_enabled()
326
327        )
328        };
329
330        #[inline]
331        fn encode(
332            self,
333            encoder_: &mut ___E,
334            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherSetOptionsRequest>,
335            _: (),
336        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
337            ::fidl_next::munge! {
338                let crate::wire::LauncherSetOptionsRequest {
339                    options,
340
341                } = out_;
342            }
343
344            ::fidl_next::Encode::encode(self.options, encoder_, options, ())?;
345
346            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(options.as_mut_ptr()) };
347
348            Ok(())
349        }
350    }
351
352    unsafe impl<'a, ___E> ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>
353        for &'a LauncherSetOptionsRequest
354    where
355        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
356    {
357        #[inline]
358        fn encode(
359            self,
360            encoder_: &mut ___E,
361            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherSetOptionsRequest>,
362            _: (),
363        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
364            ::fidl_next::munge! {
365                let crate::wire::LauncherSetOptionsRequest {
366                    options,
367
368                } = out_;
369            }
370
371            ::fidl_next::Encode::encode(&self.options, encoder_, options, ())?;
372
373            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(options.as_mut_ptr()) };
374
375            Ok(())
376        }
377    }
378
379    unsafe impl<___E>
380        ::fidl_next::EncodeOption<
381            ::fidl_next::wire::Box<'static, crate::wire::LauncherSetOptionsRequest>,
382            ___E,
383        > for LauncherSetOptionsRequest
384    where
385        ___E: ::fidl_next::Encoder + ?Sized,
386        LauncherSetOptionsRequest:
387            ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>,
388    {
389        #[inline]
390        fn encode_option(
391            this: ::core::option::Option<Self>,
392            encoder: &mut ___E,
393            out: &mut ::core::mem::MaybeUninit<
394                ::fidl_next::wire::Box<'static, crate::wire::LauncherSetOptionsRequest>,
395            >,
396            _: (),
397        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
398            if let Some(inner) = this {
399                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
400                ::fidl_next::wire::Box::encode_present(out);
401            } else {
402                ::fidl_next::wire::Box::encode_absent(out);
403            }
404
405            Ok(())
406        }
407    }
408
409    unsafe impl<'a, ___E>
410        ::fidl_next::EncodeOption<
411            ::fidl_next::wire::Box<'static, crate::wire::LauncherSetOptionsRequest>,
412            ___E,
413        > for &'a LauncherSetOptionsRequest
414    where
415        ___E: ::fidl_next::Encoder + ?Sized,
416        &'a LauncherSetOptionsRequest:
417            ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>,
418    {
419        #[inline]
420        fn encode_option(
421            this: ::core::option::Option<Self>,
422            encoder: &mut ___E,
423            out: &mut ::core::mem::MaybeUninit<
424                ::fidl_next::wire::Box<'static, crate::wire::LauncherSetOptionsRequest>,
425            >,
426            _: (),
427        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
428            if let Some(inner) = this {
429                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
430                ::fidl_next::wire::Box::encode_present(out);
431            } else {
432                ::fidl_next::wire::Box::encode_absent(out);
433            }
434
435            Ok(())
436        }
437    }
438
439    impl ::fidl_next::FromWire<crate::wire::LauncherSetOptionsRequest> for LauncherSetOptionsRequest {
440        const COPY_OPTIMIZATION: ::fidl_next::CopyOptimization<
441            crate::wire::LauncherSetOptionsRequest,
442            Self,
443        > = unsafe {
444            ::fidl_next::CopyOptimization::enable_if(
445                true
446                    && <u32 as ::fidl_next::FromWire<::fidl_next::wire::Uint32>>::COPY_OPTIMIZATION
447                        .is_enabled(),
448            )
449        };
450
451        #[inline]
452        fn from_wire(wire: crate::wire::LauncherSetOptionsRequest) -> Self {
453            Self { options: ::fidl_next::FromWire::from_wire(wire.options) }
454        }
455    }
456
457    impl ::fidl_next::FromWireRef<crate::wire::LauncherSetOptionsRequest>
458        for LauncherSetOptionsRequest
459    {
460        #[inline]
461        fn from_wire_ref(wire: &crate::wire::LauncherSetOptionsRequest) -> Self {
462            Self { options: ::fidl_next::FromWireRef::from_wire_ref(&wire.options) }
463        }
464    }
465
466    #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
467    pub struct ResolverResolveRequest {
468        pub name: ::std::string::String,
469    }
470
471    unsafe impl<___E> ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>
472        for ResolverResolveRequest
473    where
474        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
475        ___E: ::fidl_next::Encoder,
476    {
477        #[inline]
478        fn encode(
479            self,
480            encoder_: &mut ___E,
481            out_: &mut ::core::mem::MaybeUninit<crate::wire::ResolverResolveRequest<'static>>,
482            _: (),
483        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
484            ::fidl_next::munge! {
485                let crate::wire::ResolverResolveRequest {
486                    name,
487
488                } = out_;
489            }
490
491            ::fidl_next::Encode::encode(self.name, encoder_, name, 2048)?;
492
493            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(name.as_mut_ptr()) };
494            ::fidl_next::Constrained::validate(_field, 2048)?;
495
496            Ok(())
497        }
498    }
499
500    unsafe impl<'a, ___E> ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>
501        for &'a ResolverResolveRequest
502    where
503        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
504        ___E: ::fidl_next::Encoder,
505    {
506        #[inline]
507        fn encode(
508            self,
509            encoder_: &mut ___E,
510            out_: &mut ::core::mem::MaybeUninit<crate::wire::ResolverResolveRequest<'static>>,
511            _: (),
512        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
513            ::fidl_next::munge! {
514                let crate::wire::ResolverResolveRequest {
515                    name,
516
517                } = out_;
518            }
519
520            ::fidl_next::Encode::encode(&self.name, encoder_, name, 2048)?;
521
522            let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(name.as_mut_ptr()) };
523            ::fidl_next::Constrained::validate(_field, 2048)?;
524
525            Ok(())
526        }
527    }
528
529    unsafe impl<___E>
530        ::fidl_next::EncodeOption<
531            ::fidl_next::wire::Box<'static, crate::wire::ResolverResolveRequest<'static>>,
532            ___E,
533        > for ResolverResolveRequest
534    where
535        ___E: ::fidl_next::Encoder + ?Sized,
536        ResolverResolveRequest:
537            ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>,
538    {
539        #[inline]
540        fn encode_option(
541            this: ::core::option::Option<Self>,
542            encoder: &mut ___E,
543            out: &mut ::core::mem::MaybeUninit<
544                ::fidl_next::wire::Box<'static, crate::wire::ResolverResolveRequest<'static>>,
545            >,
546            _: (),
547        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
548            if let Some(inner) = this {
549                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
550                ::fidl_next::wire::Box::encode_present(out);
551            } else {
552                ::fidl_next::wire::Box::encode_absent(out);
553            }
554
555            Ok(())
556        }
557    }
558
559    unsafe impl<'a, ___E>
560        ::fidl_next::EncodeOption<
561            ::fidl_next::wire::Box<'static, crate::wire::ResolverResolveRequest<'static>>,
562            ___E,
563        > for &'a ResolverResolveRequest
564    where
565        ___E: ::fidl_next::Encoder + ?Sized,
566        &'a ResolverResolveRequest:
567            ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>,
568    {
569        #[inline]
570        fn encode_option(
571            this: ::core::option::Option<Self>,
572            encoder: &mut ___E,
573            out: &mut ::core::mem::MaybeUninit<
574                ::fidl_next::wire::Box<'static, crate::wire::ResolverResolveRequest<'static>>,
575            >,
576            _: (),
577        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
578            if let Some(inner) = this {
579                ::fidl_next::EncoderExt::encode_next(encoder, inner)?;
580                ::fidl_next::wire::Box::encode_present(out);
581            } else {
582                ::fidl_next::wire::Box::encode_absent(out);
583            }
584
585            Ok(())
586        }
587    }
588
589    impl<'de> ::fidl_next::FromWire<crate::wire::ResolverResolveRequest<'de>>
590        for ResolverResolveRequest
591    {
592        #[inline]
593        fn from_wire(wire: crate::wire::ResolverResolveRequest<'de>) -> Self {
594            Self { name: ::fidl_next::FromWire::from_wire(wire.name) }
595        }
596    }
597
598    impl<'de> ::fidl_next::FromWireRef<crate::wire::ResolverResolveRequest<'de>>
599        for ResolverResolveRequest
600    {
601        #[inline]
602        fn from_wire_ref(wire: &crate::wire::ResolverResolveRequest<'de>) -> Self {
603            Self { name: ::fidl_next::FromWireRef::from_wire_ref(&wire.name) }
604        }
605    }
606}
607
608pub mod wire {
609
610    /// The wire type corresponding to [`LauncherAddArgsRequest`].
611    #[derive(Debug)]
612    #[repr(C)]
613    pub struct LauncherAddArgsRequest<'de> {
614        pub args: ::fidl_next::wire::Vector<'de, ::fidl_next::wire::Vector<'de, u8>>,
615    }
616
617    static_assertions::const_assert_eq!(std::mem::size_of::<LauncherAddArgsRequest<'_>>(), 16);
618    static_assertions::const_assert_eq!(std::mem::align_of::<LauncherAddArgsRequest<'_>>(), 8);
619
620    static_assertions::const_assert_eq!(std::mem::offset_of!(LauncherAddArgsRequest<'_>, args), 0);
621
622    impl ::fidl_next::Constrained for LauncherAddArgsRequest<'_> {
623        type Constraint = ();
624
625        fn validate(
626            _: ::fidl_next::Slot<'_, Self>,
627            _: Self::Constraint,
628        ) -> Result<(), ::fidl_next::ValidationError> {
629            Ok(())
630        }
631    }
632
633    unsafe impl ::fidl_next::Wire for LauncherAddArgsRequest<'static> {
634        type Narrowed<'de> = LauncherAddArgsRequest<'de>;
635
636        #[inline]
637        fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
638            ::fidl_next::munge! {
639                let Self {
640                    args,
641
642                } = &mut *out_;
643            }
644
645            ::fidl_next::Wire::zero_padding(args);
646        }
647    }
648
649    unsafe impl<'de, ___D> ::fidl_next::Decode<___D> for LauncherAddArgsRequest<'de>
650    where
651        ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
652        ___D: ::fidl_next::Decoder<'de>,
653    {
654        fn decode(
655            slot_: ::fidl_next::Slot<'_, Self>,
656            decoder_: &mut ___D,
657            _: (),
658        ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
659            ::fidl_next::munge! {
660                let Self {
661                    mut args,
662
663                } = slot_;
664            }
665
666            let _field = args.as_mut();
667            ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
668            ::fidl_next::Decode::decode(args.as_mut(), decoder_, (4294967295, (4294967295, ())))?;
669
670            Ok(())
671        }
672    }
673
674    impl<'de> ::fidl_next::IntoNatural for LauncherAddArgsRequest<'de> {
675        type Natural = crate::natural::LauncherAddArgsRequest;
676    }
677
678    /// The wire type corresponding to [`LauncherAddEnvironsRequest`].
679    #[derive(Debug)]
680    #[repr(C)]
681    pub struct LauncherAddEnvironsRequest<'de> {
682        pub environ: ::fidl_next::wire::Vector<'de, ::fidl_next::wire::Vector<'de, u8>>,
683    }
684
685    static_assertions::const_assert_eq!(std::mem::size_of::<LauncherAddEnvironsRequest<'_>>(), 16);
686    static_assertions::const_assert_eq!(std::mem::align_of::<LauncherAddEnvironsRequest<'_>>(), 8);
687
688    static_assertions::const_assert_eq!(
689        std::mem::offset_of!(LauncherAddEnvironsRequest<'_>, environ),
690        0
691    );
692
693    impl ::fidl_next::Constrained for LauncherAddEnvironsRequest<'_> {
694        type Constraint = ();
695
696        fn validate(
697            _: ::fidl_next::Slot<'_, Self>,
698            _: Self::Constraint,
699        ) -> Result<(), ::fidl_next::ValidationError> {
700            Ok(())
701        }
702    }
703
704    unsafe impl ::fidl_next::Wire for LauncherAddEnvironsRequest<'static> {
705        type Narrowed<'de> = LauncherAddEnvironsRequest<'de>;
706
707        #[inline]
708        fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
709            ::fidl_next::munge! {
710                let Self {
711                    environ,
712
713                } = &mut *out_;
714            }
715
716            ::fidl_next::Wire::zero_padding(environ);
717        }
718    }
719
720    unsafe impl<'de, ___D> ::fidl_next::Decode<___D> for LauncherAddEnvironsRequest<'de>
721    where
722        ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
723        ___D: ::fidl_next::Decoder<'de>,
724    {
725        fn decode(
726            slot_: ::fidl_next::Slot<'_, Self>,
727            decoder_: &mut ___D,
728            _: (),
729        ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
730            ::fidl_next::munge! {
731                let Self {
732                    mut environ,
733
734                } = slot_;
735            }
736
737            let _field = environ.as_mut();
738            ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
739            ::fidl_next::Decode::decode(
740                environ.as_mut(),
741                decoder_,
742                (4294967295, (4294967295, ())),
743            )?;
744
745            Ok(())
746        }
747    }
748
749    impl<'de> ::fidl_next::IntoNatural for LauncherAddEnvironsRequest<'de> {
750        type Natural = crate::natural::LauncherAddEnvironsRequest;
751    }
752
753    /// The wire type corresponding to [`LauncherSetOptionsRequest`].
754    #[derive(Clone, Debug)]
755    #[repr(C)]
756    pub struct LauncherSetOptionsRequest {
757        pub options: ::fidl_next::wire::Uint32,
758    }
759
760    static_assertions::const_assert_eq!(std::mem::size_of::<LauncherSetOptionsRequest>(), 4);
761    static_assertions::const_assert_eq!(std::mem::align_of::<LauncherSetOptionsRequest>(), 4);
762
763    static_assertions::const_assert_eq!(
764        std::mem::offset_of!(LauncherSetOptionsRequest, options),
765        0
766    );
767
768    impl ::fidl_next::Constrained for LauncherSetOptionsRequest {
769        type Constraint = ();
770
771        fn validate(
772            _: ::fidl_next::Slot<'_, Self>,
773            _: Self::Constraint,
774        ) -> Result<(), ::fidl_next::ValidationError> {
775            Ok(())
776        }
777    }
778
779    unsafe impl ::fidl_next::Wire for LauncherSetOptionsRequest {
780        type Narrowed<'de> = LauncherSetOptionsRequest;
781
782        #[inline]
783        fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
784            ::fidl_next::munge! {
785                let Self {
786                    options,
787
788                } = &mut *out_;
789            }
790
791            ::fidl_next::Wire::zero_padding(options);
792        }
793    }
794
795    unsafe impl<___D> ::fidl_next::Decode<___D> for LauncherSetOptionsRequest
796    where
797        ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
798    {
799        fn decode(
800            slot_: ::fidl_next::Slot<'_, Self>,
801            decoder_: &mut ___D,
802            _: (),
803        ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
804            ::fidl_next::munge! {
805                let Self {
806                    mut options,
807
808                } = slot_;
809            }
810
811            let _field = options.as_mut();
812
813            ::fidl_next::Decode::decode(options.as_mut(), decoder_, ())?;
814
815            Ok(())
816        }
817    }
818
819    impl ::fidl_next::IntoNatural for LauncherSetOptionsRequest {
820        type Natural = crate::natural::LauncherSetOptionsRequest;
821    }
822
823    /// The wire type corresponding to [`ResolverResolveRequest`].
824    #[derive(Debug)]
825    #[repr(C)]
826    pub struct ResolverResolveRequest<'de> {
827        pub name: ::fidl_next::wire::String<'de>,
828    }
829
830    static_assertions::const_assert_eq!(std::mem::size_of::<ResolverResolveRequest<'_>>(), 16);
831    static_assertions::const_assert_eq!(std::mem::align_of::<ResolverResolveRequest<'_>>(), 8);
832
833    static_assertions::const_assert_eq!(std::mem::offset_of!(ResolverResolveRequest<'_>, name), 0);
834
835    impl ::fidl_next::Constrained for ResolverResolveRequest<'_> {
836        type Constraint = ();
837
838        fn validate(
839            _: ::fidl_next::Slot<'_, Self>,
840            _: Self::Constraint,
841        ) -> Result<(), ::fidl_next::ValidationError> {
842            Ok(())
843        }
844    }
845
846    unsafe impl ::fidl_next::Wire for ResolverResolveRequest<'static> {
847        type Narrowed<'de> = ResolverResolveRequest<'de>;
848
849        #[inline]
850        fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
851            ::fidl_next::munge! {
852                let Self {
853                    name,
854
855                } = &mut *out_;
856            }
857
858            ::fidl_next::Wire::zero_padding(name);
859        }
860    }
861
862    unsafe impl<'de, ___D> ::fidl_next::Decode<___D> for ResolverResolveRequest<'de>
863    where
864        ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
865        ___D: ::fidl_next::Decoder<'de>,
866    {
867        fn decode(
868            slot_: ::fidl_next::Slot<'_, Self>,
869            decoder_: &mut ___D,
870            _: (),
871        ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
872            ::fidl_next::munge! {
873                let Self {
874                    mut name,
875
876                } = slot_;
877            }
878
879            let _field = name.as_mut();
880            ::fidl_next::Constrained::validate(_field, 2048)?;
881            ::fidl_next::Decode::decode(name.as_mut(), decoder_, 2048)?;
882
883            let name = unsafe { name.deref_unchecked() };
884
885            if name.len() > 2048 {
886                return Err(::fidl_next::DecodeError::VectorTooLong {
887                    size: name.len() as u64,
888                    limit: 2048,
889                });
890            }
891
892            Ok(())
893        }
894    }
895
896    impl<'de> ::fidl_next::IntoNatural for ResolverResolveRequest<'de> {
897        type Natural = crate::natural::ResolverResolveRequest;
898    }
899}
900
901pub mod wire_optional {}
902
903pub mod generic {
904
905    /// The generic type corresponding to [`LauncherAddArgsRequest`].
906    pub struct LauncherAddArgsRequest<T0> {
907        pub args: T0,
908    }
909
910    unsafe impl<___E, T0> ::fidl_next::Encode<crate::wire::LauncherAddArgsRequest<'static>, ___E>
911        for LauncherAddArgsRequest<T0>
912    where
913        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
914        ___E: ::fidl_next::Encoder,
915        T0: ::fidl_next::Encode<
916                ::fidl_next::wire::Vector<'static, ::fidl_next::wire::Vector<'static, u8>>,
917                ___E,
918            >,
919    {
920        #[inline]
921        fn encode(
922            self,
923            encoder_: &mut ___E,
924            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddArgsRequest<'static>>,
925            _: (),
926        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
927            ::fidl_next::munge! {
928                let crate::wire::LauncherAddArgsRequest {
929                    args,
930
931                } = out_;
932            }
933
934            ::fidl_next::Encode::encode(self.args, encoder_, args, (4294967295, (4294967295, ())))?;
935
936            Ok(())
937        }
938    }
939
940    /// The generic type corresponding to [`LauncherAddEnvironsRequest`].
941    pub struct LauncherAddEnvironsRequest<T0> {
942        pub environ: T0,
943    }
944
945    unsafe impl<___E, T0>
946        ::fidl_next::Encode<crate::wire::LauncherAddEnvironsRequest<'static>, ___E>
947        for LauncherAddEnvironsRequest<T0>
948    where
949        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
950        ___E: ::fidl_next::Encoder,
951        T0: ::fidl_next::Encode<
952                ::fidl_next::wire::Vector<'static, ::fidl_next::wire::Vector<'static, u8>>,
953                ___E,
954            >,
955    {
956        #[inline]
957        fn encode(
958            self,
959            encoder_: &mut ___E,
960            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddEnvironsRequest<'static>>,
961            _: (),
962        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
963            ::fidl_next::munge! {
964                let crate::wire::LauncherAddEnvironsRequest {
965                    environ,
966
967                } = out_;
968            }
969
970            ::fidl_next::Encode::encode(
971                self.environ,
972                encoder_,
973                environ,
974                (4294967295, (4294967295, ())),
975            )?;
976
977            Ok(())
978        }
979    }
980
981    /// The generic type corresponding to [`LauncherSetOptionsRequest`].
982    pub struct LauncherSetOptionsRequest<T0> {
983        pub options: T0,
984    }
985
986    unsafe impl<___E, T0> ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>
987        for LauncherSetOptionsRequest<T0>
988    where
989        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
990        T0: ::fidl_next::Encode<::fidl_next::wire::Uint32, ___E>,
991    {
992        #[inline]
993        fn encode(
994            self,
995            encoder_: &mut ___E,
996            out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherSetOptionsRequest>,
997            _: (),
998        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
999            ::fidl_next::munge! {
1000                let crate::wire::LauncherSetOptionsRequest {
1001                    options,
1002
1003                } = out_;
1004            }
1005
1006            ::fidl_next::Encode::encode(self.options, encoder_, options, ())?;
1007
1008            Ok(())
1009        }
1010    }
1011
1012    /// The generic type corresponding to [`ResolverResolveRequest`].
1013    pub struct ResolverResolveRequest<T0> {
1014        pub name: T0,
1015    }
1016
1017    unsafe impl<___E, T0> ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>
1018        for ResolverResolveRequest<T0>
1019    where
1020        ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
1021        ___E: ::fidl_next::Encoder,
1022        T0: ::fidl_next::Encode<::fidl_next::wire::String<'static>, ___E>,
1023    {
1024        #[inline]
1025        fn encode(
1026            self,
1027            encoder_: &mut ___E,
1028            out_: &mut ::core::mem::MaybeUninit<crate::wire::ResolverResolveRequest<'static>>,
1029            _: (),
1030        ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
1031            ::fidl_next::munge! {
1032                let crate::wire::ResolverResolveRequest {
1033                    name,
1034
1035                } = out_;
1036            }
1037
1038            ::fidl_next::Encode::encode(self.name, encoder_, name, 2048)?;
1039
1040            Ok(())
1041        }
1042    }
1043}
1044
1045pub use self::natural::*;
1046
1047#[doc = " The maximum size for a name used by `Resolver`.\n"]
1048pub const MAX_RESOLVE_NAME_SIZE: u32 = 2048 as u32;