pub struct Presentation {
pub revision: u64,
pub owner: ControlOwner,
pub current_action: Option<String>,
pub pending_signin: Option<PendingSignIn>,
pub blackout_active: bool,
pub tabs: Vec<TabInfo>,
}Expand description
The presentation-state model — what the drawer shows. A snapshot type,
not itself a reducer: PresentationState is the mutable holder,
Presentation is what it projects out for a wire surface to serialize.
Fields§
§revision: u64Monotonically increases by one on every change (a control-state transition that actually did something, or a tab-list update). Two snapshots at the same revision are content-identical, which is the seam a later snapshot+delta subscription needs.
owner: ControlOwner§current_action: Option<String>§pending_signin: Option<PendingSignIn>§blackout_active: bool§tabs: Vec<TabInfo>id / URL / title / active, per tab — see car_browser::TabInfo.
Trait Implementations§
Source§impl Clone for Presentation
impl Clone for Presentation
Source§impl Debug for Presentation
impl Debug for Presentation
Source§impl From<&Presentation> for WirePresentation
impl From<&Presentation> for WirePresentation
Source§fn from(p: &Presentation) -> Self
fn from(p: &Presentation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Presentation
impl PartialEq for Presentation
impl StructuralPartialEq for Presentation
Auto Trait Implementations§
impl Freeze for Presentation
impl RefUnwindSafe for Presentation
impl Send for Presentation
impl Sync for Presentation
impl Unpin for Presentation
impl UnsafeUnpin for Presentation
impl UnwindSafe for Presentation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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