Struct tugger_apple_codesign::RequirementBlob[][src]

pub struct RequirementBlob<'a> {
    pub data: Cow<'a, [u8]>,
}

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]

Parse the binary data in this blob into Code Requirement expressions.

Trait Implementations

impl<'a> Blob<'a> for RequirementBlob<'a>[src]

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.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.