pub struct PlumbingMessage {
pub src: Option<String>,
pub dst: Option<String>,
pub wdir: Option<String>,
pub cur: usize,
pub attrs: BTreeMap<String, String>,
pub data: String,
}Expand description
The deserialized form of a plumbing message sent by a client.
Fields§
§src: Option<String>The application or service generating the message
dst: Option<String>The destination “port” for the message
wdir: Option<String>The working directory (used when data is a filename)
cur: usizeThe offset within ‘data’ where the user’s cursor currently lies (default=0). If a rule specifies a ‘narrows-to’ rule it will be used to narrow initial data to only include the specified cursor, otherwise the match will be rejected.
attrs: BTreeMap<String, String>Name=value pairs. Must not contain newlines
data: StringThe string content of the message itself
Trait Implementations§
Source§impl Clone for PlumbingMessage
impl Clone for PlumbingMessage
Source§fn clone(&self) -> PlumbingMessage
fn clone(&self) -> PlumbingMessage
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 PlumbingMessage
impl Debug for PlumbingMessage
Source§impl Default for PlumbingMessage
impl Default for PlumbingMessage
Source§fn default() -> PlumbingMessage
fn default() -> PlumbingMessage
Returns the “default value” for a type. Read more
impl Eq for PlumbingMessage
Source§impl FromStr for PlumbingMessage
impl FromStr for PlumbingMessage
Source§impl PartialEq for PlumbingMessage
impl PartialEq for PlumbingMessage
Source§fn eq(&self, other: &PlumbingMessage) -> bool
fn eq(&self, other: &PlumbingMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlumbingMessage
Auto Trait Implementations§
impl Freeze for PlumbingMessage
impl RefUnwindSafe for PlumbingMessage
impl Send for PlumbingMessage
impl Sync for PlumbingMessage
impl Unpin for PlumbingMessage
impl UnsafeUnpin for PlumbingMessage
impl UnwindSafe for PlumbingMessage
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<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.