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]
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]
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> TryFrom<&'_ CodeRequirements<'a>> for RequirementBlob<'static>
[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> RefUnwindSafe for RequirementBlob<'a>
impl<'a> Send for RequirementBlob<'a>
impl<'a> Send for RequirementBlob<'a>
impl<'a> Sync for RequirementBlob<'a>
impl<'a> Sync for RequirementBlob<'a>
impl<'a> Unpin for RequirementBlob<'a>
impl<'a> Unpin for RequirementBlob<'a>
impl<'a> UnwindSafe for RequirementBlob<'a>
impl<'a> UnwindSafe for RequirementBlob<'a>
Blanket Implementations
impl<T> Instrument 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> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]