pub enum AuthMechanism {
External,
Anonymous,
}
Expand description
Authentication mechanisms
Note that the DBUS_COOKIE_SHA1
mechanism is not supported by zbus since version 5.0. The
reasons are:
- It drags the
sha1
crate as a dependency, which can be problematic for some users. - It makes the handshake more complex, now allowing use to pipeline all the commands.
- It’s not widely used. If
EXTERNAL
is not an option, you might as well just useANONYMOUS
.
See https://dbus.freedesktop.org/doc/dbus-specification.html#auth-mechanisms
Variants§
External
This is the recommended authentication mechanism on platforms where credentials can be
transferred out-of-band, in particular Unix platforms that can perform credentials-passing
over the unix:
transport.
Anonymous
Does not perform any authentication at all, and should not be accepted by message buses. However, it might sometimes be useful for non-message-bus uses of D-Bus.
Implementations§
Trait Implementations§
Source§impl Clone for AuthMechanism
impl Clone for AuthMechanism
Source§fn clone(&self) -> AuthMechanism
fn clone(&self) -> AuthMechanism
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthMechanism
impl Debug for AuthMechanism
Source§impl Display for AuthMechanism
impl Display for AuthMechanism
Source§impl FromStr for AuthMechanism
impl FromStr for AuthMechanism
Source§impl PartialEq for AuthMechanism
impl PartialEq for AuthMechanism
impl Copy for AuthMechanism
impl Eq for AuthMechanism
impl StructuralPartialEq for AuthMechanism
Auto Trait Implementations§
impl Freeze for AuthMechanism
impl RefUnwindSafe for AuthMechanism
impl Send for AuthMechanism
impl Sync for AuthMechanism
impl Unpin for AuthMechanism
impl UnwindSafe for AuthMechanism
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