pub struct TrustedFlatlandProxy { /* private fields */ }Implementations§
Source§impl TrustedFlatlandProxy
impl TrustedFlatlandProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.composition/TrustedFlatland.
Sourcepub fn take_event_stream(&self) -> TrustedFlatlandEventStream
pub fn take_event_stream(&self) -> TrustedFlatlandEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn release_image_immediately(
&self,
image_id: &ContentId,
) -> Result<(), Error>
pub fn release_image_immediately( &self, image_id: &ContentId, ) -> Result<(), Error>
Releases an image immediately, without waiting for the next present.
Sourcepub fn release_image_immediately2(
&self,
image_id: &ImageId,
) -> Result<(), Error>
pub fn release_image_immediately2( &self, image_id: &ImageId, ) -> Result<(), Error>
Releases an Image immediately, without waiting for the next present. This is a trusted memory-eviction path.
The Image is forcibly unbound from any Layers that currently reference it. Those Layers
behave as if their image was simply never set (they are invisible, but retain their image
properties) until their next SetLayerImage().
Any pending release fences for the evicted Image’s bindings will signal at the earliest safe point.
This method is only available if Flatland2 is enabled and the session is trusted.
Trait Implementations§
Source§impl Clone for TrustedFlatlandProxy
impl Clone for TrustedFlatlandProxy
Source§fn clone(&self) -> TrustedFlatlandProxy
fn clone(&self) -> TrustedFlatlandProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustedFlatlandProxy
impl Debug for TrustedFlatlandProxy
Source§impl Proxy for TrustedFlatlandProxy
impl Proxy for TrustedFlatlandProxy
Source§type Protocol = TrustedFlatlandMarker
type Protocol = TrustedFlatlandMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TrustedFlatlandProxy
impl !UnwindSafe for TrustedFlatlandProxy
impl Freeze for TrustedFlatlandProxy
impl Send for TrustedFlatlandProxy
impl Sync for TrustedFlatlandProxy
impl Unpin for TrustedFlatlandProxy
impl UnsafeUnpin for TrustedFlatlandProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.