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: AppID
§rendezvous_url: Cow<'static, str>
§app_version: V
Implementations§
Trait Implementations§
source§impl<V: PartialEq> PartialEq for AppConfig<V>
impl<V: PartialEq> PartialEq for AppConfig<V>
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§
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