#[non_exhaustive]pub struct ChannelInfos {
pub argv: Option<Vec<String>>,
pub buffer: Option<Buffer>,
pub client: Option<ClientInfos>,
pub id: u32,
pub mode: ChannelMode,
pub pty: Option<String>,
pub stream: ChannelStream,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.argv: Option<Vec<String>>
Job arguments list.
buffer: Option<Buffer>
Buffer with connected terminal instance. Only present when mode
is
ChannelMode::Terminal
.
client: Option<ClientInfos>
Info about the client on the other side of an RPC channel. Only present
when mode
is ChannelMode::Rpc
.
id: u32
Channel id.
mode: ChannelMode
How data receiveed on the channel is interpeted.
pty: Option<String>
Name of a pseudoterminal. On a POSIX system this is a device path like
/dev/pts/1
. If the name is unknown, the key will still be present if
a pty is used (e.g. for ConPTY
on Windows).
stream: ChannelStream
Stream underlying the channel.
Trait Implementations§
Source§impl Clone for ChannelInfos
impl Clone for ChannelInfos
Source§fn clone(&self) -> ChannelInfos
fn clone(&self) -> ChannelInfos
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 ChannelInfos
impl Debug for ChannelInfos
Source§impl<'de> Deserialize<'de> for ChannelInfos
impl<'de> Deserialize<'de> for ChannelInfos
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 FromObject for ChannelInfos
impl FromObject for ChannelInfos
Source§impl PartialEq for ChannelInfos
impl PartialEq for ChannelInfos
impl Eq for ChannelInfos
impl StructuralPartialEq for ChannelInfos
Auto Trait Implementations§
impl Freeze for ChannelInfos
impl RefUnwindSafe for ChannelInfos
impl Send for ChannelInfos
impl Sync for ChannelInfos
impl Unpin for ChannelInfos
impl UnwindSafe for ChannelInfos
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