#[non_exhaustive]pub struct Parts<D, L, R>{
pub config: Config,
pub database: Database<D>,
pub local: L,
pub remote: R,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.config: ConfigThe client configuration.
database: Database<D>The Tuf database, which is updated by the Client.
local: LThe local repository, which is used to initialize the database, and is updated by the Client.
remote: RThe remote repository, which is used by the client to update the database.
Trait Implementations§
Auto Trait Implementations§
impl<D, L, R> Freeze for Parts<D, L, R>
impl<D, L, R> RefUnwindSafe for Parts<D, L, R>
impl<D, L, R> Send for Parts<D, L, R>
impl<D, L, R> Sync for Parts<D, L, R>
impl<D, L, R> Unpin for Parts<D, L, R>
impl<D, L, R> UnsafeUnpin for Parts<D, L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<D, L, R> UnwindSafe for Parts<D, L, R>
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