pub struct SlotKey {
pub principal: String,
pub plugin: String,
}Expand description
Composite key identifying a plugin slot per principal × plugin name.
Used as the trait-level identity for crate::FilterPlugin via
FilterPlugin::slot_key and as the runtime-side cache lookup key
for the wasmtime per-worker WorkerInstance map.
Fields§
§principal: StringPrincipal id this slot is bound to, or GLOBAL_PRINCIPAL for
proxy-wide globals.
plugin: StringStable plugin name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlotKey
impl<'de> Deserialize<'de> for SlotKey
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 SlotKey
impl StructuralPartialEq for SlotKey
Auto Trait Implementations§
impl Freeze for SlotKey
impl RefUnwindSafe for SlotKey
impl Send for SlotKey
impl Sync for SlotKey
impl Unpin for SlotKey
impl UnsafeUnpin for SlotKey
impl UnwindSafe for SlotKey
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