pub struct Service<'a>(/* private fields */);
Available on crate feature
unstable
only.Implementations§
Source§impl<'a> Service<'a>
impl<'a> Service<'a>
pub async fn new(connection: &Connection) -> Result<Service<'a>, Error>
pub fn inner(&self) -> &Proxy<'_>
pub async fn receive_collection_created( &self, ) -> Result<impl Stream<Item = Collection<'a>> + '_, Error>
pub async fn receive_collection_deleted( &self, ) -> Result<impl Stream<Item = OwnedObjectPath>, Error>
pub async fn receive_collection_changed( &self, ) -> Result<impl Stream<Item = Collection<'a>> + '_, Error>
pub async fn collections(&self) -> Result<Vec<Collection<'a>>, Error>
pub async fn open_session( &self, client_public_key: Option<&Key>, ) -> Result<(Option<Key>, Session<'a>), Error>
pub async fn create_collection( &self, label: &str, alias: &str, window_id: Option<WindowIdentifier>, ) -> Result<Collection<'a>, Error>
pub async fn search_items( &self, attributes: &impl AsAttributes, ) -> Result<(Vec<Item<'a>>, Vec<Item<'a>>), Error>
pub async fn unlock( &self, items: &[impl Unlockable], window_id: Option<WindowIdentifier>, ) -> Result<Vec<OwnedObjectPath>, Error>
pub async fn lock( &self, items: &[impl Unlockable], window_id: Option<WindowIdentifier>, ) -> Result<Vec<OwnedObjectPath>, Error>
pub async fn secrets( &self, items: &[Item<'_>], session: &Session<'_>, ) -> Result<HashMap<Item<'_>, DBusSecret<'_>>, Error>
pub async fn read_alias( &self, name: &str, ) -> Result<Option<Collection<'a>>, Error>
pub async fn set_alias( &self, name: &str, collection: &Collection<'_>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Service<'a>
impl<'a> !RefUnwindSafe for Service<'a>
impl<'a> Send for Service<'a>
impl<'a> Sync for Service<'a>
impl<'a> Unpin for Service<'a>
impl<'a> !UnwindSafe for Service<'a>
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