pub struct KeyConfig {
pub name: String,
pub namespace: String,
pub tag: String,
}
Fields§
§name: String
If provided, and a running backend was created with the same key, namespace, and tag, we will connect to that backend instead of creating a new one.
namespace: String
Namespace of the key. If not specified, the default namespace (empty string) is used.
tag: String
If we request a connection to a key and the backend for that key is running, we will only connect to it if the tag matches the tag of the connection request that created it.
Implementations§
Source§impl KeyConfig
impl KeyConfig
pub fn new_random() -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyConfig
impl<'de> Deserialize<'de> for KeyConfig
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 Structable for KeyConfig
impl Structable for KeyConfig
Source§fn definition(&self) -> StructDef<'_>
fn definition(&self) -> StructDef<'_>
Returns the struct’s definition. Read more
Source§impl Valuable for KeyConfig
impl Valuable for KeyConfig
impl Eq for KeyConfig
impl StructuralPartialEq for KeyConfig
Auto Trait Implementations§
impl Freeze for KeyConfig
impl RefUnwindSafe for KeyConfig
impl Send for KeyConfig
impl Sync for KeyConfig
impl Unpin for KeyConfig
impl UnwindSafe for KeyConfig
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