Struct tugger_apple_codesign::RequirementSetBlob [−][src]
pub struct RequirementSetBlob<'a> { pub requirements: HashMap<RequirementType, RequirementBlob<'a>>, }
Represents a Requirement set blob.
A Requirement set blob contains nested Requirement blobs.
Fields
requirements: HashMap<RequirementType, RequirementBlob<'a>>
Implementations
impl<'a> RequirementSetBlob<'a>
[src]
impl<'a> RequirementSetBlob<'a>
[src]pub fn to_owned(&self) -> RequirementSetBlob<'static>
[src]
pub fn set_requirements(
&mut self,
slot: RequirementType,
blob: RequirementBlob<'a>
)
[src]
pub fn set_requirements(
&mut self,
slot: RequirementType,
blob: RequirementBlob<'a>
)
[src]Set the requirements for a given RequirementType.
Trait Implementations
impl<'a> Blob<'a> for RequirementSetBlob<'a>
[src]
impl<'a> Blob<'a> for RequirementSetBlob<'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 RequirementSetBlob<'a>
[src]
impl<'a> Debug for RequirementSetBlob<'a>
[src]impl<'a> Default for RequirementSetBlob<'a>
[src]
impl<'a> Default for RequirementSetBlob<'a>
[src]fn default() -> RequirementSetBlob<'a>
[src]
fn default() -> RequirementSetBlob<'a>
[src]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
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,