1#![warn(clippy::all)]
3#![allow(unused_parens, unused_variables, unused_mut, unused_imports, unreachable_code)]
4
5pub mod natural {
6
7 #[derive(PartialEq, Clone, Debug)]
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::WireBox<'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::WireBox<'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::WireBox::encode_present(out);
98 } else {
99 ::fidl_next::WireBox::encode_absent(out);
100 }
101
102 Ok(())
103 }
104 }
105
106 unsafe impl<'a, ___E>
107 ::fidl_next::EncodeOption<
108 ::fidl_next::WireBox<'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::WireBox<'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::WireBox::encode_present(out);
128 } else {
129 ::fidl_next::WireBox::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(PartialEq, Clone, Debug)]
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::WireBox<'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::WireBox<'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::WireBox::encode_present(out);
251 } else {
252 ::fidl_next::WireBox::encode_absent(out);
253 }
254
255 Ok(())
256 }
257 }
258
259 unsafe impl<'a, ___E>
260 ::fidl_next::EncodeOption<
261 ::fidl_next::WireBox<'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::WireBox<'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::WireBox::encode_present(out);
281 } else {
282 ::fidl_next::WireBox::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(PartialEq, Clone, Debug)]
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 && <u32 as ::fidl_next::Encode<::fidl_next::WireU32, ___E>>::COPY_OPTIMIZATION
324 .is_enabled(),
325 )
326 };
327
328 #[inline]
329 fn encode(
330 self,
331 encoder_: &mut ___E,
332 out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherSetOptionsRequest>,
333 _: (),
334 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
335 ::fidl_next::munge! {
336 let crate::wire::LauncherSetOptionsRequest {
337 options,
338
339 } = out_;
340 }
341
342 ::fidl_next::Encode::encode(self.options, encoder_, options, ())?;
343
344 let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(options.as_mut_ptr()) };
345
346 Ok(())
347 }
348 }
349
350 unsafe impl<'a, ___E> ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>
351 for &'a LauncherSetOptionsRequest
352 where
353 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
354 {
355 #[inline]
356 fn encode(
357 self,
358 encoder_: &mut ___E,
359 out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherSetOptionsRequest>,
360 _: (),
361 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
362 ::fidl_next::munge! {
363 let crate::wire::LauncherSetOptionsRequest {
364
365 options,
366
367 } = out_;
368 }
369
370 ::fidl_next::Encode::encode(&self.options, encoder_, options, ())?;
371
372 let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(options.as_mut_ptr()) };
373
374 Ok(())
375 }
376 }
377
378 unsafe impl<___E>
379 ::fidl_next::EncodeOption<
380 ::fidl_next::WireBox<'static, crate::wire::LauncherSetOptionsRequest>,
381 ___E,
382 > for LauncherSetOptionsRequest
383 where
384 ___E: ::fidl_next::Encoder + ?Sized,
385 LauncherSetOptionsRequest:
386 ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>,
387 {
388 #[inline]
389 fn encode_option(
390 this: ::core::option::Option<Self>,
391 encoder: &mut ___E,
392 out: &mut ::core::mem::MaybeUninit<
393 ::fidl_next::WireBox<'static, crate::wire::LauncherSetOptionsRequest>,
394 >,
395 _: (),
396 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
397 if let Some(inner) = this {
398 ::fidl_next::EncoderExt::encode_next(encoder, inner, ())?;
399 ::fidl_next::WireBox::encode_present(out);
400 } else {
401 ::fidl_next::WireBox::encode_absent(out);
402 }
403
404 Ok(())
405 }
406 }
407
408 unsafe impl<'a, ___E>
409 ::fidl_next::EncodeOption<
410 ::fidl_next::WireBox<'static, crate::wire::LauncherSetOptionsRequest>,
411 ___E,
412 > for &'a LauncherSetOptionsRequest
413 where
414 ___E: ::fidl_next::Encoder + ?Sized,
415 &'a LauncherSetOptionsRequest:
416 ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>,
417 {
418 #[inline]
419 fn encode_option(
420 this: ::core::option::Option<Self>,
421 encoder: &mut ___E,
422 out: &mut ::core::mem::MaybeUninit<
423 ::fidl_next::WireBox<'static, crate::wire::LauncherSetOptionsRequest>,
424 >,
425 _: (),
426 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
427 if let Some(inner) = this {
428 ::fidl_next::EncoderExt::encode_next(encoder, inner, ())?;
429 ::fidl_next::WireBox::encode_present(out);
430 } else {
431 ::fidl_next::WireBox::encode_absent(out);
432 }
433
434 Ok(())
435 }
436 }
437
438 impl ::fidl_next::FromWire<crate::wire::LauncherSetOptionsRequest> for LauncherSetOptionsRequest {
439 const COPY_OPTIMIZATION: ::fidl_next::CopyOptimization<
440 crate::wire::LauncherSetOptionsRequest,
441 Self,
442 > = unsafe {
443 ::fidl_next::CopyOptimization::enable_if(
444 true && <u32 as ::fidl_next::FromWire<::fidl_next::WireU32>>::COPY_OPTIMIZATION
445 .is_enabled(),
446 )
447 };
448
449 #[inline]
450 fn from_wire(wire: crate::wire::LauncherSetOptionsRequest) -> Self {
451 Self { options: ::fidl_next::FromWire::from_wire(wire.options) }
452 }
453 }
454
455 impl ::fidl_next::FromWireRef<crate::wire::LauncherSetOptionsRequest>
456 for LauncherSetOptionsRequest
457 {
458 #[inline]
459 fn from_wire_ref(wire: &crate::wire::LauncherSetOptionsRequest) -> Self {
460 Self { options: ::fidl_next::FromWireRef::from_wire_ref(&wire.options) }
461 }
462 }
463
464 #[derive(PartialEq, Clone, Debug)]
465 pub struct ResolverResolveRequest {
466 pub name: ::std::string::String,
467 }
468
469 unsafe impl<___E> ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>
470 for ResolverResolveRequest
471 where
472 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
473 ___E: ::fidl_next::Encoder,
474 {
475 #[inline]
476 fn encode(
477 self,
478 encoder_: &mut ___E,
479 out_: &mut ::core::mem::MaybeUninit<crate::wire::ResolverResolveRequest<'static>>,
480 _: (),
481 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
482 ::fidl_next::munge! {
483 let crate::wire::ResolverResolveRequest {
484 name,
485
486 } = out_;
487 }
488
489 ::fidl_next::Encode::encode(self.name, encoder_, name, 2048)?;
490
491 let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(name.as_mut_ptr()) };
492 ::fidl_next::Constrained::validate(_field, 2048)?;
493
494 Ok(())
495 }
496 }
497
498 unsafe impl<'a, ___E> ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>
499 for &'a ResolverResolveRequest
500 where
501 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
502 ___E: ::fidl_next::Encoder,
503 {
504 #[inline]
505 fn encode(
506 self,
507 encoder_: &mut ___E,
508 out_: &mut ::core::mem::MaybeUninit<crate::wire::ResolverResolveRequest<'static>>,
509 _: (),
510 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
511 ::fidl_next::munge! {
512 let crate::wire::ResolverResolveRequest {
513
514 name,
515
516 } = out_;
517 }
518
519 ::fidl_next::Encode::encode(&self.name, encoder_, name, 2048)?;
520
521 let mut _field = unsafe { ::fidl_next::Slot::new_unchecked(name.as_mut_ptr()) };
522 ::fidl_next::Constrained::validate(_field, 2048)?;
523
524 Ok(())
525 }
526 }
527
528 unsafe impl<___E>
529 ::fidl_next::EncodeOption<
530 ::fidl_next::WireBox<'static, crate::wire::ResolverResolveRequest<'static>>,
531 ___E,
532 > for ResolverResolveRequest
533 where
534 ___E: ::fidl_next::Encoder + ?Sized,
535 ResolverResolveRequest:
536 ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>,
537 {
538 #[inline]
539 fn encode_option(
540 this: ::core::option::Option<Self>,
541 encoder: &mut ___E,
542 out: &mut ::core::mem::MaybeUninit<
543 ::fidl_next::WireBox<'static, crate::wire::ResolverResolveRequest<'static>>,
544 >,
545 _: (),
546 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
547 if let Some(inner) = this {
548 ::fidl_next::EncoderExt::encode_next(encoder, inner, ())?;
549 ::fidl_next::WireBox::encode_present(out);
550 } else {
551 ::fidl_next::WireBox::encode_absent(out);
552 }
553
554 Ok(())
555 }
556 }
557
558 unsafe impl<'a, ___E>
559 ::fidl_next::EncodeOption<
560 ::fidl_next::WireBox<'static, crate::wire::ResolverResolveRequest<'static>>,
561 ___E,
562 > for &'a ResolverResolveRequest
563 where
564 ___E: ::fidl_next::Encoder + ?Sized,
565 &'a ResolverResolveRequest:
566 ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>,
567 {
568 #[inline]
569 fn encode_option(
570 this: ::core::option::Option<Self>,
571 encoder: &mut ___E,
572 out: &mut ::core::mem::MaybeUninit<
573 ::fidl_next::WireBox<'static, crate::wire::ResolverResolveRequest<'static>>,
574 >,
575 _: (),
576 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
577 if let Some(inner) = this {
578 ::fidl_next::EncoderExt::encode_next(encoder, inner, ())?;
579 ::fidl_next::WireBox::encode_present(out);
580 } else {
581 ::fidl_next::WireBox::encode_absent(out);
582 }
583
584 Ok(())
585 }
586 }
587
588 impl<'de> ::fidl_next::FromWire<crate::wire::ResolverResolveRequest<'de>>
589 for ResolverResolveRequest
590 {
591 #[inline]
592 fn from_wire(wire: crate::wire::ResolverResolveRequest<'de>) -> Self {
593 Self { name: ::fidl_next::FromWire::from_wire(wire.name) }
594 }
595 }
596
597 impl<'de> ::fidl_next::FromWireRef<crate::wire::ResolverResolveRequest<'de>>
598 for ResolverResolveRequest
599 {
600 #[inline]
601 fn from_wire_ref(wire: &crate::wire::ResolverResolveRequest<'de>) -> Self {
602 Self { name: ::fidl_next::FromWireRef::from_wire_ref(&wire.name) }
603 }
604 }
605}
606
607pub mod wire {
608
609 #[derive(Debug)]
611 #[repr(C)]
612 pub struct LauncherAddArgsRequest<'de> {
613 pub args: ::fidl_next::WireVector<'de, ::fidl_next::WireVector<'de, u8>>,
614 }
615
616 static_assertions::const_assert_eq!(std::mem::size_of::<LauncherAddArgsRequest<'_>>(), 16);
617 static_assertions::const_assert_eq!(std::mem::align_of::<LauncherAddArgsRequest<'_>>(), 8);
618
619 static_assertions::const_assert_eq!(std::mem::offset_of!(LauncherAddArgsRequest<'_>, args), 0);
620
621 unsafe impl ::fidl_next::Wire for LauncherAddArgsRequest<'static> {
622 type Owned<'de> = LauncherAddArgsRequest<'de>;
623
624 #[inline]
625 fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
626 ::fidl_next::munge! {
627 let Self {
628
629 args,
630
631 } = &mut *out_;
632 }
633
634 ::fidl_next::Wire::zero_padding(args);
635 }
636 }
637
638 unsafe impl<___D> ::fidl_next::Decode<___D> for LauncherAddArgsRequest<'static>
639 where
640 ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
641 ___D: ::fidl_next::Decoder,
642 {
643 fn decode(
644 slot_: ::fidl_next::Slot<'_, Self>,
645 decoder_: &mut ___D,
646 _: (),
647 ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
648 ::fidl_next::munge! {
649 let Self {
650
651 mut args,
652
653 } = slot_;
654 }
655
656 let _field = args.as_mut();
657 ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
658 ::fidl_next::Decode::decode(args.as_mut(), decoder_, (4294967295, (4294967295, ())))?;
659
660 Ok(())
661 }
662 }
663
664 impl<'de> ::fidl_next::IntoNatural for LauncherAddArgsRequest<'de> {
665 type Natural = crate::natural::LauncherAddArgsRequest;
666 }
667
668 impl ::fidl_next::Unconstrained for LauncherAddArgsRequest<'static> {}
669
670 #[derive(Debug)]
672 #[repr(C)]
673 pub struct LauncherAddEnvironsRequest<'de> {
674 pub environ: ::fidl_next::WireVector<'de, ::fidl_next::WireVector<'de, u8>>,
675 }
676
677 static_assertions::const_assert_eq!(std::mem::size_of::<LauncherAddEnvironsRequest<'_>>(), 16);
678 static_assertions::const_assert_eq!(std::mem::align_of::<LauncherAddEnvironsRequest<'_>>(), 8);
679
680 static_assertions::const_assert_eq!(
681 std::mem::offset_of!(LauncherAddEnvironsRequest<'_>, environ),
682 0
683 );
684
685 unsafe impl ::fidl_next::Wire for LauncherAddEnvironsRequest<'static> {
686 type Owned<'de> = LauncherAddEnvironsRequest<'de>;
687
688 #[inline]
689 fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
690 ::fidl_next::munge! {
691 let Self {
692
693 environ,
694
695 } = &mut *out_;
696 }
697
698 ::fidl_next::Wire::zero_padding(environ);
699 }
700 }
701
702 unsafe impl<___D> ::fidl_next::Decode<___D> for LauncherAddEnvironsRequest<'static>
703 where
704 ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
705 ___D: ::fidl_next::Decoder,
706 {
707 fn decode(
708 slot_: ::fidl_next::Slot<'_, Self>,
709 decoder_: &mut ___D,
710 _: (),
711 ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
712 ::fidl_next::munge! {
713 let Self {
714
715 mut environ,
716
717 } = slot_;
718 }
719
720 let _field = environ.as_mut();
721 ::fidl_next::Constrained::validate(_field, (4294967295, (4294967295, ())))?;
722 ::fidl_next::Decode::decode(
723 environ.as_mut(),
724 decoder_,
725 (4294967295, (4294967295, ())),
726 )?;
727
728 Ok(())
729 }
730 }
731
732 impl<'de> ::fidl_next::IntoNatural for LauncherAddEnvironsRequest<'de> {
733 type Natural = crate::natural::LauncherAddEnvironsRequest;
734 }
735
736 impl ::fidl_next::Unconstrained for LauncherAddEnvironsRequest<'static> {}
737
738 #[derive(Clone, Debug)]
740 #[repr(C)]
741 pub struct LauncherSetOptionsRequest {
742 pub options: ::fidl_next::WireU32,
743 }
744
745 static_assertions::const_assert_eq!(std::mem::size_of::<LauncherSetOptionsRequest>(), 4);
746 static_assertions::const_assert_eq!(std::mem::align_of::<LauncherSetOptionsRequest>(), 4);
747
748 static_assertions::const_assert_eq!(
749 std::mem::offset_of!(LauncherSetOptionsRequest, options),
750 0
751 );
752
753 unsafe impl ::fidl_next::Wire for LauncherSetOptionsRequest {
754 type Owned<'de> = LauncherSetOptionsRequest;
755
756 #[inline]
757 fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
758 ::fidl_next::munge! {
759 let Self {
760
761 options,
762
763 } = &mut *out_;
764 }
765
766 ::fidl_next::Wire::zero_padding(options);
767 }
768 }
769
770 unsafe impl<___D> ::fidl_next::Decode<___D> for LauncherSetOptionsRequest
771 where
772 ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
773 {
774 fn decode(
775 slot_: ::fidl_next::Slot<'_, Self>,
776 decoder_: &mut ___D,
777 _: (),
778 ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
779 ::fidl_next::munge! {
780 let Self {
781
782 mut options,
783
784 } = slot_;
785 }
786
787 let _field = options.as_mut();
788
789 ::fidl_next::Decode::decode(options.as_mut(), decoder_, ())?;
790
791 Ok(())
792 }
793 }
794
795 impl ::fidl_next::IntoNatural for LauncherSetOptionsRequest {
796 type Natural = crate::natural::LauncherSetOptionsRequest;
797 }
798
799 impl ::fidl_next::Unconstrained for LauncherSetOptionsRequest {}
800
801 #[derive(Debug)]
803 #[repr(C)]
804 pub struct ResolverResolveRequest<'de> {
805 pub name: ::fidl_next::WireString<'de>,
806 }
807
808 static_assertions::const_assert_eq!(std::mem::size_of::<ResolverResolveRequest<'_>>(), 16);
809 static_assertions::const_assert_eq!(std::mem::align_of::<ResolverResolveRequest<'_>>(), 8);
810
811 static_assertions::const_assert_eq!(std::mem::offset_of!(ResolverResolveRequest<'_>, name), 0);
812
813 unsafe impl ::fidl_next::Wire for ResolverResolveRequest<'static> {
814 type Owned<'de> = ResolverResolveRequest<'de>;
815
816 #[inline]
817 fn zero_padding(out_: &mut ::core::mem::MaybeUninit<Self>) {
818 ::fidl_next::munge! {
819 let Self {
820
821 name,
822
823 } = &mut *out_;
824 }
825
826 ::fidl_next::Wire::zero_padding(name);
827 }
828 }
829
830 unsafe impl<___D> ::fidl_next::Decode<___D> for ResolverResolveRequest<'static>
831 where
832 ___D: ::fidl_next::decoder::InternalHandleDecoder + ?Sized,
833 ___D: ::fidl_next::Decoder,
834 {
835 fn decode(
836 slot_: ::fidl_next::Slot<'_, Self>,
837 decoder_: &mut ___D,
838 _: (),
839 ) -> ::core::result::Result<(), ::fidl_next::DecodeError> {
840 ::fidl_next::munge! {
841 let Self {
842
843 mut name,
844
845 } = slot_;
846 }
847
848 let _field = name.as_mut();
849 ::fidl_next::Constrained::validate(_field, 2048)?;
850 ::fidl_next::Decode::decode(name.as_mut(), decoder_, 2048)?;
851
852 let name = unsafe { name.deref_unchecked() };
853
854 if name.len() > 2048 {
855 return Err(::fidl_next::DecodeError::VectorTooLong {
856 size: name.len() as u64,
857 limit: 2048,
858 });
859 }
860
861 Ok(())
862 }
863 }
864
865 impl<'de> ::fidl_next::IntoNatural for ResolverResolveRequest<'de> {
866 type Natural = crate::natural::ResolverResolveRequest;
867 }
868
869 impl ::fidl_next::Unconstrained for ResolverResolveRequest<'static> {}
870}
871
872pub mod wire_optional {}
873
874pub mod generic {
875
876 pub struct LauncherAddArgsRequest<T0> {
877 pub args: T0,
878 }
879
880 unsafe impl<___E, T0> ::fidl_next::Encode<crate::wire::LauncherAddArgsRequest<'static>, ___E>
881 for LauncherAddArgsRequest<T0>
882 where
883 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
884 ___E: ::fidl_next::Encoder,
885 T0: ::fidl_next::Encode<
886 ::fidl_next::WireVector<'static, ::fidl_next::WireVector<'static, u8>>,
887 ___E,
888 >,
889 {
890 #[inline]
891 fn encode(
892 self,
893 encoder_: &mut ___E,
894 out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddArgsRequest<'static>>,
895 _: (),
896 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
897 ::fidl_next::munge! {
898 let crate::wire::LauncherAddArgsRequest {
899
900 args,
901
902 } = out_;
903 }
904
905 ::fidl_next::Encode::encode(self.args, encoder_, args, (4294967295, (4294967295, ())))?;
906
907 Ok(())
908 }
909 }
910
911 pub struct LauncherAddEnvironsRequest<T0> {
912 pub environ: T0,
913 }
914
915 unsafe impl<___E, T0>
916 ::fidl_next::Encode<crate::wire::LauncherAddEnvironsRequest<'static>, ___E>
917 for LauncherAddEnvironsRequest<T0>
918 where
919 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
920 ___E: ::fidl_next::Encoder,
921 T0: ::fidl_next::Encode<
922 ::fidl_next::WireVector<'static, ::fidl_next::WireVector<'static, u8>>,
923 ___E,
924 >,
925 {
926 #[inline]
927 fn encode(
928 self,
929 encoder_: &mut ___E,
930 out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherAddEnvironsRequest<'static>>,
931 _: (),
932 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
933 ::fidl_next::munge! {
934 let crate::wire::LauncherAddEnvironsRequest {
935
936 environ,
937
938 } = out_;
939 }
940
941 ::fidl_next::Encode::encode(
942 self.environ,
943 encoder_,
944 environ,
945 (4294967295, (4294967295, ())),
946 )?;
947
948 Ok(())
949 }
950 }
951
952 pub struct LauncherSetOptionsRequest<T0> {
953 pub options: T0,
954 }
955
956 unsafe impl<___E, T0> ::fidl_next::Encode<crate::wire::LauncherSetOptionsRequest, ___E>
957 for LauncherSetOptionsRequest<T0>
958 where
959 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
960 T0: ::fidl_next::Encode<::fidl_next::WireU32, ___E>,
961 {
962 #[inline]
963 fn encode(
964 self,
965 encoder_: &mut ___E,
966 out_: &mut ::core::mem::MaybeUninit<crate::wire::LauncherSetOptionsRequest>,
967 _: (),
968 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
969 ::fidl_next::munge! {
970 let crate::wire::LauncherSetOptionsRequest {
971
972 options,
973
974 } = out_;
975 }
976
977 ::fidl_next::Encode::encode(self.options, encoder_, options, ())?;
978
979 Ok(())
980 }
981 }
982
983 pub struct ResolverResolveRequest<T0> {
984 pub name: T0,
985 }
986
987 unsafe impl<___E, T0> ::fidl_next::Encode<crate::wire::ResolverResolveRequest<'static>, ___E>
988 for ResolverResolveRequest<T0>
989 where
990 ___E: ::fidl_next::encoder::InternalHandleEncoder + ?Sized,
991 ___E: ::fidl_next::Encoder,
992 T0: ::fidl_next::Encode<::fidl_next::WireString<'static>, ___E>,
993 {
994 #[inline]
995 fn encode(
996 self,
997 encoder_: &mut ___E,
998 out_: &mut ::core::mem::MaybeUninit<crate::wire::ResolverResolveRequest<'static>>,
999 _: (),
1000 ) -> ::core::result::Result<(), ::fidl_next::EncodeError> {
1001 ::fidl_next::munge! {
1002 let crate::wire::ResolverResolveRequest {
1003
1004 name,
1005
1006 } = out_;
1007 }
1008
1009 ::fidl_next::Encode::encode(self.name, encoder_, name, 2048)?;
1010
1011 Ok(())
1012 }
1013 }
1014}
1015
1016pub use self::natural::*;
1017
1018#[doc = " The maximum size for a name used by `Resolver`.\n"]
1019pub const MAX_RESOLVE_NAME_SIZE: u32 = 2048 as u32;
1020
1021pub mod compat {
1023
1024 impl ::fidl_next::CompatFrom<crate::LauncherAddArgsRequest>
1025 for ::fidl_fuchsia_process::LauncherAddArgsRequest
1026 {
1027 #[inline]
1028 fn compat_from(value: crate::LauncherAddArgsRequest) -> Self {
1029 Self { args: ::fidl_next::CompatFrom::compat_from(value.args) }
1030 }
1031 }
1032
1033 impl ::fidl_next::CompatFrom<::fidl_fuchsia_process::LauncherAddArgsRequest>
1034 for crate::LauncherAddArgsRequest
1035 {
1036 #[inline]
1037 fn compat_from(value: ::fidl_fuchsia_process::LauncherAddArgsRequest) -> Self {
1038 Self { args: ::fidl_next::CompatFrom::compat_from(value.args) }
1039 }
1040 }
1041
1042 impl ::fidl_next::CompatFrom<crate::LauncherAddEnvironsRequest>
1043 for ::fidl_fuchsia_process::LauncherAddEnvironsRequest
1044 {
1045 #[inline]
1046 fn compat_from(value: crate::LauncherAddEnvironsRequest) -> Self {
1047 Self { environ: ::fidl_next::CompatFrom::compat_from(value.environ) }
1048 }
1049 }
1050
1051 impl ::fidl_next::CompatFrom<::fidl_fuchsia_process::LauncherAddEnvironsRequest>
1052 for crate::LauncherAddEnvironsRequest
1053 {
1054 #[inline]
1055 fn compat_from(value: ::fidl_fuchsia_process::LauncherAddEnvironsRequest) -> Self {
1056 Self { environ: ::fidl_next::CompatFrom::compat_from(value.environ) }
1057 }
1058 }
1059
1060 impl ::fidl_next::CompatFrom<crate::LauncherSetOptionsRequest>
1061 for ::fidl_fuchsia_process::LauncherSetOptionsRequest
1062 {
1063 #[inline]
1064 fn compat_from(value: crate::LauncherSetOptionsRequest) -> Self {
1065 Self { options: ::fidl_next::CompatFrom::compat_from(value.options) }
1066 }
1067 }
1068
1069 impl ::fidl_next::CompatFrom<::fidl_fuchsia_process::LauncherSetOptionsRequest>
1070 for crate::LauncherSetOptionsRequest
1071 {
1072 #[inline]
1073 fn compat_from(value: ::fidl_fuchsia_process::LauncherSetOptionsRequest) -> Self {
1074 Self { options: ::fidl_next::CompatFrom::compat_from(value.options) }
1075 }
1076 }
1077
1078 impl ::fidl_next::CompatFrom<crate::ResolverResolveRequest>
1079 for ::fidl_fuchsia_process::ResolverResolveRequest
1080 {
1081 #[inline]
1082 fn compat_from(value: crate::ResolverResolveRequest) -> Self {
1083 Self { name: ::fidl_next::CompatFrom::compat_from(value.name) }
1084 }
1085 }
1086
1087 impl ::fidl_next::CompatFrom<::fidl_fuchsia_process::ResolverResolveRequest>
1088 for crate::ResolverResolveRequest
1089 {
1090 #[inline]
1091 fn compat_from(value: ::fidl_fuchsia_process::ResolverResolveRequest) -> Self {
1092 Self { name: ::fidl_next::CompatFrom::compat_from(value.name) }
1093 }
1094 }
1095}