Struct windows::System::Update::SystemUpdateManager
pub struct SystemUpdateManager;
Implementations§
§impl SystemUpdateManager
impl SystemUpdateManager
pub fn IsSupported() -> Result<bool>
pub fn State() -> Result<SystemUpdateManagerState>
pub fn StateChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveStateChanged(token: EventRegistrationToken) -> Result<()>
pub fn DownloadProgress() -> Result<f64>
pub fn InstallProgress() -> Result<f64>
pub fn UserActiveHoursStart() -> Result<TimeSpan>
pub fn UserActiveHoursEnd() -> Result<TimeSpan>
pub fn UserActiveHoursMax() -> Result<i32>
pub fn TrySetUserActiveHours(start: TimeSpan, end: TimeSpan) -> Result<bool>
pub fn LastUpdateCheckTime() -> Result<DateTime>
pub fn LastUpdateInstallTime() -> Result<DateTime>
pub fn LastErrorInfo() -> Result<SystemUpdateLastErrorInfo>
pub fn GetAutomaticRebootBlockIds() -> Result<IVectorView<HSTRING>>
pub fn BlockAutomaticRebootAsync( lockid: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn UnblockAutomaticRebootAsync( lockid: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn ExtendedError() -> Result<HRESULT>
pub fn GetUpdateItems() -> Result<IVectorView<SystemUpdateItem>>
pub fn AttentionRequiredReason() -> Result<SystemUpdateAttentionRequiredReason>
pub fn SetFlightRing(flightring: &HSTRING) -> Result<bool>
pub fn GetFlightRing() -> Result<HSTRING>
pub fn StartInstall(action: SystemUpdateStartInstallAction) -> Result<()>
pub fn RebootToCompleteInstall() -> Result<()>
pub fn StartCancelUpdates() -> Result<()>
Auto Trait Implementations§
impl Freeze for SystemUpdateManager
impl RefUnwindSafe for SystemUpdateManager
impl Send for SystemUpdateManager
impl Sync for SystemUpdateManager
impl Unpin for SystemUpdateManager
impl UnwindSafe for SystemUpdateManager
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