pub enum ViewRequest {
Present {
view_token: ViewToken,
control_handle: ViewControlHandle,
},
}
Expand description
Deprecated API for view creation. DO NOT USE.
Variants§
Present
Provides the View with an attachment point to Scenic’s scene graph.
When Present()
is called the View’s implementation should create a
View resource within Scenic by providing it with the view_token
(using
a fuchsia.ui.gfx.CreateResourceCmd
and fuchsia.ui.gfx.ViewArgs
).
Then the implementation should attach its graphical content to the
newly-created View resource using a fuchsia.ui.gfx.AddChildCmd
.
If the implementation already owns a View resource (because Present()
had already been called before), then it should terminate the connection
with an error.
TODO(https://fxbug.dev/42098670): Allow re-parenting View
s with a new Present()
call.
Implementations§
Source§impl ViewRequest
impl ViewRequest
pub fn into_present(self) -> Option<(ViewToken, ViewControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewRequest
impl !RefUnwindSafe for ViewRequest
impl Send for ViewRequest
impl Sync for ViewRequest
impl Unpin for ViewRequest
impl !UnwindSafe for ViewRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more