[][src]Struct fwupd_dbus::Remote

pub struct Remote {
    pub agreement: Option<Box<str>>,
    pub approval_required: bool,
    pub checksum: Option<Box<str>>,
    pub enabled: bool,
    pub filename_cache: Box<str>,
    pub filename_source: Box<str>,
    pub firmware_base_uri: Option<Box<str>>,
    pub keyring: KeyringKind,
    pub kind: RemoteKind,
    pub modification_time: u64,
    pub password: Option<Box<str>>,
    pub priority: i16,
    pub remote_id: RemoteId,
    pub report_uri: Option<Box<str>>,
    pub title: Box<str>,
    pub uri: Option<Box<str>>,
    pub username: Option<Box<str>>,
}

Information about an available fwupd remote.

Fields

agreement: Option<Box<str>>approval_required: boolchecksum: Option<Box<str>>enabled: boolfilename_cache: Box<str>filename_source: Box<str>firmware_base_uri: Option<Box<str>>keyring: KeyringKindkind: RemoteKindmodification_time: u64password: Option<Box<str>>priority: i16remote_id: RemoteIdreport_uri: Option<Box<str>>title: Box<str>uri: Option<Box<str>>username: Option<Box<str>>

Methods

impl Remote[src]

pub fn update_metadata(
    &self,
    client: &Client,
    http_client: &Client
) -> Result<(), UpdateError>
[src]

Updates the metadata for this remote.

pub fn time_since_last_update(&self) -> Option<Duration>[src]

Fetch the time since the last update, if such a time can be fetched.

Trait Implementations

impl AsRef<RemoteId> for Remote[src]

impl Clone for Remote[src]

impl Debug for Remote[src]

impl Default for Remote[src]

impl FromIterator<(String, Variant<Box<dyn RefArg + 'static>>)> for Remote[src]

Auto Trait Implementations

impl RefUnwindSafe for Remote

impl Send for Remote

impl Sync for Remote

impl Unpin for Remote

impl UnwindSafe for Remote

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.