#[non_exhaustive]pub enum HostSessionMode {
Capability {
package: String,
lib_name: String,
},
ShimsOnly,
}Expand description
How the worker child should load host-session capabilities.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Capability
Open a user capability dylib and the bundled host shims.
ShimsOnly
Open only the bundled host shims.
Trait Implementations§
Source§impl Clone for HostSessionMode
impl Clone for HostSessionMode
Source§fn clone(&self) -> HostSessionMode
fn clone(&self) -> HostSessionMode
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 HostSessionMode
impl Debug for HostSessionMode
Source§impl<'de> Deserialize<'de> for HostSessionMode
impl<'de> Deserialize<'de> for HostSessionMode
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
Source§impl PartialEq for HostSessionMode
impl PartialEq for HostSessionMode
Source§fn eq(&self, other: &HostSessionMode) -> bool
fn eq(&self, other: &HostSessionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostSessionMode
impl Serialize for HostSessionMode
impl Eq for HostSessionMode
impl StructuralPartialEq for HostSessionMode
Auto Trait Implementations§
impl Freeze for HostSessionMode
impl RefUnwindSafe for HostSessionMode
impl Send for HostSessionMode
impl Sync for HostSessionMode
impl Unpin for HostSessionMode
impl UnsafeUnpin for HostSessionMode
impl UnwindSafe for HostSessionMode
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