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