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