// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files // DO NOT EDIT use crate::RepoFinder; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] use glib::object::IsA; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] use glib::object::ObjectType as ObjectType_; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] use glib::translate::*; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] use glib::StaticType; use std::fmt; glib::wrapper! { #[doc(alias = "OstreeRepoFinderMount")] pub struct RepoFinderMount(Object) @implements RepoFinder; match fn { type_ => || ffi::ostree_repo_finder_mount_get_type(), } } impl RepoFinderMount { #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] #[doc(alias = "ostree_repo_finder_mount_new")] pub fn new(monitor: Option<&impl IsA>) -> RepoFinderMount { unsafe { from_glib_full(ffi::ostree_repo_finder_mount_new( monitor.map(|p| p.as_ref()).to_glib_none().0, )) } } #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] pub fn monitor(&self) -> Option { glib::ObjectExt::property(self, "monitor") } } impl fmt::Display for RepoFinderMount { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str("RepoFinderMount") } }