pub struct RunningCacheContainer {
pub container_id: String,
pub host_port: u16,
pub endpoint_address: String,
pub endpoint_port: u16,
pub engine: CacheEngineKind,
}Expand description
A running cache backing instance (container or Pod).
Fields§
§container_id: StringBackend-specific handle: a Docker container id, or a Pod name.
host_port: u16The host port the engine is published on (Docker), or the engine’s in-Pod port (k8s). Persisted in resource state.
endpoint_address: StringAddress clients connect to: 127.0.0.1 for Docker (published port
on the host), or the Pod IP for k8s.
endpoint_port: u16Port clients connect to: the published host port for Docker, the engine’s standard port for k8s.
engine: CacheEngineKindWhich engine this is — used by the k8s backend to respawn on reboot.
Trait Implementations§
Source§impl Clone for RunningCacheContainer
impl Clone for RunningCacheContainer
Source§fn clone(&self) -> RunningCacheContainer
fn clone(&self) -> RunningCacheContainer
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 moreAuto Trait Implementations§
impl Freeze for RunningCacheContainer
impl RefUnwindSafe for RunningCacheContainer
impl Send for RunningCacheContainer
impl Sync for RunningCacheContainer
impl Unpin for RunningCacheContainer
impl UnsafeUnpin for RunningCacheContainer
impl UnwindSafe for RunningCacheContainer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more