pub struct RegisterServiceParams {
pub name: String,
pub backend: BackendSpec,
pub allow: Vec<String>,
pub ephemeral: bool,
}Expand description
Params of Request::RegisterService: the [services.*] entry to write/update.
Fields§
§name: String§backend: BackendSpec§allow: Vec<String>§ephemeral: boolWhen true (#36), the registration is EPHEMERAL: kept in daemon memory only, never written
to the on-disk config, and automatically unregistered when the control connection that
registered it closes (and gone on daemon restart). For an embedder that serves a
socket backend from a fresh path each run, this removes the need to derive a stable
socket path solely to keep a persisted registration valid, and the stale-registration
accumulation that comes with no unregister. Default false = the persistent behavior.
Trait Implementations§
Source§impl Clone for RegisterServiceParams
impl Clone for RegisterServiceParams
Source§fn clone(&self) -> RegisterServiceParams
fn clone(&self) -> RegisterServiceParams
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 RegisterServiceParams
impl Debug for RegisterServiceParams
Source§impl<'de> Deserialize<'de> for RegisterServiceParams
impl<'de> Deserialize<'de> for RegisterServiceParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RegisterServiceParams
Source§impl PartialEq for RegisterServiceParams
impl PartialEq for RegisterServiceParams
Source§impl Serialize for RegisterServiceParams
impl Serialize for RegisterServiceParams
impl StructuralPartialEq for RegisterServiceParams
Auto Trait Implementations§
impl Freeze for RegisterServiceParams
impl RefUnwindSafe for RegisterServiceParams
impl Send for RegisterServiceParams
impl Sync for RegisterServiceParams
impl Unpin for RegisterServiceParams
impl UnsafeUnpin for RegisterServiceParams
impl UnwindSafe for RegisterServiceParams
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