pub enum PythonVfsRpcResponsePayload {
Empty,
Read {
content_base64: String,
},
Stat {
stat: PythonVfsRpcStat,
},
ReadDir {
entries: Vec<String>,
},
Http {
status: u16,
reason: String,
url: String,
headers: BTreeMap<String, Vec<String>>,
body_base64: String,
},
DnsLookup {
addresses: Vec<String>,
},
SubprocessRun {
exit_code: i32,
stdout: String,
stderr: String,
max_buffer_exceeded: bool,
},
SocketCreated {
socket_id: u64,
},
SocketSent {
bytes_sent: usize,
},
SocketReceived {
data_base64: String,
closed: bool,
timed_out: bool,
},
UdpReceived {
data_base64: String,
host: String,
port: u16,
timed_out: bool,
},
SymlinkTarget {
target: String,
},
}Variants§
Empty
Read
Stat
Fields
§
stat: PythonVfsRpcStatReadDir
Http
Fields
DnsLookup
SubprocessRun
SocketCreated
SocketSent
SocketReceived
UdpReceived
SymlinkTarget
Trait Implementations§
Source§impl Clone for PythonVfsRpcResponsePayload
impl Clone for PythonVfsRpcResponsePayload
Source§fn clone(&self) -> PythonVfsRpcResponsePayload
fn clone(&self) -> PythonVfsRpcResponsePayload
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 PythonVfsRpcResponsePayload
impl Debug for PythonVfsRpcResponsePayload
impl Eq for PythonVfsRpcResponsePayload
Source§impl PartialEq for PythonVfsRpcResponsePayload
impl PartialEq for PythonVfsRpcResponsePayload
Source§fn eq(&self, other: &PythonVfsRpcResponsePayload) -> bool
fn eq(&self, other: &PythonVfsRpcResponsePayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PythonVfsRpcResponsePayload
Auto Trait Implementations§
impl Freeze for PythonVfsRpcResponsePayload
impl RefUnwindSafe for PythonVfsRpcResponsePayload
impl Send for PythonVfsRpcResponsePayload
impl Sync for PythonVfsRpcResponsePayload
impl Unpin for PythonVfsRpcResponsePayload
impl UnsafeUnpin for PythonVfsRpcResponsePayload
impl UnwindSafe for PythonVfsRpcResponsePayload
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