pub struct CreateChannelRequest {
pub kind: Bytes,
pub kind_args: Option<Vec<Bytes>>,
pub args: Option<Vec<Bytes>>,
pub env: Option<BTreeMap<Bytes, Bytes>>,
pub meta: Option<BTreeMap<Bytes, Value>>,
pub selectors: Vec<u32>,
}Expand description
A message to create a channel.
The following channel types are known:
command: Invoke a command on the remote side.argsis the command-line arguments andenvis the environment.9p: Create a channel implementing the 9p2000.L protocol.args[0]is the desired mount point as specified by the server.
Custom channel types can be created with an at sign and domain name representing the custom extension.
Fields§
§kind: Bytes§kind_args: Option<Vec<Bytes>>§args: Option<Vec<Bytes>>§env: Option<BTreeMap<Bytes, Bytes>>§meta: Option<BTreeMap<Bytes, Value>>§selectors: Vec<u32>Trait Implementations§
Source§impl Clone for CreateChannelRequest
impl Clone for CreateChannelRequest
Source§fn clone(&self) -> CreateChannelRequest
fn clone(&self) -> CreateChannelRequest
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<'de> Deserialize<'de> for CreateChannelRequest
impl<'de> Deserialize<'de> for CreateChannelRequest
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 Ord for CreateChannelRequest
impl Ord for CreateChannelRequest
Source§fn cmp(&self, other: &CreateChannelRequest) -> Ordering
fn cmp(&self, other: &CreateChannelRequest) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CreateChannelRequest
impl PartialEq for CreateChannelRequest
Source§impl PartialOrd for CreateChannelRequest
impl PartialOrd for CreateChannelRequest
Source§impl Serialize for CreateChannelRequest
impl Serialize for CreateChannelRequest
impl Eq for CreateChannelRequest
impl StructuralPartialEq for CreateChannelRequest
Auto Trait Implementations§
impl !Freeze for CreateChannelRequest
impl RefUnwindSafe for CreateChannelRequest
impl Send for CreateChannelRequest
impl Sync for CreateChannelRequest
impl Unpin for CreateChannelRequest
impl UnwindSafe for CreateChannelRequest
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