Struct ostree::Repo [−][src]
Implementations
impl Repo
[src]
pub fn new<P: IsA<File>>(path: &P) -> Repo
[src]
pub fn new_default() -> Repo
[src]
pub fn new_for_sysroot_path<P: IsA<File>, Q: IsA<File>>(
repo_path: &P,
sysroot_path: &Q
) -> Repo
[src]
repo_path: &P,
sysroot_path: &Q
) -> Repo
pub fn abort_transaction<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn add_gpg_signature_summary<P: IsA<Cancellable>>(
&self,
key_id: &[&str],
homedir: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
key_id: &[&str],
homedir: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn append_gpg_signature<P: IsA<Cancellable>>(
&self,
commit_checksum: &str,
signature_bytes: &Bytes,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
commit_checksum: &str,
signature_bytes: &Bytes,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn checkout_at<P: AsRef<Path>, Q: IsA<Cancellable>>(
&self,
options: Option<&RepoCheckoutAtOptions>,
destination_dfd: i32,
destination_path: P,
commit: &str,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
options: Option<&RepoCheckoutAtOptions>,
destination_dfd: i32,
destination_path: P,
commit: &str,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn checkout_gc<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn checkout_tree<P: IsA<File>, Q: IsA<RepoFile>, R: IsA<Cancellable>>(
&self,
mode: RepoCheckoutMode,
overwrite_mode: RepoCheckoutOverwriteMode,
destination: &P,
source: &Q,
source_info: &FileInfo,
cancellable: Option<&R>
) -> Result<(), Error>
[src]
&self,
mode: RepoCheckoutMode,
overwrite_mode: RepoCheckoutOverwriteMode,
destination: &P,
source: &Q,
source_info: &FileInfo,
cancellable: Option<&R>
) -> Result<(), Error>
pub fn commit_transaction<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<RepoTransactionStats, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<RepoTransactionStats, Error>
pub fn copy_config(&self) -> Option<KeyFile>
[src]
pub fn create<P: IsA<Cancellable>>(
&self,
mode: RepoMode,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
mode: RepoMode,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn delete_object<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
sha256: &str,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
objtype: ObjectType,
sha256: &str,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn equal(&self, b: &Repo) -> bool
[src]
pub fn fsck_object<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
sha256: &str,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
objtype: ObjectType,
sha256: &str,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn get_bootloader(&self) -> Option<GString>
[src]
pub fn get_collection_id(&self) -> Option<GString>
[src]
pub fn get_config(&self) -> Option<KeyFile>
[src]
pub fn get_default_repo_finders(&self) -> Vec<GString>
[src]
pub fn get_dfd(&self) -> i32
[src]
pub fn get_disable_fsync(&self) -> bool
[src]
pub fn get_min_free_space_bytes(&self) -> Result<u64, Error>
[src]
pub fn get_mode(&self) -> RepoMode
[src]
pub fn get_parent(&self) -> Option<Repo>
[src]
pub fn get_path(&self) -> Option<File>
[src]
pub fn get_remote_boolean_option(
&self,
remote_name: &str,
option_name: &str,
default_value: bool
) -> Result<bool, Error>
[src]
&self,
remote_name: &str,
option_name: &str,
default_value: bool
) -> Result<bool, Error>
pub fn get_remote_list_option(
&self,
remote_name: &str,
option_name: &str
) -> Result<Vec<GString>, Error>
[src]
&self,
remote_name: &str,
option_name: &str
) -> Result<Vec<GString>, Error>
pub fn get_remote_option(
&self,
remote_name: &str,
option_name: &str,
default_value: Option<&str>
) -> Result<GString, Error>
[src]
&self,
remote_name: &str,
option_name: &str,
default_value: Option<&str>
) -> Result<GString, Error>
pub fn gpg_sign_data<P: IsA<Cancellable>>(
&self,
data: &Bytes,
old_signatures: &Bytes,
key_id: &[&str],
homedir: Option<&str>,
cancellable: Option<&P>
) -> Result<Bytes, Error>
[src]
&self,
data: &Bytes,
old_signatures: &Bytes,
key_id: &[&str],
homedir: Option<&str>,
cancellable: Option<&P>
) -> Result<Bytes, Error>
pub fn gpg_verify_data<P: IsA<File>, Q: IsA<File>, R: IsA<Cancellable>>(
&self,
remote_name: Option<&str>,
data: &Bytes,
signatures: &Bytes,
keyringdir: Option<&P>,
extra_keyring: Option<&Q>,
cancellable: Option<&R>
) -> Result<GpgVerifyResult, Error>
[src]
&self,
remote_name: Option<&str>,
data: &Bytes,
signatures: &Bytes,
keyringdir: Option<&P>,
extra_keyring: Option<&Q>,
cancellable: Option<&R>
) -> Result<GpgVerifyResult, Error>
pub fn has_object<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
checksum: &str,
cancellable: Option<&P>
) -> Result<bool, Error>
[src]
&self,
objtype: ObjectType,
checksum: &str,
cancellable: Option<&P>
) -> Result<bool, Error>
pub fn hash(&self) -> u32
[src]
pub fn import_object_from<P: IsA<Cancellable>>(
&self,
source: &Repo,
objtype: ObjectType,
checksum: &str,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
source: &Repo,
objtype: ObjectType,
checksum: &str,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn import_object_from_with_trust<P: IsA<Cancellable>>(
&self,
source: &Repo,
objtype: ObjectType,
checksum: &str,
trusted: bool,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
source: &Repo,
objtype: ObjectType,
checksum: &str,
trusted: bool,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn is_system(&self) -> bool
[src]
pub fn is_writable(&self) -> Result<(), Error>
[src]
pub fn list_static_delta_indexes<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Vec<GString>, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<Vec<GString>, Error>
pub fn list_static_delta_names<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Vec<GString>, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<Vec<GString>, Error>
pub fn load_commit(
&self,
checksum: &str
) -> Result<(Variant, RepoCommitState), Error>
[src]
&self,
checksum: &str
) -> Result<(Variant, RepoCommitState), Error>
pub fn load_file<P: IsA<Cancellable>>(
&self,
checksum: &str,
cancellable: Option<&P>
) -> Result<(Option<InputStream>, Option<FileInfo>, Option<Variant>), Error>
[src]
&self,
checksum: &str,
cancellable: Option<&P>
) -> Result<(Option<InputStream>, Option<FileInfo>, Option<Variant>), Error>
pub fn load_object_stream<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
checksum: &str,
cancellable: Option<&P>
) -> Result<(InputStream, u64), Error>
[src]
&self,
objtype: ObjectType,
checksum: &str,
cancellable: Option<&P>
) -> Result<(InputStream, u64), Error>
pub fn load_variant(
&self,
objtype: ObjectType,
sha256: &str
) -> Result<Variant, Error>
[src]
&self,
objtype: ObjectType,
sha256: &str
) -> Result<Variant, Error>
pub fn load_variant_if_exists(
&self,
objtype: ObjectType,
sha256: &str
) -> Result<Variant, Error>
[src]
&self,
objtype: ObjectType,
sha256: &str
) -> Result<Variant, Error>
pub fn mark_commit_partial(
&self,
checksum: &str,
is_partial: bool
) -> Result<(), Error>
[src]
&self,
checksum: &str,
is_partial: bool
) -> Result<(), Error>
pub fn mark_commit_partial_reason(
&self,
checksum: &str,
is_partial: bool,
in_state: RepoCommitState
) -> Result<(), Error>
[src]
&self,
checksum: &str,
is_partial: bool,
in_state: RepoCommitState
) -> Result<(), Error>
pub fn open<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn prepare_transaction<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<bool, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<bool, Error>
pub fn prune<P: IsA<Cancellable>>(
&self,
flags: RepoPruneFlags,
depth: i32,
cancellable: Option<&P>
) -> Result<(i32, i32, u64), Error>
[src]
&self,
flags: RepoPruneFlags,
depth: i32,
cancellable: Option<&P>
) -> Result<(i32, i32, u64), Error>
pub fn prune_static_deltas<P: IsA<Cancellable>>(
&self,
commit: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
commit: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn pull<P: IsA<AsyncProgress>, Q: IsA<Cancellable>>(
&self,
remote_name: &str,
refs_to_fetch: &[&str],
flags: RepoPullFlags,
progress: Option<&P>,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
remote_name: &str,
refs_to_fetch: &[&str],
flags: RepoPullFlags,
progress: Option<&P>,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn pull_one_dir<P: IsA<AsyncProgress>, Q: IsA<Cancellable>>(
&self,
remote_name: &str,
dir_to_pull: &str,
refs_to_fetch: &[&str],
flags: RepoPullFlags,
progress: Option<&P>,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
remote_name: &str,
dir_to_pull: &str,
refs_to_fetch: &[&str],
flags: RepoPullFlags,
progress: Option<&P>,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn pull_with_options<P: IsA<AsyncProgress>, Q: IsA<Cancellable>>(
&self,
remote_name_or_baseurl: &str,
options: &Variant,
progress: Option<&P>,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
remote_name_or_baseurl: &str,
options: &Variant,
progress: Option<&P>,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn query_object_storage_size<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
sha256: &str,
cancellable: Option<&P>
) -> Result<u64, Error>
[src]
&self,
objtype: ObjectType,
sha256: &str,
cancellable: Option<&P>
) -> Result<u64, Error>
pub fn read_commit<P: IsA<Cancellable>>(
&self,
ref_: &str,
cancellable: Option<&P>
) -> Result<(File, GString), Error>
[src]
&self,
ref_: &str,
cancellable: Option<&P>
) -> Result<(File, GString), Error>
pub fn read_commit_detached_metadata<P: IsA<Cancellable>>(
&self,
checksum: &str,
cancellable: Option<&P>
) -> Result<Variant, Error>
[src]
&self,
checksum: &str,
cancellable: Option<&P>
) -> Result<Variant, Error>
pub fn regenerate_summary<P: IsA<Cancellable>>(
&self,
additional_metadata: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
additional_metadata: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn reload_config<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn remote_add<P: IsA<Cancellable>>(
&self,
name: &str,
url: &str,
options: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
name: &str,
url: &str,
options: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn remote_change<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
sysroot: Option<&P>,
changeop: RepoRemoteChange,
name: &str,
url: &str,
options: Option<&Variant>,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
sysroot: Option<&P>,
changeop: RepoRemoteChange,
name: &str,
url: &str,
options: Option<&Variant>,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn remote_delete<P: IsA<Cancellable>>(
&self,
name: &str,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
name: &str,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn remote_fetch_summary<P: IsA<Cancellable>>(
&self,
name: &str,
cancellable: Option<&P>
) -> Result<(Bytes, Bytes), Error>
[src]
&self,
name: &str,
cancellable: Option<&P>
) -> Result<(Bytes, Bytes), Error>
pub fn remote_fetch_summary_with_options<P: IsA<Cancellable>>(
&self,
name: &str,
options: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(Bytes, Bytes), Error>
[src]
&self,
name: &str,
options: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(Bytes, Bytes), Error>
pub fn remote_get_gpg_verify(&self, name: &str) -> Result<bool, Error>
[src]
pub fn remote_get_gpg_verify_summary(&self, name: &str) -> Result<bool, Error>
[src]
pub fn remote_get_url(&self, name: &str) -> Result<GString, Error>
[src]
pub fn remote_gpg_import<P: IsA<InputStream>, Q: IsA<Cancellable>>(
&self,
name: &str,
source_stream: Option<&P>,
key_ids: &[&str],
cancellable: Option<&Q>
) -> Result<u32, Error>
[src]
&self,
name: &str,
source_stream: Option<&P>,
key_ids: &[&str],
cancellable: Option<&Q>
) -> Result<u32, Error>
pub fn remote_list(&self) -> Vec<GString>
[src]
pub fn resolve_collection_ref<P: IsA<Cancellable>>(
&self,
ref_: &CollectionRef,
allow_noent: bool,
flags: RepoResolveRevExtFlags,
cancellable: Option<&P>
) -> Result<Option<GString>, Error>
[src]
&self,
ref_: &CollectionRef,
allow_noent: bool,
flags: RepoResolveRevExtFlags,
cancellable: Option<&P>
) -> Result<Option<GString>, Error>
pub fn resolve_keyring_for_collection<P: IsA<Cancellable>>(
&self,
collection_id: &str,
cancellable: Option<&P>
) -> Result<Remote, Error>
[src]
&self,
collection_id: &str,
cancellable: Option<&P>
) -> Result<Remote, Error>
pub fn resolve_rev(
&self,
refspec: &str,
allow_noent: bool
) -> Result<Option<GString>, Error>
[src]
&self,
refspec: &str,
allow_noent: bool
) -> Result<Option<GString>, Error>
pub fn resolve_rev_ext(
&self,
refspec: &str,
allow_noent: bool,
flags: RepoResolveRevExtFlags
) -> Result<Option<GString>, Error>
[src]
&self,
refspec: &str,
allow_noent: bool,
flags: RepoResolveRevExtFlags
) -> Result<Option<GString>, Error>
pub fn scan_hardlinks<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn set_alias_ref_immediate<P: IsA<Cancellable>>(
&self,
remote: Option<&str>,
ref_: &str,
target: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
remote: Option<&str>,
ref_: &str,
target: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn set_cache_dir<P: IsA<Cancellable>>(
&self,
dfd: i32,
path: &str,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
dfd: i32,
path: &str,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn set_collection_id(
&self,
collection_id: Option<&str>
) -> Result<(), Error>
[src]
&self,
collection_id: Option<&str>
) -> Result<(), Error>
pub fn set_collection_ref_immediate<P: IsA<Cancellable>>(
&self,
ref_: &CollectionRef,
checksum: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
ref_: &CollectionRef,
checksum: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn set_disable_fsync(&self, disable_fsync: bool)
[src]
pub fn set_ref_immediate<P: IsA<Cancellable>>(
&self,
remote: Option<&str>,
ref_: &str,
checksum: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
remote: Option<&str>,
ref_: &str,
checksum: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn sign_commit<P: IsA<Cancellable>>(
&self,
commit_checksum: &str,
key_id: &str,
homedir: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
commit_checksum: &str,
key_id: &str,
homedir: Option<&str>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn sign_delta<P: IsA<Cancellable>>(
&self,
from_commit: &str,
to_commit: &str,
key_id: &str,
homedir: &str,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
from_commit: &str,
to_commit: &str,
key_id: &str,
homedir: &str,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn static_delta_execute_offline<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
dir_or_file: &P,
skip_validation: bool,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
dir_or_file: &P,
skip_validation: bool,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn static_delta_execute_offline_with_signature<P: IsA<File>, Q: IsA<Sign>, R: IsA<Cancellable>>(
&self,
dir_or_file: &P,
sign: &Q,
skip_validation: bool,
cancellable: Option<&R>
) -> Result<(), Error>
[src]
&self,
dir_or_file: &P,
sign: &Q,
skip_validation: bool,
cancellable: Option<&R>
) -> Result<(), Error>
pub fn static_delta_generate<P: IsA<Cancellable>>(
&self,
opt: StaticDeltaGenerateOpt,
from: Option<&str>,
to: &str,
metadata: Option<&Variant>,
params: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
opt: StaticDeltaGenerateOpt,
from: Option<&str>,
to: &str,
metadata: Option<&Variant>,
params: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn static_delta_verify_signature<P: IsA<Sign>>(
&self,
delta_id: &str,
sign: &P
) -> Result<Option<GString>, Error>
[src]
&self,
delta_id: &str,
sign: &P
) -> Result<Option<GString>, Error>
pub fn transaction_set_collection_ref(
&self,
ref_: &CollectionRef,
checksum: Option<&str>
)
[src]
&self,
ref_: &CollectionRef,
checksum: Option<&str>
)
pub fn transaction_set_ref(
&self,
remote: Option<&str>,
ref_: &str,
checksum: Option<&str>
)
[src]
&self,
remote: Option<&str>,
ref_: &str,
checksum: Option<&str>
)
pub fn transaction_set_refspec(&self, refspec: &str, checksum: Option<&str>)
[src]
pub fn verify_commit<P: IsA<File>, Q: IsA<File>, R: IsA<Cancellable>>(
&self,
commit_checksum: &str,
keyringdir: Option<&P>,
extra_keyring: Option<&Q>,
cancellable: Option<&R>
) -> Result<(), Error>
[src]
&self,
commit_checksum: &str,
keyringdir: Option<&P>,
extra_keyring: Option<&Q>,
cancellable: Option<&R>
) -> Result<(), Error>
pub fn verify_commit_ext<P: IsA<File>, Q: IsA<File>, R: IsA<Cancellable>>(
&self,
commit_checksum: &str,
keyringdir: Option<&P>,
extra_keyring: Option<&Q>,
cancellable: Option<&R>
) -> Result<GpgVerifyResult, Error>
[src]
&self,
commit_checksum: &str,
keyringdir: Option<&P>,
extra_keyring: Option<&Q>,
cancellable: Option<&R>
) -> Result<GpgVerifyResult, Error>
pub fn verify_commit_for_remote<P: IsA<Cancellable>>(
&self,
commit_checksum: &str,
remote_name: &str,
cancellable: Option<&P>
) -> Result<GpgVerifyResult, Error>
[src]
&self,
commit_checksum: &str,
remote_name: &str,
cancellable: Option<&P>
) -> Result<GpgVerifyResult, Error>
pub fn verify_summary<P: IsA<Cancellable>>(
&self,
remote_name: &str,
summary: &Bytes,
signatures: &Bytes,
cancellable: Option<&P>
) -> Result<GpgVerifyResult, Error>
[src]
&self,
remote_name: &str,
summary: &Bytes,
signatures: &Bytes,
cancellable: Option<&P>
) -> Result<GpgVerifyResult, Error>
pub fn write_archive_to_mtree<P: IsA<File>, Q: IsA<MutableTree>, R: IsA<Cancellable>>(
&self,
archive: &P,
mtree: &Q,
modifier: Option<&RepoCommitModifier>,
autocreate_parents: bool,
cancellable: Option<&R>
) -> Result<(), Error>
[src]
&self,
archive: &P,
mtree: &Q,
modifier: Option<&RepoCommitModifier>,
autocreate_parents: bool,
cancellable: Option<&R>
) -> Result<(), Error>
pub fn write_archive_to_mtree_from_fd<P: IsA<MutableTree>, Q: IsA<Cancellable>>(
&self,
fd: i32,
mtree: &P,
modifier: Option<&RepoCommitModifier>,
autocreate_parents: bool,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
fd: i32,
mtree: &P,
modifier: Option<&RepoCommitModifier>,
autocreate_parents: bool,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn write_commit<P: IsA<RepoFile>, Q: IsA<Cancellable>>(
&self,
parent: Option<&str>,
subject: Option<&str>,
body: Option<&str>,
metadata: Option<&Variant>,
root: &P,
cancellable: Option<&Q>
) -> Result<GString, Error>
[src]
&self,
parent: Option<&str>,
subject: Option<&str>,
body: Option<&str>,
metadata: Option<&Variant>,
root: &P,
cancellable: Option<&Q>
) -> Result<GString, Error>
pub fn write_commit_detached_metadata<P: IsA<Cancellable>>(
&self,
checksum: &str,
metadata: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
checksum: &str,
metadata: Option<&Variant>,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn write_commit_with_time<P: IsA<RepoFile>, Q: IsA<Cancellable>>(
&self,
parent: Option<&str>,
subject: Option<&str>,
body: Option<&str>,
metadata: Option<&Variant>,
root: &P,
time: u64,
cancellable: Option<&Q>
) -> Result<GString, Error>
[src]
&self,
parent: Option<&str>,
subject: Option<&str>,
body: Option<&str>,
metadata: Option<&Variant>,
root: &P,
time: u64,
cancellable: Option<&Q>
) -> Result<GString, Error>
pub fn write_config(&self, new_config: &KeyFile) -> Result<(), Error>
[src]
pub fn write_content_trusted<P: IsA<InputStream>, Q: IsA<Cancellable>>(
&self,
checksum: &str,
object_input: &P,
length: u64,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
checksum: &str,
object_input: &P,
length: u64,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn write_dfd_to_mtree<P: IsA<MutableTree>, Q: IsA<Cancellable>>(
&self,
dfd: i32,
path: &str,
mtree: &P,
modifier: Option<&RepoCommitModifier>,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
dfd: i32,
path: &str,
mtree: &P,
modifier: Option<&RepoCommitModifier>,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn write_directory_to_mtree<P: IsA<File>, Q: IsA<MutableTree>, R: IsA<Cancellable>>(
&self,
dir: &P,
mtree: &Q,
modifier: Option<&RepoCommitModifier>,
cancellable: Option<&R>
) -> Result<(), Error>
[src]
&self,
dir: &P,
mtree: &Q,
modifier: Option<&RepoCommitModifier>,
cancellable: Option<&R>
) -> Result<(), Error>
pub fn write_metadata_stream_trusted<P: IsA<InputStream>, Q: IsA<Cancellable>>(
&self,
objtype: ObjectType,
checksum: &str,
object_input: &P,
length: u64,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
objtype: ObjectType,
checksum: &str,
object_input: &P,
length: u64,
cancellable: Option<&Q>
) -> Result<(), Error>
pub fn write_metadata_trusted<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
checksum: &str,
variant: &Variant,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
objtype: ObjectType,
checksum: &str,
variant: &Variant,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn write_mtree<P: IsA<MutableTree>, Q: IsA<Cancellable>>(
&self,
mtree: &P,
cancellable: Option<&Q>
) -> Result<File, Error>
[src]
&self,
mtree: &P,
cancellable: Option<&Q>
) -> Result<File, Error>
pub fn get_property_remotes_config_dir(&self) -> Option<GString>
[src]
pub fn get_property_sysroot_path(&self) -> Option<File>
[src]
pub fn create_at<P: IsA<Cancellable>>(
dfd: i32,
path: &str,
mode: RepoMode,
options: Option<&Variant>,
cancellable: Option<&P>
) -> Result<Repo, Error>
[src]
dfd: i32,
path: &str,
mode: RepoMode,
options: Option<&Variant>,
cancellable: Option<&P>
) -> Result<Repo, Error>
pub fn mode_from_string(mode: &str) -> Result<RepoMode, Error>
[src]
pub fn open_at<P: IsA<Cancellable>>(
dfd: i32,
path: &str,
cancellable: Option<&P>
) -> Result<Repo, Error>
[src]
dfd: i32,
path: &str,
cancellable: Option<&P>
) -> Result<Repo, Error>
pub fn connect_gpg_verify_result<F: Fn(&Repo, &str, &GpgVerifyResult) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
impl Repo
[src]
pub fn new_for_path<P: AsRef<Path>>(path: P) -> Repo
[src]
Create a new Repo
object for working with an OSTree repo at the given path.
pub fn traverse_commit<P: IsA<Cancellable>>(
&self,
commit_checksum: &str,
maxdepth: i32,
cancellable: Option<&P>
) -> Result<HashSet<ObjectName>, Error>
[src]
&self,
commit_checksum: &str,
maxdepth: i32,
cancellable: Option<&P>
) -> Result<HashSet<ObjectName>, Error>
pub fn list_refs<P: IsA<Cancellable>>(
&self,
refspec_prefix: Option<&str>,
cancellable: Option<&P>
) -> Result<HashMap<String, String>, Error>
[src]
&self,
refspec_prefix: Option<&str>,
cancellable: Option<&P>
) -> Result<HashMap<String, String>, Error>
pub fn list_refs_ext<P: IsA<Cancellable>>(
&self,
refspec_prefix: Option<&str>,
flags: RepoListRefsExtFlags,
cancellable: Option<&P>
) -> Result<HashMap<String, String>, Error>
[src]
&self,
refspec_prefix: Option<&str>,
flags: RepoListRefsExtFlags,
cancellable: Option<&P>
) -> Result<HashMap<String, String>, Error>
pub fn write_content<P: IsA<InputStream>, Q: IsA<Cancellable>>(
&self,
expected_checksum: Option<&str>,
object_input: &P,
length: u64,
cancellable: Option<&Q>
) -> Result<Checksum, Error>
[src]
&self,
expected_checksum: Option<&str>,
object_input: &P,
length: u64,
cancellable: Option<&Q>
) -> Result<Checksum, Error>
pub fn write_metadata<P: IsA<Cancellable>>(
&self,
objtype: ObjectType,
expected_checksum: Option<&str>,
object: &Variant,
cancellable: Option<&P>
) -> Result<Checksum, Error>
[src]
&self,
objtype: ObjectType,
expected_checksum: Option<&str>,
object: &Variant,
cancellable: Option<&P>
) -> Result<Checksum, Error>
pub fn write_content_async<P: IsA<InputStream>, Q: IsA<Cancellable>, R: FnOnce(Result<Checksum, Error>) + Send + 'static>(
&self,
expected_checksum: Option<&str>,
object: &P,
length: u64,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
expected_checksum: Option<&str>,
object: &P,
length: u64,
cancellable: Option<&Q>,
callback: R
)
pub fn write_content_async_future<P: IsA<InputStream> + Clone + 'static>(
&self,
expected_checksum: Option<&str>,
object: &P,
length: u64
) -> Pin<Box<dyn Future<Output = Result<Checksum, Error>> + 'static>>
[src]
&self,
expected_checksum: Option<&str>,
object: &P,
length: u64
) -> Pin<Box<dyn Future<Output = Result<Checksum, Error>> + 'static>>
pub fn write_metadata_async<P: IsA<Cancellable>, Q: FnOnce(Result<Checksum, Error>) + Send + 'static>(
&self,
objtype: ObjectType,
expected_checksum: Option<&str>,
object: &Variant,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
objtype: ObjectType,
expected_checksum: Option<&str>,
object: &Variant,
cancellable: Option<&P>,
callback: Q
)
pub fn write_metadata_async_future(
&self,
objtype: ObjectType,
expected_checksum: Option<&str>,
object: &Variant
) -> Pin<Box<dyn Future<Output = Result<Checksum, Error>> + 'static>>
[src]
&self,
objtype: ObjectType,
expected_checksum: Option<&str>,
object: &Variant
) -> Pin<Box<dyn Future<Output = Result<Checksum, Error>> + 'static>>
Trait Implementations
impl Clone for Repo
[src]
impl Debug for Repo
[src]
impl Display for Repo
[src]
impl Eq for Repo
[src]
impl Hash for Repo
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Repo
[src]
fn cmp(&self, other: &Repo) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: ObjectType> PartialEq<T> for Repo
[src]
impl<T: ObjectType> PartialOrd<T> for Repo
[src]
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StaticType for Repo
[src]
fn static_type() -> Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Repo
impl !Send for Repo
impl !Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src]
T: ObjectType,
pub fn upcast<T>(self) -> T where
Self: IsA<T>,
T: ObjectType,
[src]
Self: IsA<T>,
T: ObjectType,
pub fn upcast_ref<T>(&self) -> &T where
Self: IsA<T>,
T: ObjectType,
[src]
Self: IsA<T>,
T: ObjectType,
pub fn downcast<T>(self) -> Result<T, Self> where
Self: CanDowncast<T>,
T: ObjectType,
[src]
Self: CanDowncast<T>,
T: ObjectType,
pub fn downcast_ref<T>(&self) -> Option<&T> where
Self: CanDowncast<T>,
T: ObjectType,
[src]
Self: CanDowncast<T>,
T: ObjectType,
pub fn dynamic_cast<T>(self) -> Result<T, Self> where
T: ObjectType,
[src]
T: ObjectType,
pub fn dynamic_cast_ref<T>(&self) -> Option<&T> where
T: ObjectType,
[src]
T: ObjectType,
pub unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
[src]
T: ObjectType,
pub unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
[src]
T: ObjectType,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src]
T: ObjectType,
pub fn is<U>(&self) -> bool where
U: StaticType,
[src]
U: StaticType,
pub fn get_type(&self) -> Type
[src]
pub fn get_object_class(&self) -> &ObjectClass
[src]
pub fn set_properties(
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
[src]
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
pub fn set_property<'a, N>(
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError> where
N: Into<&'a str>,
[src]
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError> where
N: Into<&'a str>,
pub fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub unsafe fn set_qdata<QD>(&self, key: Quark, value: QD) where
QD: 'static,
[src]
QD: 'static,
pub unsafe fn get_qdata<QD>(&self, key: Quark) -> Option<&QD> where
QD: 'static,
[src]
QD: 'static,
pub unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD> where
QD: 'static,
[src]
QD: 'static,
pub unsafe fn set_data<QD>(&self, key: &str, value: QD) where
QD: 'static,
[src]
QD: 'static,
pub unsafe fn get_data<QD>(&self, key: &str) -> Option<&QD> where
QD: 'static,
[src]
QD: 'static,
pub unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD> where
QD: 'static,
[src]
QD: 'static,
pub fn block_signal(&self, handler_id: &SignalHandlerId)
[src]
pub fn unblock_signal(&self, handler_id: &SignalHandlerId)
[src]
pub fn stop_signal_emission(&self, signal_name: &str)
[src]
pub fn disconnect(&self, handler_id: SignalHandlerId)
[src]
pub fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
[src]
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
pub unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
[src]
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
pub fn notify<'a, N>(&self, property_name: N) where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn notify_by_pspec(&self, pspec: &ParamSpec)
[src]
pub fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
pub fn list_properties(&self) -> Vec<ParamSpec, Global>
[src]
pub fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
pub fn connect_local<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
pub unsafe fn connect_unsafe<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
pub fn emit<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
[src]
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
pub fn downgrade(&self) -> WeakRef<T>
[src]
pub fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
[src]
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
pub fn ref_count(&self) -> u32
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
T: SetValue + Send + ToValue + ?Sized,
pub fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,