pub struct SidecarConfig {
pub plugins: BTreeMap<String, InstanceDecl>,
pub scopes: ScopesConfig,
}Expand description
The sidecars: section (§8.1): instance declarations (“what may
exist”) plus the two scopes (“who gets which instance”).
Fields§
§plugins: BTreeMap<String, InstanceDecl>Instance declarations; each key is the instance name and must
equal its manifest [plugin].name (§6.2 rule 2, checked where
the manifest is parsed).
scopes: ScopesConfigThe two scopes. Exactly server and worker; anything else is
an unknown key and refuses boot (§8.1).
Trait Implementations§
Source§impl Clone for SidecarConfig
impl Clone for SidecarConfig
Source§impl Debug for SidecarConfig
impl Debug for SidecarConfig
Source§impl Default for SidecarConfig
impl Default for SidecarConfig
Source§impl<'de> Deserialize<'de> for SidecarConfig
impl<'de> Deserialize<'de> for SidecarConfig
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 SidecarConfig
Source§impl PartialEq for SidecarConfig
impl PartialEq for SidecarConfig
Source§impl Serialize for SidecarConfig
impl Serialize for SidecarConfig
impl StructuralPartialEq for SidecarConfig
Auto Trait Implementations§
impl Forget for SidecarConfig
impl Freeze for SidecarConfigwhere
*const LeafNode<String, InstanceDecl> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, InstanceDecl)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, WorkerScope> is !null: Freeze,
PhantomData<Box<(String, WorkerScope)>>: Freeze,
impl Move for SidecarConfig
impl RefUnwindSafe for SidecarConfig
impl Send for SidecarConfigwhere
NodeRef<Owned, String, InstanceDecl, LeafOrInternal>: Send,
BoxRaw<(String, InstanceDecl)>: Send,
RawVecInner: Send,
NodeRef<Owned, String, WorkerScope, LeafOrInternal>: Send,
BoxRaw<(String, WorkerScope)>: Send,
impl Sync for SidecarConfigwhere
NodeRef<Owned, String, InstanceDecl, LeafOrInternal>: Sync,
BoxRaw<(String, InstanceDecl)>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, WorkerScope, LeafOrInternal>: Sync,
BoxRaw<(String, WorkerScope)>: Sync,
impl Unpin for SidecarConfigwhere
*const LeafNode<String, InstanceDecl> is !null: Unpin,
Box<(String, InstanceDecl)>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, WorkerScope> is !null: Unpin,
Box<(String, WorkerScope)>: Unpin,
impl UnsafeUnpin for SidecarConfigwhere
*const LeafNode<String, InstanceDecl> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, InstanceDecl)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, WorkerScope> is !null: UnsafeUnpin,
PhantomData<Box<(String, WorkerScope)>>: UnsafeUnpin,
impl UnwindSafe for SidecarConfigwhere
BTreeMap<String, InstanceDecl>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, WorkerScope>: UnwindSafe,
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