pub enum VarlinkWalldClientError {
Disabled,
NotAuthorized,
UserNotLoggedIn {
user: String,
},
MessagesDisabled {
user: String,
},
TtyNotFound {
user: String,
tty: String,
},
InvalidRequest {
message: String,
},
TimedOut,
Io {
message: String,
},
}Variants§
Disabled
The walld service is not enabled on the server.
NotAuthorized
Caller was not authorized by polkit to perform the request.
UserNotLoggedIn
The target user is not logged in anywhere.
MessagesDisabled
The target user has disabled incoming messages on the relevant tty/ttys.
TtyNotFound
The requested tty does not belong to the target user, or does not exist.
InvalidRequest
The request parameters were invalid (e.g. unknown group).
TimedOut
The request timed out.
Io
Something went wrong while talking to the tty (open/write failure).
Trait Implementations§
Source§impl Clone for VarlinkWalldClientError
impl Clone for VarlinkWalldClientError
Source§fn clone(&self) -> VarlinkWalldClientError
fn clone(&self) -> VarlinkWalldClientError
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 moreSource§impl Debug for VarlinkWalldClientError
impl Debug for VarlinkWalldClientError
Source§impl<'de> Deserialize<'de> for VarlinkWalldClientError
impl<'de> Deserialize<'de> for VarlinkWalldClientError
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VarlinkWalldClientError
impl Display for VarlinkWalldClientError
Source§impl PartialEq for VarlinkWalldClientError
impl PartialEq for VarlinkWalldClientError
Source§impl Serialize for VarlinkWalldClientError
impl Serialize for VarlinkWalldClientError
impl StructuralPartialEq for VarlinkWalldClientError
Auto Trait Implementations§
impl Freeze for VarlinkWalldClientError
impl RefUnwindSafe for VarlinkWalldClientError
impl Send for VarlinkWalldClientError
impl Sync for VarlinkWalldClientError
impl Unpin for VarlinkWalldClientError
impl UnsafeUnpin for VarlinkWalldClientError
impl UnwindSafe for VarlinkWalldClientError
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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