pub enum ClientInput {
Shared,
Exclusive,
}Expand description
Who may drive a daemon session with several clients attached
(client_input; spec multi-client-sessions.md §6). Every client is
the daemon’s own user.
Shared(default): every drive client (not--observe) may send input; the one that did last is the active client.Exclusive: only the input owner may; the others are read-only until they/takeover(the behaviour beforeclient_input).
On the wire a missing value means Exclusive: an older daemon enforces
the owner.
Variants§
Exclusive
Implementations§
Source§impl ClientInput
impl ClientInput
Sourcepub fn parse(val: &str) -> Option<ClientInput>
pub fn parse(val: &str) -> Option<ClientInput>
shared | exclusive (case-insensitive).
Sourcepub fn wire_default() -> ClientInput
pub fn wire_default() -> ClientInput
The wire’s default: what a snapshot from an older daemon means.
Trait Implementations§
Source§impl Clone for ClientInput
impl Clone for ClientInput
impl Copy for ClientInput
Source§impl Debug for ClientInput
impl Debug for ClientInput
Source§impl Default for ClientInput
impl Default for ClientInput
Source§impl<'de> Deserialize<'de> for ClientInput
impl<'de> Deserialize<'de> for ClientInput
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 ClientInput
impl Display for ClientInput
impl Eq for ClientInput
Source§impl PartialEq for ClientInput
impl PartialEq for ClientInput
Source§impl Serialize for ClientInput
impl Serialize for ClientInput
impl StructuralPartialEq for ClientInput
Auto Trait Implementations§
impl Freeze for ClientInput
impl RefUnwindSafe for ClientInput
impl Send for ClientInput
impl Sync for ClientInput
impl Unpin for ClientInput
impl UnsafeUnpin for ClientInput
impl UnwindSafe for ClientInput
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.