pub struct FileUpdateProvider { /* private fields */ }Expand description
Local-first update provider backed by a bounded JSON artifact index.
Implementations§
Trait Implementations§
Source§impl Clone for FileUpdateProvider
impl Clone for FileUpdateProvider
Source§fn clone(&self) -> FileUpdateProvider
fn clone(&self) -> FileUpdateProvider
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 FileUpdateProvider
impl Debug for FileUpdateProvider
Source§impl UpdateProvider for FileUpdateProvider
impl UpdateProvider for FileUpdateProvider
Source§fn latest(
&self,
request: &UpdateRequest,
) -> UpdateResult<Option<ArtifactDescriptor>>
fn latest( &self, request: &UpdateRequest, ) -> UpdateResult<Option<ArtifactDescriptor>>
Returns the newest eligible artifact, or
None when no update exists.Source§fn fetch(
&self,
artifact: &ArtifactDescriptor,
max_bytes: usize,
) -> UpdateResult<Vec<u8>>
fn fetch( &self, artifact: &ArtifactDescriptor, max_bytes: usize, ) -> UpdateResult<Vec<u8>>
Fetches complete artifact bytes while respecting
max_bytes.Auto Trait Implementations§
impl Freeze for FileUpdateProvider
impl RefUnwindSafe for FileUpdateProvider
impl Send for FileUpdateProvider
impl Sync for FileUpdateProvider
impl Unpin for FileUpdateProvider
impl UnsafeUnpin for FileUpdateProvider
impl UnwindSafe for FileUpdateProvider
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