pub struct FuchsiaAppSet { /* private fields */ }Implementations§
Source§impl FuchsiaAppSet
impl FuchsiaAppSet
pub fn new(system_app: App, system_app_metadata: AppMetadata) -> Self
pub fn add_eager_package(&mut self, package: EagerPackage)
Sourcepub fn get_system_product_id(&self) -> &str
pub fn get_system_product_id(&self) -> &str
Get the system product id. Returns empty string if product id not set for the system app.
Sourcepub fn get_system_current_channel(&self) -> &str
pub fn get_system_current_channel(&self) -> &str
Get the current channel name from cohort name, returns empty string if no cohort name set for the app.
Sourcepub fn get_system_target_channel(&self) -> &str
pub fn get_system_target_channel(&self) -> &str
Get the target channel name from cohort hint, fallback to current channel if no hint.
Sourcepub fn set_system_target_channel(
&mut self,
channel: Option<String>,
id: Option<String>,
)
pub fn set_system_target_channel( &mut self, channel: Option<String>, id: Option<String>, )
Set the cohort hint of system app to |channel| and |id|.
pub fn get_system_app_metadata(&self) -> &AppMetadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FuchsiaAppSet
impl RefUnwindSafe for FuchsiaAppSet
impl Send for FuchsiaAppSet
impl Sync for FuchsiaAppSet
impl Unpin for FuchsiaAppSet
impl UnwindSafe for FuchsiaAppSet
Blanket Implementations§
Source§impl<T> AppSetExt for Twhere
T: AppSet,
impl<T> AppSetExt for Twhere
T: AppSet,
Source§fn update_from_omaha(&mut self, app_responses: &[AppResponse])
fn update_from_omaha(&mut self, app_responses: &[AppResponse])
Update the cohort and user counting for each app from Omaha app response.
Source§fn load<'a>(
&'a mut self,
storage: &'a impl Storage,
) -> Pin<Box<dyn Future<Output = ()> + 'a>>
fn load<'a>( &'a mut self, storage: &'a impl Storage, ) -> Pin<Box<dyn Future<Output = ()> + 'a>>
Load data from |storage|, only overwrite existing fields if data exists.
Source§fn persist<'a>(
&'a self,
storage: &'a mut impl Storage,
) -> Pin<Box<dyn Future<Output = ()> + 'a>>
fn persist<'a>( &'a self, storage: &'a mut impl Storage, ) -> Pin<Box<dyn Future<Output = ()> + 'a>>
Persist cohort and user counting to |storage|, will try to set all of them to storage even
if previous set fails.
It will NOT call commit() on |storage|, caller is responsible to call commit().
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> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.