pub struct EnclaveProcSock { /* private fields */ }Expand description
The structure which manages the Unix socket that an enclave process listens on for commands.
Implementations§
Source§impl EnclaveProcSock
impl EnclaveProcSock
Sourcepub fn new(enclave_id: &str) -> NitroCliResult<Self>
pub fn new(enclave_id: &str) -> NitroCliResult<Self>
Create a new EnclaveProcSock instance from a given enclave ID.
Sourcepub fn start_monitoring(&mut self, exit_on_delete: bool) -> NitroCliResult<()>
pub fn start_monitoring(&mut self, exit_on_delete: bool) -> NitroCliResult<()>
Start monitoring the Unix socket’s state using inotify.
Sourcepub fn close(self) -> NitroCliResult<()>
pub fn close(self) -> NitroCliResult<()>
Remove the managed Unix socket and clean up after it.
Trait Implementations§
Source§impl Clone for EnclaveProcSock
The enclave process socket must allow cloning, since that is needed by the socket-listening thread.
impl Clone for EnclaveProcSock
The enclave process socket must allow cloning, since that is needed by the socket-listening thread.
Source§impl Default for EnclaveProcSock
impl Default for EnclaveProcSock
Source§impl Drop for EnclaveProcSock
impl Drop for EnclaveProcSock
Auto Trait Implementations§
impl !RefUnwindSafe for EnclaveProcSock
impl !UnwindSafe for EnclaveProcSock
impl Freeze for EnclaveProcSock
impl Send for EnclaveProcSock
impl Sync for EnclaveProcSock
impl Unpin for EnclaveProcSock
impl UnsafeUnpin for EnclaveProcSock
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.