pub struct ConfigReloadWorkerConfig {
pub namespace: String,
pub runtime_id: String,
}Expand description
Runtime reload worker configuration.
Fields§
§namespace: StringProduct or service namespace accepted by this worker.
runtime_id: StringRuntime instance ID for the current process.
Implementations§
Source§impl ConfigReloadWorkerConfig
impl ConfigReloadWorkerConfig
Sourcepub fn new(namespace: impl Into<String>, runtime_id: impl Into<String>) -> Self
pub fn new(namespace: impl Into<String>, runtime_id: impl Into<String>) -> Self
Creates a worker config.
Sourcepub fn accepts_namespace(&self, message: &ConfigReloadMessage) -> bool
pub fn accepts_namespace(&self, message: &ConfigReloadMessage) -> bool
Returns whether a message belongs to this worker namespace.
Sourcepub fn is_local_origin(&self, message: &ConfigReloadMessage) -> bool
pub fn is_local_origin(&self, message: &ConfigReloadMessage) -> bool
Returns whether a message was emitted by this process.
Trait Implementations§
Source§impl Clone for ConfigReloadWorkerConfig
impl Clone for ConfigReloadWorkerConfig
Source§fn clone(&self) -> ConfigReloadWorkerConfig
fn clone(&self) -> ConfigReloadWorkerConfig
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 moreSource§impl Debug for ConfigReloadWorkerConfig
impl Debug for ConfigReloadWorkerConfig
Source§impl PartialEq for ConfigReloadWorkerConfig
impl PartialEq for ConfigReloadWorkerConfig
Source§fn eq(&self, other: &ConfigReloadWorkerConfig) -> bool
fn eq(&self, other: &ConfigReloadWorkerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConfigReloadWorkerConfig
impl StructuralPartialEq for ConfigReloadWorkerConfig
Auto Trait Implementations§
impl Freeze for ConfigReloadWorkerConfig
impl RefUnwindSafe for ConfigReloadWorkerConfig
impl Send for ConfigReloadWorkerConfig
impl Sync for ConfigReloadWorkerConfig
impl Unpin for ConfigReloadWorkerConfig
impl UnsafeUnpin for ConfigReloadWorkerConfig
impl UnwindSafe for ConfigReloadWorkerConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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