pub struct Flatland { /* private fields */ }
Implementations§
Source§impl Flatland
A thin wrapper around FlatlandProxy
, which currently exits
to allocate transform/content ids, and implement flow events
for present
calls.
impl Flatland
A thin wrapper around FlatlandProxy
, which currently exits
to allocate transform/content ids, and implement flow events
for present
calls.
Scenic will maintain it’s own present counter so we need to ensure each an every present call increments the trace_id otherwise our traces will not be generated correctly.
pub fn new(flatland: FlatlandProxy) -> FlatlandPtr
pub fn id(&self) -> FlatlandInstanceId
pub fn proxy(&self) -> &FlatlandProxy
pub fn add_release_fence(&mut self, fence: Event)
pub fn present(&mut self, presentation_time: i64)
pub fn alloc_transform_id(&mut self) -> TransformId
pub fn alloc_content_id(&mut self) -> ContentId
pub fn alloc_trace_id(&mut self) -> Id
Auto Trait Implementations§
impl Freeze for Flatland
impl !RefUnwindSafe for Flatland
impl Send for Flatland
impl Sync for Flatland
impl Unpin for Flatland
impl !UnwindSafe for Flatland
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, 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,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more