pub enum ProcessIdentityPolicy {
Auto,
Fixed {
hostname: Option<String>,
pid: Option<u32>,
},
Resolver(Arc<dyn ProcessIdentityResolver>),
}Expand description
Policy describing how process identity is populated at runtime.
Variants§
Auto
Resolve process identity automatically using the default runtime behavior.
Fixed
Use a fixed caller-supplied identity.
Fields
Resolver(Arc<dyn ProcessIdentityResolver>)
Delegate identity resolution to a caller-supplied resolver.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessIdentityPolicy
impl !RefUnwindSafe for ProcessIdentityPolicy
impl Send for ProcessIdentityPolicy
impl Sync for ProcessIdentityPolicy
impl Unpin for ProcessIdentityPolicy
impl UnsafeUnpin for ProcessIdentityPolicy
impl !UnwindSafe for ProcessIdentityPolicy
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