[−][src]Struct ostree::Checksum
A binary SHA256 checksum.
Implementations
impl Checksum
[src]
pub fn from_hex(checksum: &str) -> Checksum
[src]
Create a Checksum
from a hexadecimal SHA256 string.
Unfortunately, the underlying libostree function has no way to report parsing errors. If the string is not a valid SHA256 string, the program will abort!
pub fn from_base64(b64_checksum: &str) -> Checksum
[src]
Create a Checksum
from a base64-encoded String.
Invalid base64 characters will not be reported, but will cause unknown output instead, most likely 0.
pub fn to_hex(&self) -> GString
[src]
Convert checksum to hex-encoded string.
pub fn to_base64(&self) -> String
[src]
Convert checksum to base64.
Trait Implementations
impl Clone for Checksum
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Checksum
[src]
impl Display for Checksum
[src]
impl Drop for Checksum
[src]
impl Eq for Checksum
[src]
impl FromGlibPtrFull<*mut [*mut u8; 32]> for Checksum
[src]
impl FromGlibPtrFull<*mut [u8; 32]> for Checksum
[src]
impl FromGlibPtrFull<*mut u8> for Checksum
[src]
unsafe fn from_glib_full(ptr: *mut u8) -> Self
[src]
impl PartialEq<Checksum> for Checksum
[src]
Auto Trait Implementations
impl RefUnwindSafe for Checksum
impl !Send for Checksum
impl !Sync for Checksum
impl Unpin for Checksum
impl UnwindSafe for Checksum
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,