Struct magic_wormhole::AppConfig
source · [−]pub struct AppConfig<V> {
pub id: AppID,
pub rendezvous_url: Cow<'static, str>,
pub app_version: V,
}Expand description
Wormhole configuration corresponding to an uppler layer protocol
There are multiple different protocols built on top of the core
Wormhole protocol. They are identified by a unique URI-like ID string
(AppID), an URL to find the rendezvous server (might be shared among
multiple protocols), and client implementations also have a “version”
data to do protocol negotiation.
See crate::transfer::APP_CONFIG, which entails
Fields
id: AppIDrendezvous_url: Cow<'static, str>app_version: VImplementations
sourceimpl<V: Serialize> AppConfig<V>
impl<V: Serialize> AppConfig<V>
pub fn app_version(self, app_version: V) -> Self
Trait Implementations
impl<V: Eq> Eq for AppConfig<V>
impl<V> StructuralEq for AppConfig<V>
impl<V> StructuralPartialEq for AppConfig<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for AppConfig<V> where
V: RefUnwindSafe,
impl<V> Send for AppConfig<V> where
V: Send,
impl<V> Sync for AppConfig<V> where
V: Sync,
impl<V> Unpin for AppConfig<V> where
V: Unpin,
impl<V> UnwindSafe for AppConfig<V> where
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more