Enum enarx_config::File
source · [−]pub enum File {
Null {
name: Option<FileName>,
},
Stdin {
name: Option<FileName>,
},
Stdout {
name: Option<FileName>,
},
Stderr {
name: Option<FileName>,
},
Listen {
name: FileName,
addr: String,
port: u16,
prot: Protocol,
},
Connect {
name: Option<FileName>,
host: String,
port: u16,
prot: Protocol,
},
}
Expand description
Parameters for a pre-opened file descriptor
Variants
Null
File descriptor of /dev/null
Stdin
File descriptor of stdin
Stdout
File descriptor of stdout
Stderr
File descriptor of stderr
Listen
Fields
name: FileName
Name assigned to the file descriptor
addr: String
Address to listen on
port: u16
Port to listen on
prot: Protocol
Protocol to use
File descriptor of a TCP listen socket
Connect
Fields
host: String
Host address to connect to
port: u16
Port to connect to
prot: Protocol
Protocol to use
File descriptor of a TCP stream socket
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
sourcefn 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
impl Eq for File
impl StructuralEq for File
impl StructuralPartialEq for File
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more