pub struct PolkitAuthority {
connection: Connection,
}Fields§
§connection: ConnectionImplementations§
Source§impl PolkitAuthority
impl PolkitAuthority
pub async fn connect() -> Result<Self>
pub fn connection(&self) -> &Connection
Sourceasync fn session_id_for_pid(&self, pid: u32) -> Option<String>
async fn session_id_for_pid(&self, pid: u32) -> Option<String>
Resolve pid’s logind session id, if it has one.
Trait Implementations§
Source§impl Clone for PolkitAuthority
impl Clone for PolkitAuthority
Source§fn clone(&self) -> PolkitAuthority
fn clone(&self) -> PolkitAuthority
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PolkitAuthority
impl !UnwindSafe for PolkitAuthority
impl Freeze for PolkitAuthority
impl Send for PolkitAuthority
impl Sync for PolkitAuthority
impl Unpin for PolkitAuthority
impl UnsafeUnpin for PolkitAuthority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more