pub struct MemoryConnector { /* private fields */ }Expand description
ServiceConnector for trusty-memory.
Why: trusty-memory writes http_addr under its data root. The legacy
dotfile path is ~/.trusty-memory/http_addr, which is the most reliable
single location available without importing trusty-memory’s own
path-resolution logic.
What: Implements detect() using ~/.trusty-memory/http_addr.
Test: test_memory_connector_with_stale_addr_file,
test_memory_connector_no_addr_file below.
Implementations§
Trait Implementations§
Source§impl Default for MemoryConnector
impl Default for MemoryConnector
Source§impl ServiceConnector for MemoryConnector
impl ServiceConnector for MemoryConnector
Source§fn detect(&self) -> ServiceInfo
fn detect(&self) -> ServiceInfo
Detect trusty-memory status.
Why: trusty-memory writes ~/.trusty-memory/http_addr (the legacy
dotfile path) as well as the OS data-dir path; the dotfile is always
written regardless of platform.
What: Three-step sequence: binary check → addr file + TCP probe → status.
Test: test_memory_connector_with_stale_addr_file,
test_memory_connector_no_addr_file.
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for MemoryConnector
impl RefUnwindSafe for MemoryConnector
impl Send for MemoryConnector
impl Sync for MemoryConnector
impl Unpin for MemoryConnector
impl UnsafeUnpin for MemoryConnector
impl UnwindSafe for MemoryConnector
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
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>
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 more