pub struct OsStreamRouter { /* private fields */ }Expand description
The standard stream router using the host OS.
The basic stream elements 0, 1, and 2 connect to stdin, stdout, and stderr, respectively.
Connect requests are translated into outbound TCP connections.
Bind requests are translated into incoming TCP listeners.
Implementations§
Trait Implementations§
Source§impl StreamRouter for OsStreamRouter
impl StreamRouter for OsStreamRouter
Source§fn basic_streams(&self) -> Vec<Box<dyn AsyncStream>>
fn basic_streams(&self) -> Vec<Box<dyn AsyncStream>>
Obtain a list of basic streams that are available to every enclave.
Enclaves access these streams by numeric index in a platform-dependent
way. Read more
Source§fn connect_stream<'future>(
&'future self,
addr: &'future str,
local_addr: Option<&'future mut String>,
peer_addr: Option<&'future mut String>,
) -> Pin<Box<dyn Future<Output = IoResult<Box<dyn AsyncStream>>> + Send + 'future>>
fn connect_stream<'future>( &'future self, addr: &'future str, local_addr: Option<&'future mut String>, peer_addr: Option<&'future mut String>, ) -> Pin<Box<dyn Future<Output = IoResult<Box<dyn AsyncStream>>> + Send + 'future>>
Serve a connect call by the enclave. The runner should determine the
service that the enclave is trying to connect to by looking at
addr. Read moreSource§fn bind_stream<'future>(
&'future self,
addr: &'future str,
local_addr: Option<&'future mut String>,
) -> Pin<Box<dyn Future<Output = IoResult<Box<dyn AsyncListener>>> + Send + 'future>>
fn bind_stream<'future>( &'future self, addr: &'future str, local_addr: Option<&'future mut String>, ) -> Pin<Box<dyn Future<Output = IoResult<Box<dyn AsyncListener>>> + Send + 'future>>
Serve a bind call by the enclave. The runner should determine the
service that the enclave is trying to bind to by looking at
addr. Read moreAuto Trait Implementations§
impl Freeze for OsStreamRouter
impl RefUnwindSafe for OsStreamRouter
impl Send for OsStreamRouter
impl Sync for OsStreamRouter
impl Unpin for OsStreamRouter
impl UnsafeUnpin for OsStreamRouter
impl UnwindSafe for OsStreamRouter
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