pub enum Provenance {
Owned,
Attached,
}Expand description
Who started the host this client uses, and so what the client may do to it.
Variants§
Owned
This process launched the host and holds its identity. It may stop it.
Attached
Another process started the host. Attaching never implies a right to stop it.
Implementations§
Source§impl Provenance
impl Provenance
pub fn as_str(self) -> &'static str
Sourcepub fn may_stop_host(self) -> bool
pub fn may_stop_host(self) -> bool
Whether this lifecycle may signal the host. True only for Provenance::Owned.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
impl Copy for Provenance
Source§impl Debug for Provenance
impl Debug for Provenance
impl Eq for Provenance
Source§impl Hash for Provenance
impl Hash for Provenance
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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