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]
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> Blob<'a> for RequirementBlob<'a>
[src]fn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
[src]
fn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
[src]Attempt to construct an instance by parsing a bytes slice. Read more
fn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
[src]
fn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
[src]Serialize the payload of this blob to bytes. Read more
fn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
[src]
fn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
[src]Serialize this blob to bytes. Read more
fn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
[src]
fn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
[src]Obtain the digest of the blob using the specified hasher. Read more
impl<'a> Debug for RequirementBlob<'a>
[src]
impl<'a> Debug for RequirementBlob<'a>
[src]impl<'a> TryFrom<&'_ CodeRequirements<'a>> for RequirementBlob<'static>
[src]
impl<'a> TryFrom<&'_ CodeRequirements<'a>> for RequirementBlob<'static>
[src]type Error = AppleCodesignError
type Error = AppleCodesignError
The type returned in the event of a conversion error.
fn try_from(requirements: &CodeRequirements<'a>) -> Result<Self, Self::Error>
[src]
fn try_from(requirements: &CodeRequirements<'a>) -> Result<Self, Self::Error>
[src]Performs the conversion.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,