pub struct WasmCachedEntry { /* private fields */ }Expand description
Verified .wasm binary and parsed module cached locally for instant reload, hot-swap, and offline fallback.
Implementations§
Source§impl WasmCachedEntry
impl WasmCachedEntry
pub fn get_url(&self) -> &String
pub fn get_mut_url(&mut self) -> &mut String
pub fn set_url(&mut self, val: String) -> &mut Self
pub fn get_version(&self) -> u64
pub fn get_mut_version(&mut self) -> &mut u64
pub fn set_version(&mut self, val: u64) -> &mut Self
pub fn get_checksum(&self) -> u64
pub fn get_mut_checksum(&mut self) -> &mut u64
pub fn set_checksum(&mut self, val: u64) -> &mut Self
pub fn get_bytes(&self) -> &Rc<Vec<u8>>
pub fn get_mut_bytes(&mut self) -> &mut Rc<Vec<u8>>
pub fn set_bytes(&mut self, val: Rc<Vec<u8>>) -> &mut Self
pub fn get_parsed(&self) -> &Rc<WasmParsedModule>
pub fn get_mut_parsed(&mut self) -> &mut Rc<WasmParsedModule>
pub fn set_parsed(&mut self, val: Rc<WasmParsedModule>) -> &mut Self
pub fn get_etag(&self) -> &String
pub fn get_mut_etag(&mut self) -> &mut String
pub fn set_etag(&mut self, val: String) -> &mut Self
Trait Implementations§
Source§impl Clone for WasmCachedEntry
impl Clone for WasmCachedEntry
Source§impl Debug for WasmCachedEntry
impl Debug for WasmCachedEntry
impl Eq for WasmCachedEntry
Source§impl PartialEq for WasmCachedEntry
impl PartialEq for WasmCachedEntry
impl StructuralPartialEq for WasmCachedEntry
Auto Trait Implementations§
impl !Send for WasmCachedEntry
impl !Sync for WasmCachedEntry
impl Forget for WasmCachedEntry
impl Freeze for WasmCachedEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<Vec<u8>> is !null: Freeze,
PhantomData<RcInner<Vec<u8>>>: Freeze,
*const RcInner<WasmParsedModule> is !null: Freeze,
PhantomData<RcInner<WasmParsedModule>>: Freeze,
impl Move for WasmCachedEntry
impl RefUnwindSafe for WasmCachedEntry
impl Unpin for WasmCachedEntry
impl UnsafeUnpin for WasmCachedEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<Vec<u8>> is !null: UnsafeUnpin,
PhantomData<RcInner<Vec<u8>>>: UnsafeUnpin,
*const RcInner<WasmParsedModule> is !null: UnsafeUnpin,
PhantomData<RcInner<WasmParsedModule>>: UnsafeUnpin,
impl UnwindSafe for WasmCachedEntry
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