pub struct SurfaceRuntimeInfo {
pub version: String,
pub binary_fingerprint: BinaryFingerprint,
pub boot_id: String,
}Fields§
§version: String§binary_fingerprint: BinaryFingerprint§boot_id: StringImplementations§
Source§impl SurfaceRuntimeInfo
impl SurfaceRuntimeInfo
pub fn current() -> Result<Self, String>
pub fn from_binary( version: impl Into<String>, binary_path: &Path, boot_id: impl Into<String>, ) -> Result<Self, String>
pub fn is_stale(&self) -> Result<bool, String>
pub fn verify_executable(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for SurfaceRuntimeInfo
impl Clone for SurfaceRuntimeInfo
Source§impl Debug for SurfaceRuntimeInfo
impl Debug for SurfaceRuntimeInfo
Source§impl<'de> Deserialize<'de> for SurfaceRuntimeInfo
impl<'de> Deserialize<'de> for SurfaceRuntimeInfo
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
impl Eq for SurfaceRuntimeInfo
Source§impl PartialEq for SurfaceRuntimeInfo
impl PartialEq for SurfaceRuntimeInfo
Source§impl Serialize for SurfaceRuntimeInfo
impl Serialize for SurfaceRuntimeInfo
impl StructuralPartialEq for SurfaceRuntimeInfo
Auto Trait Implementations§
impl Forget for SurfaceRuntimeInfo
impl Freeze for SurfaceRuntimeInfo
impl Move for SurfaceRuntimeInfo
impl RefUnwindSafe for SurfaceRuntimeInfo
impl Send for SurfaceRuntimeInfowhere
RawVecInner: Send,
impl Sync for SurfaceRuntimeInfowhere
RawVecInner: Sync,
impl Unpin for SurfaceRuntimeInfo
impl UnsafeUnpin for SurfaceRuntimeInfo
impl UnwindSafe for SurfaceRuntimeInfowhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.