pub struct PinnedRegistration { /* private fields */ }Expand description
Can only be constructed by resolving a trusted ref. Caller authority over the approved ref is a host precondition; this is not an approval API.
Implementations§
Source§impl PinnedRegistration
impl PinnedRegistration
pub fn checker_files(&self) -> impl Iterator<Item = (&WirePath, &[u8], bool)>
pub fn declaration(&self) -> &Declaration
pub fn bytes(&self) -> &[u8] ⓘ
pub fn digest(&self) -> Digest
pub fn at_ref( repo: &GitRepo, approved_ref: &str, pack_dir: &str, name: &str, ) -> Result<Self, String>
Trait Implementations§
Source§impl Clone for PinnedRegistration
impl Clone for PinnedRegistration
Auto Trait Implementations§
impl Freeze for PinnedRegistration
impl RefUnwindSafe for PinnedRegistration
impl Send for PinnedRegistration
impl Sync for PinnedRegistration
impl Unpin for PinnedRegistration
impl UnsafeUnpin for PinnedRegistration
impl UnwindSafe for PinnedRegistration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more