Struct apple_codesign::RequirementSetBlob
source · [−]pub struct RequirementSetBlob<'a> {
pub requirements: HashMap<RequirementType, RequirementBlob<'a>>,
}
Expand description
Represents a Requirement set blob.
A Requirement set blob contains nested Requirement blobs.
Fields
requirements: HashMap<RequirementType, RequirementBlob<'a>>
Implementations
sourceimpl<'a> RequirementSetBlob<'a>
impl<'a> RequirementSetBlob<'a>
pub fn to_owned(&self) -> RequirementSetBlob<'static>
sourcepub fn set_requirements(
&mut self,
slot: RequirementType,
blob: RequirementBlob<'a>
)
pub fn set_requirements(
&mut self,
slot: RequirementType,
blob: RequirementBlob<'a>
)
Set the requirements for a given RequirementType.
Trait Implementations
sourceimpl<'a> Blob<'a> for RequirementSetBlob<'a>
impl<'a> Blob<'a> for RequirementSetBlob<'a>
sourcefn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
fn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
Attempt to construct an instance by parsing a bytes slice. Read more
sourcefn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
fn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
Serialize the payload of this blob to bytes. Read more
sourcefn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
fn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
Serialize this blob to bytes. Read more
sourcefn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
fn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
Obtain the digest of the blob using the specified hasher. Read more
sourceimpl<'a> Debug for RequirementSetBlob<'a>
impl<'a> Debug for RequirementSetBlob<'a>
sourceimpl<'a> Default for RequirementSetBlob<'a>
impl<'a> Default for RequirementSetBlob<'a>
sourcefn default() -> RequirementSetBlob<'a>
fn default() -> RequirementSetBlob<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for RequirementSetBlob<'a>
impl<'a> Send for RequirementSetBlob<'a>
impl<'a> Sync for RequirementSetBlob<'a>
impl<'a> Unpin for RequirementSetBlob<'a>
impl<'a> UnwindSafe for RequirementSetBlob<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more