[]Struct ostree::Sysroot

pub struct Sysroot(_, _);

Methods

impl Sysroot[src]

pub fn new<P: IsA<File>>(path: Option<&P>) -> Sysroot[src]

pub fn new_default() -> Sysroot[src]

pub fn cleanup<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn deploy_tree<P: IsA<Cancellable>>(
    &self,
    osname: Option<&str>,
    revision: &str,
    origin: Option<&KeyFile>,
    provided_merge_deployment: Option<&Deployment>,
    override_kernel_argv: &[&str],
    cancellable: Option<&P>
) -> Result<Deployment, Error>
[src]

pub fn deployment_set_kargs<P: IsA<Cancellable>>(
    &self,
    deployment: &Deployment,
    new_kargs: &[&str],
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn deployment_set_mutable<P: IsA<Cancellable>>(
    &self,
    deployment: &Deployment,
    is_mutable: bool,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn deployment_set_pinned(
    &self,
    deployment: &Deployment,
    is_pinned: bool
) -> Result<(), Error>
[src]

pub fn deployment_unlock<P: IsA<Cancellable>>(
    &self,
    deployment: &Deployment,
    unlocked_state: DeploymentUnlockedState,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn ensure_initialized<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn get_booted_deployment(&self) -> Option<Deployment>[src]

pub fn get_bootversion(&self) -> i32[src]

pub fn get_deployment_directory(&self, deployment: &Deployment) -> Option<File>[src]

pub fn get_deployment_dirpath(&self, deployment: &Deployment) -> Option<GString>[src]

pub fn get_fd(&self) -> i32[src]

pub fn get_merge_deployment(&self, osname: Option<&str>) -> Option<Deployment>[src]

pub fn get_path(&self) -> Option<File>[src]

pub fn get_repo<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<Repo, Error>
[src]

pub fn get_staged_deployment(&self) -> Option<Deployment>[src]

pub fn get_subbootversion(&self) -> i32[src]

pub fn init_osname<P: IsA<Cancellable>>(
    &self,
    osname: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn load<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn load_if_changed<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<bool, Error>
[src]

pub fn lock(&self) -> Result<(), Error>[src]

pub fn lock_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    cancellable: Option<&P>,
    callback: Q
)
[src]

pub fn lock_async_future(
    &self
) -> Box_<dyn Future<Output = Result<(), Error>> + Unpin>
[src]

pub fn origin_new_from_refspec(&self, refspec: &str) -> Option<KeyFile>[src]

pub fn prepare_cleanup<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn query_deployments_for(
    &self,
    osname: Option<&str>
) -> (Deployment, Deployment)
[src]

pub fn repo(&self) -> Option<Repo>[src]

pub fn simple_write_deployment<P: IsA<Cancellable>>(
    &self,
    osname: Option<&str>,
    new_deployment: &Deployment,
    merge_deployment: Option<&Deployment>,
    flags: SysrootSimpleWriteDeploymentFlags,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn stage_tree<P: IsA<Cancellable>>(
    &self,
    osname: Option<&str>,
    revision: &str,
    origin: Option<&KeyFile>,
    merge_deployment: Option<&Deployment>,
    override_kernel_argv: &[&str],
    cancellable: Option<&P>
) -> Result<Deployment, Error>
[src]

pub fn try_lock(&self) -> Result<bool, Error>[src]

pub fn unload(&self)[src]

pub fn unlock(&self)[src]

pub fn write_origin_file<P: IsA<Cancellable>>(
    &self,
    deployment: &Deployment,
    new_origin: Option<&KeyFile>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn get_deployment_origin_path<P: IsA<File>>(
    deployment_path: &P
) -> Option<File>
[src]

pub fn connect_journal_msg<F: Fn(&Sysroot, &str) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for Sysroot

impl Debug for Sysroot

impl Display for Sysroot[src]

impl Eq for Sysroot

impl Hash for Sysroot

impl Ord for Sysroot

impl<T: ObjectType> PartialEq<T> for Sysroot

impl<T: ObjectType> PartialOrd<T> for Sysroot

impl StaticType for Sysroot

Auto Trait Implementations

impl RefUnwindSafe for Sysroot

impl !Send for Sysroot

impl !Sync for Sysroot

impl Unpin for Sysroot

impl UnwindSafe for Sysroot

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<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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

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

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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

type Error = !

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.