pub enum FomModule {
File(PathBuf),
Content {
name: String,
content: Bytes,
},
Compressed(Bytes),
Url(String),
}Expand description
Designator of a FOM module or MIM for Create and Join Federation Execution (12.13.3.3 a).
Variants§
File(PathBuf)
A local file. It is read when the service is invoked; its file name and content are sent.
Content
A module given by name and full content.
Compressed(Bytes)
A module compressed as a ZIP archive.
Url(String)
A URL from which the RTI fetches the module.
Implementations§
Source§impl FomModule
impl FomModule
Sourcepub fn file(path: impl Into<PathBuf>) -> Self
pub fn file(path: impl Into<PathBuf>) -> Self
A module read from a local file when the service is invoked.
Sourcepub fn content(name: impl Into<String>, content: impl Into<Bytes>) -> Self
pub fn content(name: impl Into<String>, content: impl Into<Bytes>) -> Self
A module given by name and full content.
Sourcepub fn compressed(archive: impl Into<Bytes>) -> Self
pub fn compressed(archive: impl Into<Bytes>) -> Self
A module compressed as a ZIP archive (ISO/IEC 21320-1).
Trait Implementations§
impl Eq for FomModule
impl StructuralPartialEq for FomModule
Auto Trait Implementations§
impl !Freeze for FomModule
impl Forget for FomModule
impl Move for FomModule
impl RefUnwindSafe for FomModule
impl Send for FomModule
impl Sync for FomModule
impl Unpin for FomModule
impl UnsafeUnpin for FomModulewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
impl UnwindSafe for FomModulewhere
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: 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