1#![warn(clippy::all)]
4#![allow(unused_parens, unused_mut, unused_imports, nonstandard_style)]
5
6use bitflags::bitflags;
7use fidl::client::QueryResponseFut;
8use fidl::encoding::{MessageBufFor, ProxyChannelBox, ResourceDialect};
9use fidl::endpoints::{ControlHandle as _, Responder as _};
10pub use fidl_fuchsia_session_scene_common::*;
11use futures::future::{self, MaybeDone, TryFutureExt};
12use zx_status;
13
14#[derive(Debug, PartialEq)]
15pub struct ManagerPresentRootViewLegacyRequest {
16 pub view_holder_token: fidl_fuchsia_ui_views::ViewHolderToken,
17 pub view_ref: fidl_fuchsia_ui_views::ViewRef,
18}
19
20impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
21 for ManagerPresentRootViewLegacyRequest
22{
23}
24
25#[derive(Debug, PartialEq)]
26pub struct ManagerPresentRootViewRequest {
27 pub viewport_creation_token: fidl_fuchsia_ui_views::ViewportCreationToken,
28}
29
30impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
31 for ManagerPresentRootViewRequest
32{
33}
34
35#[derive(Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
36pub struct ManagerSetRootViewRequest {
37 pub view_provider: fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
38}
39
40impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect> for ManagerSetRootViewRequest {}
41
42#[derive(Debug, PartialEq)]
43pub struct ManagerSetRootViewResponse {
44 pub view_ref: fidl_fuchsia_ui_views::ViewRef,
45}
46
47impl fidl::Standalone<fidl::encoding::DefaultFuchsiaResourceDialect>
48 for ManagerSetRootViewResponse
49{
50}
51
52#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
53pub struct ManagerMarker;
54
55impl fidl::endpoints::ProtocolMarker for ManagerMarker {
56 type Proxy = ManagerProxy;
57 type RequestStream = ManagerRequestStream;
58 #[cfg(target_os = "fuchsia")]
59 type SynchronousProxy = ManagerSynchronousProxy;
60
61 const DEBUG_NAME: &'static str = "fuchsia.session.scene.Manager";
62}
63impl fidl::endpoints::DiscoverableProtocolMarker for ManagerMarker {}
64pub type ManagerSetRootViewResult = Result<fidl_fuchsia_ui_views::ViewRef, PresentRootViewError>;
65pub type ManagerPresentRootViewLegacyResult = Result<(), PresentRootViewError>;
66pub type ManagerPresentRootViewResult = Result<(), PresentRootViewError>;
67
68pub trait ManagerProxyInterface: Send + Sync {
69 type SetRootViewResponseFut: std::future::Future<Output = Result<ManagerSetRootViewResult, fidl::Error>>
70 + Send;
71 fn r#set_root_view(
72 &self,
73 view_provider: fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
74 ) -> Self::SetRootViewResponseFut;
75 type PresentRootViewLegacyResponseFut: std::future::Future<Output = Result<ManagerPresentRootViewLegacyResult, fidl::Error>>
76 + Send;
77 fn r#present_root_view_legacy(
78 &self,
79 view_holder_token: fidl_fuchsia_ui_views::ViewHolderToken,
80 view_ref: fidl_fuchsia_ui_views::ViewRef,
81 ) -> Self::PresentRootViewLegacyResponseFut;
82 type PresentRootViewResponseFut: std::future::Future<Output = Result<ManagerPresentRootViewResult, fidl::Error>>
83 + Send;
84 fn r#present_root_view(
85 &self,
86 viewport_creation_token: fidl_fuchsia_ui_views::ViewportCreationToken,
87 ) -> Self::PresentRootViewResponseFut;
88}
89#[derive(Debug)]
90#[cfg(target_os = "fuchsia")]
91pub struct ManagerSynchronousProxy {
92 client: fidl::client::sync::Client,
93}
94
95#[cfg(target_os = "fuchsia")]
96impl fidl::endpoints::SynchronousProxy for ManagerSynchronousProxy {
97 type Proxy = ManagerProxy;
98 type Protocol = ManagerMarker;
99
100 fn from_channel(inner: fidl::Channel) -> Self {
101 Self::new(inner)
102 }
103
104 fn into_channel(self) -> fidl::Channel {
105 self.client.into_channel()
106 }
107
108 fn as_channel(&self) -> &fidl::Channel {
109 self.client.as_channel()
110 }
111}
112
113#[cfg(target_os = "fuchsia")]
114impl ManagerSynchronousProxy {
115 pub fn new(channel: fidl::Channel) -> Self {
116 let protocol_name = <ManagerMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
117 Self { client: fidl::client::sync::Client::new(channel, protocol_name) }
118 }
119
120 pub fn into_channel(self) -> fidl::Channel {
121 self.client.into_channel()
122 }
123
124 pub fn wait_for_event(
127 &self,
128 deadline: zx::MonotonicInstant,
129 ) -> Result<ManagerEvent, fidl::Error> {
130 ManagerEvent::decode(self.client.wait_for_event(deadline)?)
131 }
132
133 pub fn r#set_root_view(
152 &self,
153 mut view_provider: fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
154 ___deadline: zx::MonotonicInstant,
155 ) -> Result<ManagerSetRootViewResult, fidl::Error> {
156 let _response =
157 self.client.send_query::<ManagerSetRootViewRequest, fidl::encoding::ResultType<
158 ManagerSetRootViewResponse,
159 PresentRootViewError,
160 >>(
161 (view_provider,),
162 0x3095976368270dc4,
163 fidl::encoding::DynamicFlags::empty(),
164 ___deadline,
165 )?;
166 Ok(_response.map(|x| x.view_ref))
167 }
168
169 pub fn r#present_root_view_legacy(
186 &self,
187 mut view_holder_token: fidl_fuchsia_ui_views::ViewHolderToken,
188 mut view_ref: fidl_fuchsia_ui_views::ViewRef,
189 ___deadline: zx::MonotonicInstant,
190 ) -> Result<ManagerPresentRootViewLegacyResult, fidl::Error> {
191 let _response = self.client.send_query::<
192 ManagerPresentRootViewLegacyRequest,
193 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, PresentRootViewError>,
194 >(
195 (&mut view_holder_token, &mut view_ref,),
196 0x17729b456a2eff7,
197 fidl::encoding::DynamicFlags::empty(),
198 ___deadline,
199 )?;
200 Ok(_response.map(|x| x))
201 }
202
203 pub fn r#present_root_view(
218 &self,
219 mut viewport_creation_token: fidl_fuchsia_ui_views::ViewportCreationToken,
220 ___deadline: zx::MonotonicInstant,
221 ) -> Result<ManagerPresentRootViewResult, fidl::Error> {
222 let _response =
223 self.client.send_query::<ManagerPresentRootViewRequest, fidl::encoding::ResultType<
224 fidl::encoding::EmptyStruct,
225 PresentRootViewError,
226 >>(
227 (&mut viewport_creation_token,),
228 0x51e070bb675a18df,
229 fidl::encoding::DynamicFlags::empty(),
230 ___deadline,
231 )?;
232 Ok(_response.map(|x| x))
233 }
234}
235
236#[cfg(target_os = "fuchsia")]
237impl From<ManagerSynchronousProxy> for zx::Handle {
238 fn from(value: ManagerSynchronousProxy) -> Self {
239 value.into_channel().into()
240 }
241}
242
243#[cfg(target_os = "fuchsia")]
244impl From<fidl::Channel> for ManagerSynchronousProxy {
245 fn from(value: fidl::Channel) -> Self {
246 Self::new(value)
247 }
248}
249
250#[derive(Debug, Clone)]
251pub struct ManagerProxy {
252 client: fidl::client::Client<fidl::encoding::DefaultFuchsiaResourceDialect>,
253}
254
255impl fidl::endpoints::Proxy for ManagerProxy {
256 type Protocol = ManagerMarker;
257
258 fn from_channel(inner: ::fidl::AsyncChannel) -> Self {
259 Self::new(inner)
260 }
261
262 fn into_channel(self) -> Result<::fidl::AsyncChannel, Self> {
263 self.client.into_channel().map_err(|client| Self { client })
264 }
265
266 fn as_channel(&self) -> &::fidl::AsyncChannel {
267 self.client.as_channel()
268 }
269}
270
271impl ManagerProxy {
272 pub fn new(channel: ::fidl::AsyncChannel) -> Self {
274 let protocol_name = <ManagerMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME;
275 Self { client: fidl::client::Client::new(channel, protocol_name) }
276 }
277
278 pub fn take_event_stream(&self) -> ManagerEventStream {
284 ManagerEventStream { event_receiver: self.client.take_event_receiver() }
285 }
286
287 pub fn r#set_root_view(
306 &self,
307 mut view_provider: fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
308 ) -> fidl::client::QueryResponseFut<
309 ManagerSetRootViewResult,
310 fidl::encoding::DefaultFuchsiaResourceDialect,
311 > {
312 ManagerProxyInterface::r#set_root_view(self, view_provider)
313 }
314
315 pub fn r#present_root_view_legacy(
332 &self,
333 mut view_holder_token: fidl_fuchsia_ui_views::ViewHolderToken,
334 mut view_ref: fidl_fuchsia_ui_views::ViewRef,
335 ) -> fidl::client::QueryResponseFut<
336 ManagerPresentRootViewLegacyResult,
337 fidl::encoding::DefaultFuchsiaResourceDialect,
338 > {
339 ManagerProxyInterface::r#present_root_view_legacy(self, view_holder_token, view_ref)
340 }
341
342 pub fn r#present_root_view(
357 &self,
358 mut viewport_creation_token: fidl_fuchsia_ui_views::ViewportCreationToken,
359 ) -> fidl::client::QueryResponseFut<
360 ManagerPresentRootViewResult,
361 fidl::encoding::DefaultFuchsiaResourceDialect,
362 > {
363 ManagerProxyInterface::r#present_root_view(self, viewport_creation_token)
364 }
365}
366
367impl ManagerProxyInterface for ManagerProxy {
368 type SetRootViewResponseFut = fidl::client::QueryResponseFut<
369 ManagerSetRootViewResult,
370 fidl::encoding::DefaultFuchsiaResourceDialect,
371 >;
372 fn r#set_root_view(
373 &self,
374 mut view_provider: fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
375 ) -> Self::SetRootViewResponseFut {
376 fn _decode(
377 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
378 ) -> Result<ManagerSetRootViewResult, fidl::Error> {
379 let _response = fidl::client::decode_transaction_body::<
380 fidl::encoding::ResultType<ManagerSetRootViewResponse, PresentRootViewError>,
381 fidl::encoding::DefaultFuchsiaResourceDialect,
382 0x3095976368270dc4,
383 >(_buf?)?;
384 Ok(_response.map(|x| x.view_ref))
385 }
386 self.client.send_query_and_decode::<ManagerSetRootViewRequest, ManagerSetRootViewResult>(
387 (view_provider,),
388 0x3095976368270dc4,
389 fidl::encoding::DynamicFlags::empty(),
390 _decode,
391 )
392 }
393
394 type PresentRootViewLegacyResponseFut = fidl::client::QueryResponseFut<
395 ManagerPresentRootViewLegacyResult,
396 fidl::encoding::DefaultFuchsiaResourceDialect,
397 >;
398 fn r#present_root_view_legacy(
399 &self,
400 mut view_holder_token: fidl_fuchsia_ui_views::ViewHolderToken,
401 mut view_ref: fidl_fuchsia_ui_views::ViewRef,
402 ) -> Self::PresentRootViewLegacyResponseFut {
403 fn _decode(
404 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
405 ) -> Result<ManagerPresentRootViewLegacyResult, fidl::Error> {
406 let _response = fidl::client::decode_transaction_body::<
407 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, PresentRootViewError>,
408 fidl::encoding::DefaultFuchsiaResourceDialect,
409 0x17729b456a2eff7,
410 >(_buf?)?;
411 Ok(_response.map(|x| x))
412 }
413 self.client.send_query_and_decode::<
414 ManagerPresentRootViewLegacyRequest,
415 ManagerPresentRootViewLegacyResult,
416 >(
417 (&mut view_holder_token, &mut view_ref,),
418 0x17729b456a2eff7,
419 fidl::encoding::DynamicFlags::empty(),
420 _decode,
421 )
422 }
423
424 type PresentRootViewResponseFut = fidl::client::QueryResponseFut<
425 ManagerPresentRootViewResult,
426 fidl::encoding::DefaultFuchsiaResourceDialect,
427 >;
428 fn r#present_root_view(
429 &self,
430 mut viewport_creation_token: fidl_fuchsia_ui_views::ViewportCreationToken,
431 ) -> Self::PresentRootViewResponseFut {
432 fn _decode(
433 mut _buf: Result<<fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc, fidl::Error>,
434 ) -> Result<ManagerPresentRootViewResult, fidl::Error> {
435 let _response = fidl::client::decode_transaction_body::<
436 fidl::encoding::ResultType<fidl::encoding::EmptyStruct, PresentRootViewError>,
437 fidl::encoding::DefaultFuchsiaResourceDialect,
438 0x51e070bb675a18df,
439 >(_buf?)?;
440 Ok(_response.map(|x| x))
441 }
442 self.client
443 .send_query_and_decode::<ManagerPresentRootViewRequest, ManagerPresentRootViewResult>(
444 (&mut viewport_creation_token,),
445 0x51e070bb675a18df,
446 fidl::encoding::DynamicFlags::empty(),
447 _decode,
448 )
449 }
450}
451
452pub struct ManagerEventStream {
453 event_receiver: fidl::client::EventReceiver<fidl::encoding::DefaultFuchsiaResourceDialect>,
454}
455
456impl std::marker::Unpin for ManagerEventStream {}
457
458impl futures::stream::FusedStream for ManagerEventStream {
459 fn is_terminated(&self) -> bool {
460 self.event_receiver.is_terminated()
461 }
462}
463
464impl futures::Stream for ManagerEventStream {
465 type Item = Result<ManagerEvent, fidl::Error>;
466
467 fn poll_next(
468 mut self: std::pin::Pin<&mut Self>,
469 cx: &mut std::task::Context<'_>,
470 ) -> std::task::Poll<Option<Self::Item>> {
471 match futures::ready!(futures::stream::StreamExt::poll_next_unpin(
472 &mut self.event_receiver,
473 cx
474 )?) {
475 Some(buf) => std::task::Poll::Ready(Some(ManagerEvent::decode(buf))),
476 None => std::task::Poll::Ready(None),
477 }
478 }
479}
480
481#[derive(Debug)]
482pub enum ManagerEvent {}
483
484impl ManagerEvent {
485 fn decode(
487 mut buf: <fidl::encoding::DefaultFuchsiaResourceDialect as fidl::encoding::ResourceDialect>::MessageBufEtc,
488 ) -> Result<ManagerEvent, fidl::Error> {
489 let (bytes, _handles) = buf.split_mut();
490 let (tx_header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
491 debug_assert_eq!(tx_header.tx_id, 0);
492 match tx_header.ordinal {
493 _ => Err(fidl::Error::UnknownOrdinal {
494 ordinal: tx_header.ordinal,
495 protocol_name: <ManagerMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
496 }),
497 }
498 }
499}
500
501pub struct ManagerRequestStream {
503 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
504 is_terminated: bool,
505}
506
507impl std::marker::Unpin for ManagerRequestStream {}
508
509impl futures::stream::FusedStream for ManagerRequestStream {
510 fn is_terminated(&self) -> bool {
511 self.is_terminated
512 }
513}
514
515impl fidl::endpoints::RequestStream for ManagerRequestStream {
516 type Protocol = ManagerMarker;
517 type ControlHandle = ManagerControlHandle;
518
519 fn from_channel(channel: ::fidl::AsyncChannel) -> Self {
520 Self { inner: std::sync::Arc::new(fidl::ServeInner::new(channel)), is_terminated: false }
521 }
522
523 fn control_handle(&self) -> Self::ControlHandle {
524 ManagerControlHandle { inner: self.inner.clone() }
525 }
526
527 fn into_inner(
528 self,
529 ) -> (::std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>, bool)
530 {
531 (self.inner, self.is_terminated)
532 }
533
534 fn from_inner(
535 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
536 is_terminated: bool,
537 ) -> Self {
538 Self { inner, is_terminated }
539 }
540}
541
542impl futures::Stream for ManagerRequestStream {
543 type Item = Result<ManagerRequest, fidl::Error>;
544
545 fn poll_next(
546 mut self: std::pin::Pin<&mut Self>,
547 cx: &mut std::task::Context<'_>,
548 ) -> std::task::Poll<Option<Self::Item>> {
549 let this = &mut *self;
550 if this.inner.check_shutdown(cx) {
551 this.is_terminated = true;
552 return std::task::Poll::Ready(None);
553 }
554 if this.is_terminated {
555 panic!("polled ManagerRequestStream after completion");
556 }
557 fidl::encoding::with_tls_decode_buf::<_, fidl::encoding::DefaultFuchsiaResourceDialect>(
558 |bytes, handles| {
559 match this.inner.channel().read_etc(cx, bytes, handles) {
560 std::task::Poll::Ready(Ok(())) => {}
561 std::task::Poll::Pending => return std::task::Poll::Pending,
562 std::task::Poll::Ready(Err(zx_status::Status::PEER_CLOSED)) => {
563 this.is_terminated = true;
564 return std::task::Poll::Ready(None);
565 }
566 std::task::Poll::Ready(Err(e)) => {
567 return std::task::Poll::Ready(Some(Err(fidl::Error::ServerRequestRead(
568 e.into(),
569 ))))
570 }
571 }
572
573 let (header, _body_bytes) = fidl::encoding::decode_transaction_header(bytes)?;
575
576 std::task::Poll::Ready(Some(match header.ordinal {
577 0x3095976368270dc4 => {
578 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
579 let mut req = fidl::new_empty!(
580 ManagerSetRootViewRequest,
581 fidl::encoding::DefaultFuchsiaResourceDialect
582 );
583 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<ManagerSetRootViewRequest>(&header, _body_bytes, handles, &mut req)?;
584 let control_handle = ManagerControlHandle { inner: this.inner.clone() };
585 Ok(ManagerRequest::SetRootView {
586 view_provider: req.view_provider,
587
588 responder: ManagerSetRootViewResponder {
589 control_handle: std::mem::ManuallyDrop::new(control_handle),
590 tx_id: header.tx_id,
591 },
592 })
593 }
594 0x17729b456a2eff7 => {
595 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
596 let mut req = fidl::new_empty!(
597 ManagerPresentRootViewLegacyRequest,
598 fidl::encoding::DefaultFuchsiaResourceDialect
599 );
600 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<ManagerPresentRootViewLegacyRequest>(&header, _body_bytes, handles, &mut req)?;
601 let control_handle = ManagerControlHandle { inner: this.inner.clone() };
602 Ok(ManagerRequest::PresentRootViewLegacy {
603 view_holder_token: req.view_holder_token,
604 view_ref: req.view_ref,
605
606 responder: ManagerPresentRootViewLegacyResponder {
607 control_handle: std::mem::ManuallyDrop::new(control_handle),
608 tx_id: header.tx_id,
609 },
610 })
611 }
612 0x51e070bb675a18df => {
613 header.validate_request_tx_id(fidl::MethodType::TwoWay)?;
614 let mut req = fidl::new_empty!(
615 ManagerPresentRootViewRequest,
616 fidl::encoding::DefaultFuchsiaResourceDialect
617 );
618 fidl::encoding::Decoder::<fidl::encoding::DefaultFuchsiaResourceDialect>::decode_into::<ManagerPresentRootViewRequest>(&header, _body_bytes, handles, &mut req)?;
619 let control_handle = ManagerControlHandle { inner: this.inner.clone() };
620 Ok(ManagerRequest::PresentRootView {
621 viewport_creation_token: req.viewport_creation_token,
622
623 responder: ManagerPresentRootViewResponder {
624 control_handle: std::mem::ManuallyDrop::new(control_handle),
625 tx_id: header.tx_id,
626 },
627 })
628 }
629 _ => Err(fidl::Error::UnknownOrdinal {
630 ordinal: header.ordinal,
631 protocol_name:
632 <ManagerMarker as fidl::endpoints::ProtocolMarker>::DEBUG_NAME,
633 }),
634 }))
635 },
636 )
637 }
638}
639
640#[derive(Debug)]
646pub enum ManagerRequest {
647 SetRootView {
666 view_provider: fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
667 responder: ManagerSetRootViewResponder,
668 },
669 PresentRootViewLegacy {
686 view_holder_token: fidl_fuchsia_ui_views::ViewHolderToken,
687 view_ref: fidl_fuchsia_ui_views::ViewRef,
688 responder: ManagerPresentRootViewLegacyResponder,
689 },
690 PresentRootView {
705 viewport_creation_token: fidl_fuchsia_ui_views::ViewportCreationToken,
706 responder: ManagerPresentRootViewResponder,
707 },
708}
709
710impl ManagerRequest {
711 #[allow(irrefutable_let_patterns)]
712 pub fn into_set_root_view(
713 self,
714 ) -> Option<(
715 fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
716 ManagerSetRootViewResponder,
717 )> {
718 if let ManagerRequest::SetRootView { view_provider, responder } = self {
719 Some((view_provider, responder))
720 } else {
721 None
722 }
723 }
724
725 #[allow(irrefutable_let_patterns)]
726 pub fn into_present_root_view_legacy(
727 self,
728 ) -> Option<(
729 fidl_fuchsia_ui_views::ViewHolderToken,
730 fidl_fuchsia_ui_views::ViewRef,
731 ManagerPresentRootViewLegacyResponder,
732 )> {
733 if let ManagerRequest::PresentRootViewLegacy { view_holder_token, view_ref, responder } =
734 self
735 {
736 Some((view_holder_token, view_ref, responder))
737 } else {
738 None
739 }
740 }
741
742 #[allow(irrefutable_let_patterns)]
743 pub fn into_present_root_view(
744 self,
745 ) -> Option<(fidl_fuchsia_ui_views::ViewportCreationToken, ManagerPresentRootViewResponder)>
746 {
747 if let ManagerRequest::PresentRootView { viewport_creation_token, responder } = self {
748 Some((viewport_creation_token, responder))
749 } else {
750 None
751 }
752 }
753
754 pub fn method_name(&self) -> &'static str {
756 match *self {
757 ManagerRequest::SetRootView { .. } => "set_root_view",
758 ManagerRequest::PresentRootViewLegacy { .. } => "present_root_view_legacy",
759 ManagerRequest::PresentRootView { .. } => "present_root_view",
760 }
761 }
762}
763
764#[derive(Debug, Clone)]
765pub struct ManagerControlHandle {
766 inner: std::sync::Arc<fidl::ServeInner<fidl::encoding::DefaultFuchsiaResourceDialect>>,
767}
768
769impl fidl::endpoints::ControlHandle for ManagerControlHandle {
770 fn shutdown(&self) {
771 self.inner.shutdown()
772 }
773 fn shutdown_with_epitaph(&self, status: zx_status::Status) {
774 self.inner.shutdown_with_epitaph(status)
775 }
776
777 fn is_closed(&self) -> bool {
778 self.inner.channel().is_closed()
779 }
780 fn on_closed(&self) -> fidl::OnSignalsRef<'_> {
781 self.inner.channel().on_closed()
782 }
783
784 #[cfg(target_os = "fuchsia")]
785 fn signal_peer(
786 &self,
787 clear_mask: zx::Signals,
788 set_mask: zx::Signals,
789 ) -> Result<(), zx_status::Status> {
790 use fidl::Peered;
791 self.inner.channel().signal_peer(clear_mask, set_mask)
792 }
793}
794
795impl ManagerControlHandle {}
796
797#[must_use = "FIDL methods require a response to be sent"]
798#[derive(Debug)]
799pub struct ManagerSetRootViewResponder {
800 control_handle: std::mem::ManuallyDrop<ManagerControlHandle>,
801 tx_id: u32,
802}
803
804impl std::ops::Drop for ManagerSetRootViewResponder {
808 fn drop(&mut self) {
809 self.control_handle.shutdown();
810 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
812 }
813}
814
815impl fidl::endpoints::Responder for ManagerSetRootViewResponder {
816 type ControlHandle = ManagerControlHandle;
817
818 fn control_handle(&self) -> &ManagerControlHandle {
819 &self.control_handle
820 }
821
822 fn drop_without_shutdown(mut self) {
823 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
825 std::mem::forget(self);
827 }
828}
829
830impl ManagerSetRootViewResponder {
831 pub fn send(
835 self,
836 mut result: Result<fidl_fuchsia_ui_views::ViewRef, PresentRootViewError>,
837 ) -> Result<(), fidl::Error> {
838 let _result = self.send_raw(result);
839 if _result.is_err() {
840 self.control_handle.shutdown();
841 }
842 self.drop_without_shutdown();
843 _result
844 }
845
846 pub fn send_no_shutdown_on_err(
848 self,
849 mut result: Result<fidl_fuchsia_ui_views::ViewRef, PresentRootViewError>,
850 ) -> Result<(), fidl::Error> {
851 let _result = self.send_raw(result);
852 self.drop_without_shutdown();
853 _result
854 }
855
856 fn send_raw(
857 &self,
858 mut result: Result<fidl_fuchsia_ui_views::ViewRef, PresentRootViewError>,
859 ) -> Result<(), fidl::Error> {
860 self.control_handle.inner.send::<fidl::encoding::ResultType<
861 ManagerSetRootViewResponse,
862 PresentRootViewError,
863 >>(
864 result.as_mut().map_err(|e| *e).map(|view_ref| (view_ref,)),
865 self.tx_id,
866 0x3095976368270dc4,
867 fidl::encoding::DynamicFlags::empty(),
868 )
869 }
870}
871
872#[must_use = "FIDL methods require a response to be sent"]
873#[derive(Debug)]
874pub struct ManagerPresentRootViewLegacyResponder {
875 control_handle: std::mem::ManuallyDrop<ManagerControlHandle>,
876 tx_id: u32,
877}
878
879impl std::ops::Drop for ManagerPresentRootViewLegacyResponder {
883 fn drop(&mut self) {
884 self.control_handle.shutdown();
885 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
887 }
888}
889
890impl fidl::endpoints::Responder for ManagerPresentRootViewLegacyResponder {
891 type ControlHandle = ManagerControlHandle;
892
893 fn control_handle(&self) -> &ManagerControlHandle {
894 &self.control_handle
895 }
896
897 fn drop_without_shutdown(mut self) {
898 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
900 std::mem::forget(self);
902 }
903}
904
905impl ManagerPresentRootViewLegacyResponder {
906 pub fn send(self, mut result: Result<(), PresentRootViewError>) -> Result<(), fidl::Error> {
910 let _result = self.send_raw(result);
911 if _result.is_err() {
912 self.control_handle.shutdown();
913 }
914 self.drop_without_shutdown();
915 _result
916 }
917
918 pub fn send_no_shutdown_on_err(
920 self,
921 mut result: Result<(), PresentRootViewError>,
922 ) -> Result<(), fidl::Error> {
923 let _result = self.send_raw(result);
924 self.drop_without_shutdown();
925 _result
926 }
927
928 fn send_raw(&self, mut result: Result<(), PresentRootViewError>) -> Result<(), fidl::Error> {
929 self.control_handle.inner.send::<fidl::encoding::ResultType<
930 fidl::encoding::EmptyStruct,
931 PresentRootViewError,
932 >>(
933 result,
934 self.tx_id,
935 0x17729b456a2eff7,
936 fidl::encoding::DynamicFlags::empty(),
937 )
938 }
939}
940
941#[must_use = "FIDL methods require a response to be sent"]
942#[derive(Debug)]
943pub struct ManagerPresentRootViewResponder {
944 control_handle: std::mem::ManuallyDrop<ManagerControlHandle>,
945 tx_id: u32,
946}
947
948impl std::ops::Drop for ManagerPresentRootViewResponder {
952 fn drop(&mut self) {
953 self.control_handle.shutdown();
954 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
956 }
957}
958
959impl fidl::endpoints::Responder for ManagerPresentRootViewResponder {
960 type ControlHandle = ManagerControlHandle;
961
962 fn control_handle(&self) -> &ManagerControlHandle {
963 &self.control_handle
964 }
965
966 fn drop_without_shutdown(mut self) {
967 unsafe { std::mem::ManuallyDrop::drop(&mut self.control_handle) };
969 std::mem::forget(self);
971 }
972}
973
974impl ManagerPresentRootViewResponder {
975 pub fn send(self, mut result: Result<(), PresentRootViewError>) -> Result<(), fidl::Error> {
979 let _result = self.send_raw(result);
980 if _result.is_err() {
981 self.control_handle.shutdown();
982 }
983 self.drop_without_shutdown();
984 _result
985 }
986
987 pub fn send_no_shutdown_on_err(
989 self,
990 mut result: Result<(), PresentRootViewError>,
991 ) -> Result<(), fidl::Error> {
992 let _result = self.send_raw(result);
993 self.drop_without_shutdown();
994 _result
995 }
996
997 fn send_raw(&self, mut result: Result<(), PresentRootViewError>) -> Result<(), fidl::Error> {
998 self.control_handle.inner.send::<fidl::encoding::ResultType<
999 fidl::encoding::EmptyStruct,
1000 PresentRootViewError,
1001 >>(
1002 result,
1003 self.tx_id,
1004 0x51e070bb675a18df,
1005 fidl::encoding::DynamicFlags::empty(),
1006 )
1007 }
1008}
1009
1010mod internal {
1011 use super::*;
1012
1013 impl fidl::encoding::ResourceTypeMarker for ManagerPresentRootViewLegacyRequest {
1014 type Borrowed<'a> = &'a mut Self;
1015 fn take_or_borrow<'a>(
1016 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
1017 ) -> Self::Borrowed<'a> {
1018 value
1019 }
1020 }
1021
1022 unsafe impl fidl::encoding::TypeMarker for ManagerPresentRootViewLegacyRequest {
1023 type Owned = Self;
1024
1025 #[inline(always)]
1026 fn inline_align(_context: fidl::encoding::Context) -> usize {
1027 4
1028 }
1029
1030 #[inline(always)]
1031 fn inline_size(_context: fidl::encoding::Context) -> usize {
1032 8
1033 }
1034 }
1035
1036 unsafe impl
1037 fidl::encoding::Encode<
1038 ManagerPresentRootViewLegacyRequest,
1039 fidl::encoding::DefaultFuchsiaResourceDialect,
1040 > for &mut ManagerPresentRootViewLegacyRequest
1041 {
1042 #[inline]
1043 unsafe fn encode(
1044 self,
1045 encoder: &mut fidl::encoding::Encoder<
1046 '_,
1047 fidl::encoding::DefaultFuchsiaResourceDialect,
1048 >,
1049 offset: usize,
1050 _depth: fidl::encoding::Depth,
1051 ) -> fidl::Result<()> {
1052 encoder.debug_check_bounds::<ManagerPresentRootViewLegacyRequest>(offset);
1053 fidl::encoding::Encode::<ManagerPresentRootViewLegacyRequest, fidl::encoding::DefaultFuchsiaResourceDialect>::encode(
1055 (
1056 <fidl_fuchsia_ui_views::ViewHolderToken as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.view_holder_token),
1057 <fidl_fuchsia_ui_views::ViewRef as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.view_ref),
1058 ),
1059 encoder, offset, _depth
1060 )
1061 }
1062 }
1063 unsafe impl<
1064 T0: fidl::encoding::Encode<
1065 fidl_fuchsia_ui_views::ViewHolderToken,
1066 fidl::encoding::DefaultFuchsiaResourceDialect,
1067 >,
1068 T1: fidl::encoding::Encode<
1069 fidl_fuchsia_ui_views::ViewRef,
1070 fidl::encoding::DefaultFuchsiaResourceDialect,
1071 >,
1072 >
1073 fidl::encoding::Encode<
1074 ManagerPresentRootViewLegacyRequest,
1075 fidl::encoding::DefaultFuchsiaResourceDialect,
1076 > for (T0, T1)
1077 {
1078 #[inline]
1079 unsafe fn encode(
1080 self,
1081 encoder: &mut fidl::encoding::Encoder<
1082 '_,
1083 fidl::encoding::DefaultFuchsiaResourceDialect,
1084 >,
1085 offset: usize,
1086 depth: fidl::encoding::Depth,
1087 ) -> fidl::Result<()> {
1088 encoder.debug_check_bounds::<ManagerPresentRootViewLegacyRequest>(offset);
1089 self.0.encode(encoder, offset + 0, depth)?;
1093 self.1.encode(encoder, offset + 4, depth)?;
1094 Ok(())
1095 }
1096 }
1097
1098 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
1099 for ManagerPresentRootViewLegacyRequest
1100 {
1101 #[inline(always)]
1102 fn new_empty() -> Self {
1103 Self {
1104 view_holder_token: fidl::new_empty!(
1105 fidl_fuchsia_ui_views::ViewHolderToken,
1106 fidl::encoding::DefaultFuchsiaResourceDialect
1107 ),
1108 view_ref: fidl::new_empty!(
1109 fidl_fuchsia_ui_views::ViewRef,
1110 fidl::encoding::DefaultFuchsiaResourceDialect
1111 ),
1112 }
1113 }
1114
1115 #[inline]
1116 unsafe fn decode(
1117 &mut self,
1118 decoder: &mut fidl::encoding::Decoder<
1119 '_,
1120 fidl::encoding::DefaultFuchsiaResourceDialect,
1121 >,
1122 offset: usize,
1123 _depth: fidl::encoding::Depth,
1124 ) -> fidl::Result<()> {
1125 decoder.debug_check_bounds::<Self>(offset);
1126 fidl::decode!(
1128 fidl_fuchsia_ui_views::ViewHolderToken,
1129 fidl::encoding::DefaultFuchsiaResourceDialect,
1130 &mut self.view_holder_token,
1131 decoder,
1132 offset + 0,
1133 _depth
1134 )?;
1135 fidl::decode!(
1136 fidl_fuchsia_ui_views::ViewRef,
1137 fidl::encoding::DefaultFuchsiaResourceDialect,
1138 &mut self.view_ref,
1139 decoder,
1140 offset + 4,
1141 _depth
1142 )?;
1143 Ok(())
1144 }
1145 }
1146
1147 impl fidl::encoding::ResourceTypeMarker for ManagerPresentRootViewRequest {
1148 type Borrowed<'a> = &'a mut Self;
1149 fn take_or_borrow<'a>(
1150 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
1151 ) -> Self::Borrowed<'a> {
1152 value
1153 }
1154 }
1155
1156 unsafe impl fidl::encoding::TypeMarker for ManagerPresentRootViewRequest {
1157 type Owned = Self;
1158
1159 #[inline(always)]
1160 fn inline_align(_context: fidl::encoding::Context) -> usize {
1161 4
1162 }
1163
1164 #[inline(always)]
1165 fn inline_size(_context: fidl::encoding::Context) -> usize {
1166 4
1167 }
1168 }
1169
1170 unsafe impl
1171 fidl::encoding::Encode<
1172 ManagerPresentRootViewRequest,
1173 fidl::encoding::DefaultFuchsiaResourceDialect,
1174 > for &mut ManagerPresentRootViewRequest
1175 {
1176 #[inline]
1177 unsafe fn encode(
1178 self,
1179 encoder: &mut fidl::encoding::Encoder<
1180 '_,
1181 fidl::encoding::DefaultFuchsiaResourceDialect,
1182 >,
1183 offset: usize,
1184 _depth: fidl::encoding::Depth,
1185 ) -> fidl::Result<()> {
1186 encoder.debug_check_bounds::<ManagerPresentRootViewRequest>(offset);
1187 fidl::encoding::Encode::<ManagerPresentRootViewRequest, fidl::encoding::DefaultFuchsiaResourceDialect>::encode(
1189 (
1190 <fidl_fuchsia_ui_views::ViewportCreationToken as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.viewport_creation_token),
1191 ),
1192 encoder, offset, _depth
1193 )
1194 }
1195 }
1196 unsafe impl<
1197 T0: fidl::encoding::Encode<
1198 fidl_fuchsia_ui_views::ViewportCreationToken,
1199 fidl::encoding::DefaultFuchsiaResourceDialect,
1200 >,
1201 >
1202 fidl::encoding::Encode<
1203 ManagerPresentRootViewRequest,
1204 fidl::encoding::DefaultFuchsiaResourceDialect,
1205 > for (T0,)
1206 {
1207 #[inline]
1208 unsafe fn encode(
1209 self,
1210 encoder: &mut fidl::encoding::Encoder<
1211 '_,
1212 fidl::encoding::DefaultFuchsiaResourceDialect,
1213 >,
1214 offset: usize,
1215 depth: fidl::encoding::Depth,
1216 ) -> fidl::Result<()> {
1217 encoder.debug_check_bounds::<ManagerPresentRootViewRequest>(offset);
1218 self.0.encode(encoder, offset + 0, depth)?;
1222 Ok(())
1223 }
1224 }
1225
1226 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
1227 for ManagerPresentRootViewRequest
1228 {
1229 #[inline(always)]
1230 fn new_empty() -> Self {
1231 Self {
1232 viewport_creation_token: fidl::new_empty!(
1233 fidl_fuchsia_ui_views::ViewportCreationToken,
1234 fidl::encoding::DefaultFuchsiaResourceDialect
1235 ),
1236 }
1237 }
1238
1239 #[inline]
1240 unsafe fn decode(
1241 &mut self,
1242 decoder: &mut fidl::encoding::Decoder<
1243 '_,
1244 fidl::encoding::DefaultFuchsiaResourceDialect,
1245 >,
1246 offset: usize,
1247 _depth: fidl::encoding::Depth,
1248 ) -> fidl::Result<()> {
1249 decoder.debug_check_bounds::<Self>(offset);
1250 fidl::decode!(
1252 fidl_fuchsia_ui_views::ViewportCreationToken,
1253 fidl::encoding::DefaultFuchsiaResourceDialect,
1254 &mut self.viewport_creation_token,
1255 decoder,
1256 offset + 0,
1257 _depth
1258 )?;
1259 Ok(())
1260 }
1261 }
1262
1263 impl fidl::encoding::ResourceTypeMarker for ManagerSetRootViewRequest {
1264 type Borrowed<'a> = &'a mut Self;
1265 fn take_or_borrow<'a>(
1266 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
1267 ) -> Self::Borrowed<'a> {
1268 value
1269 }
1270 }
1271
1272 unsafe impl fidl::encoding::TypeMarker for ManagerSetRootViewRequest {
1273 type Owned = Self;
1274
1275 #[inline(always)]
1276 fn inline_align(_context: fidl::encoding::Context) -> usize {
1277 4
1278 }
1279
1280 #[inline(always)]
1281 fn inline_size(_context: fidl::encoding::Context) -> usize {
1282 4
1283 }
1284 }
1285
1286 unsafe impl
1287 fidl::encoding::Encode<
1288 ManagerSetRootViewRequest,
1289 fidl::encoding::DefaultFuchsiaResourceDialect,
1290 > for &mut ManagerSetRootViewRequest
1291 {
1292 #[inline]
1293 unsafe fn encode(
1294 self,
1295 encoder: &mut fidl::encoding::Encoder<
1296 '_,
1297 fidl::encoding::DefaultFuchsiaResourceDialect,
1298 >,
1299 offset: usize,
1300 _depth: fidl::encoding::Depth,
1301 ) -> fidl::Result<()> {
1302 encoder.debug_check_bounds::<ManagerSetRootViewRequest>(offset);
1303 fidl::encoding::Encode::<
1305 ManagerSetRootViewRequest,
1306 fidl::encoding::DefaultFuchsiaResourceDialect,
1307 >::encode(
1308 (<fidl::encoding::Endpoint<
1309 fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
1310 > as fidl::encoding::ResourceTypeMarker>::take_or_borrow(
1311 &mut self.view_provider
1312 ),),
1313 encoder,
1314 offset,
1315 _depth,
1316 )
1317 }
1318 }
1319 unsafe impl<
1320 T0: fidl::encoding::Encode<
1321 fidl::encoding::Endpoint<
1322 fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
1323 >,
1324 fidl::encoding::DefaultFuchsiaResourceDialect,
1325 >,
1326 >
1327 fidl::encoding::Encode<
1328 ManagerSetRootViewRequest,
1329 fidl::encoding::DefaultFuchsiaResourceDialect,
1330 > for (T0,)
1331 {
1332 #[inline]
1333 unsafe fn encode(
1334 self,
1335 encoder: &mut fidl::encoding::Encoder<
1336 '_,
1337 fidl::encoding::DefaultFuchsiaResourceDialect,
1338 >,
1339 offset: usize,
1340 depth: fidl::encoding::Depth,
1341 ) -> fidl::Result<()> {
1342 encoder.debug_check_bounds::<ManagerSetRootViewRequest>(offset);
1343 self.0.encode(encoder, offset + 0, depth)?;
1347 Ok(())
1348 }
1349 }
1350
1351 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
1352 for ManagerSetRootViewRequest
1353 {
1354 #[inline(always)]
1355 fn new_empty() -> Self {
1356 Self {
1357 view_provider: fidl::new_empty!(
1358 fidl::encoding::Endpoint<
1359 fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
1360 >,
1361 fidl::encoding::DefaultFuchsiaResourceDialect
1362 ),
1363 }
1364 }
1365
1366 #[inline]
1367 unsafe fn decode(
1368 &mut self,
1369 decoder: &mut fidl::encoding::Decoder<
1370 '_,
1371 fidl::encoding::DefaultFuchsiaResourceDialect,
1372 >,
1373 offset: usize,
1374 _depth: fidl::encoding::Depth,
1375 ) -> fidl::Result<()> {
1376 decoder.debug_check_bounds::<Self>(offset);
1377 fidl::decode!(
1379 fidl::encoding::Endpoint<
1380 fidl::endpoints::ClientEnd<fidl_fuchsia_ui_app::ViewProviderMarker>,
1381 >,
1382 fidl::encoding::DefaultFuchsiaResourceDialect,
1383 &mut self.view_provider,
1384 decoder,
1385 offset + 0,
1386 _depth
1387 )?;
1388 Ok(())
1389 }
1390 }
1391
1392 impl fidl::encoding::ResourceTypeMarker for ManagerSetRootViewResponse {
1393 type Borrowed<'a> = &'a mut Self;
1394 fn take_or_borrow<'a>(
1395 value: &'a mut <Self as fidl::encoding::TypeMarker>::Owned,
1396 ) -> Self::Borrowed<'a> {
1397 value
1398 }
1399 }
1400
1401 unsafe impl fidl::encoding::TypeMarker for ManagerSetRootViewResponse {
1402 type Owned = Self;
1403
1404 #[inline(always)]
1405 fn inline_align(_context: fidl::encoding::Context) -> usize {
1406 4
1407 }
1408
1409 #[inline(always)]
1410 fn inline_size(_context: fidl::encoding::Context) -> usize {
1411 4
1412 }
1413 }
1414
1415 unsafe impl
1416 fidl::encoding::Encode<
1417 ManagerSetRootViewResponse,
1418 fidl::encoding::DefaultFuchsiaResourceDialect,
1419 > for &mut ManagerSetRootViewResponse
1420 {
1421 #[inline]
1422 unsafe fn encode(
1423 self,
1424 encoder: &mut fidl::encoding::Encoder<
1425 '_,
1426 fidl::encoding::DefaultFuchsiaResourceDialect,
1427 >,
1428 offset: usize,
1429 _depth: fidl::encoding::Depth,
1430 ) -> fidl::Result<()> {
1431 encoder.debug_check_bounds::<ManagerSetRootViewResponse>(offset);
1432 fidl::encoding::Encode::<ManagerSetRootViewResponse, fidl::encoding::DefaultFuchsiaResourceDialect>::encode(
1434 (
1435 <fidl_fuchsia_ui_views::ViewRef as fidl::encoding::ResourceTypeMarker>::take_or_borrow(&mut self.view_ref),
1436 ),
1437 encoder, offset, _depth
1438 )
1439 }
1440 }
1441 unsafe impl<
1442 T0: fidl::encoding::Encode<
1443 fidl_fuchsia_ui_views::ViewRef,
1444 fidl::encoding::DefaultFuchsiaResourceDialect,
1445 >,
1446 >
1447 fidl::encoding::Encode<
1448 ManagerSetRootViewResponse,
1449 fidl::encoding::DefaultFuchsiaResourceDialect,
1450 > for (T0,)
1451 {
1452 #[inline]
1453 unsafe fn encode(
1454 self,
1455 encoder: &mut fidl::encoding::Encoder<
1456 '_,
1457 fidl::encoding::DefaultFuchsiaResourceDialect,
1458 >,
1459 offset: usize,
1460 depth: fidl::encoding::Depth,
1461 ) -> fidl::Result<()> {
1462 encoder.debug_check_bounds::<ManagerSetRootViewResponse>(offset);
1463 self.0.encode(encoder, offset + 0, depth)?;
1467 Ok(())
1468 }
1469 }
1470
1471 impl fidl::encoding::Decode<Self, fidl::encoding::DefaultFuchsiaResourceDialect>
1472 for ManagerSetRootViewResponse
1473 {
1474 #[inline(always)]
1475 fn new_empty() -> Self {
1476 Self {
1477 view_ref: fidl::new_empty!(
1478 fidl_fuchsia_ui_views::ViewRef,
1479 fidl::encoding::DefaultFuchsiaResourceDialect
1480 ),
1481 }
1482 }
1483
1484 #[inline]
1485 unsafe fn decode(
1486 &mut self,
1487 decoder: &mut fidl::encoding::Decoder<
1488 '_,
1489 fidl::encoding::DefaultFuchsiaResourceDialect,
1490 >,
1491 offset: usize,
1492 _depth: fidl::encoding::Depth,
1493 ) -> fidl::Result<()> {
1494 decoder.debug_check_bounds::<Self>(offset);
1495 fidl::decode!(
1497 fidl_fuchsia_ui_views::ViewRef,
1498 fidl::encoding::DefaultFuchsiaResourceDialect,
1499 &mut self.view_ref,
1500 decoder,
1501 offset + 0,
1502 _depth
1503 )?;
1504 Ok(())
1505 }
1506 }
1507}