Struct tugger_apple_codesign::RequirementBlob [−][src]
Represents a Requirement blob.
csreq -b
will emit instances of this blob, header magic and all. So data generated
by csreq -b
can be fed into [RequirementBlob.from_blob_bytes] to obtain an instance.
Fields
data: Cow<'a, [u8]>
Implementations
impl<'a> RequirementBlob<'a>
[src]
pub fn to_owned(&self) -> RequirementBlob<'static>
[src]
pub fn parse_expressions(
&self
) -> Result<CodeRequirements<'_>, AppleCodesignError>
[src]
&self
) -> Result<CodeRequirements<'_>, AppleCodesignError>
Parse the binary data in this blob into Code Requirement expressions.
Trait Implementations
impl<'a> Blob<'a> for RequirementBlob<'a>
[src]
fn magic() -> u32
[src]
fn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
[src]
fn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
[src]
fn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
[src]
fn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
[src]
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
impl<'a> Debug for RequirementBlob<'a>
[src]
impl<'a> TryFrom<&'_ CodeRequirements<'a>> for RequirementBlob<'static>
[src]
type Error = AppleCodesignError
The type returned in the event of a conversion error.
fn try_from(requirements: &CodeRequirements<'a>) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for RequirementBlob<'a>
impl<'a> Send for RequirementBlob<'a>
impl<'a> Sync for RequirementBlob<'a>
impl<'a> Unpin for RequirementBlob<'a>
impl<'a> UnwindSafe for RequirementBlob<'a>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?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.
pub 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>,