pub struct ResumeBootstrap { /* private fields */ }Expand description
A startup request whose handover has been checked before daemon startup.
Implementations§
Source§impl ResumeBootstrap
impl ResumeBootstrap
Sourcepub fn validate(
config: BootstrapConfig,
path: &Path,
key_fd: RawFd,
inherited: InheritedDescriptors,
) -> Result<Self, BootstrapError>
pub fn validate( config: BootstrapConfig, path: &Path, key_fd: RawFd, inherited: InheritedDescriptors, ) -> Result<Self, BootstrapError>
Validate the handover using only read-only boot configuration and the descriptor snapshot taken at process entry. A different running image is allowed to boot cold, but a malformed handover refuses startup.
pub async fn run(self) -> Result<(), BootstrapError>
Auto Trait Implementations§
impl !RefUnwindSafe for ResumeBootstrap
impl !UnwindSafe for ResumeBootstrap
impl Forget for ResumeBootstrap
impl Freeze for ResumeBootstrapwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ConfiguredModule>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const ArcInner<File> is !null: Freeze,
PhantomData<ArcInner<File>>: Freeze,
*const ArcInner<Error> is !null: Freeze,
PhantomData<ArcInner<Error>>: Freeze,
I32NotAllOnes: Freeze,
*const LeafNode<String, bool> is !null: Freeze,
PhantomData<Box<(String, bool)>>: Freeze,
PhantomData<LockWitness>: Freeze,
PhantomData<ChildWitness>: Freeze,
*const LeafNode<i32, OwnedFd> is !null: Freeze,
PhantomData<Box<(i32, OwnedFd)>>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
impl Move for ResumeBootstrap
impl Send for ResumeBootstrapwhere
RawVecInner: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
Arc<File>: Send,
Arc<Error>: Send,
I32NotAllOnes: Send,
NodeRef<Owned, String, bool, LeafOrInternal>: Send,
BoxRaw<(String, bool)>: Send,
NodeRef<Owned, i32, OwnedFd, LeafOrInternal>: Send,
BoxRaw<(i32, OwnedFd)>: Send,
Repr: Send,
impl Sync for ResumeBootstrapwhere
RawVecInner: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
Arc<File>: Sync,
Arc<Error>: Sync,
I32NotAllOnes: Sync,
NodeRef<Owned, String, bool, LeafOrInternal>: Sync,
BoxRaw<(String, bool)>: Sync,
NodeRef<Owned, i32, OwnedFd, LeafOrInternal>: Sync,
BoxRaw<(i32, OwnedFd)>: Sync,
Repr: Sync,
impl Unpin for ResumeBootstrapwhere
*const u8 is !null: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Arc<File>: Unpin,
Arc<Error>: Unpin,
I32NotAllOnes: Unpin,
*const LeafNode<String, bool> is !null: Unpin,
Box<(String, bool)>: Unpin,
*const LeafNode<i32, OwnedFd> is !null: Unpin,
Box<(i32, OwnedFd)>: Unpin,
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
impl UnsafeUnpin for ResumeBootstrapwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ConfiguredModule>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const ArcInner<File> is !null: UnsafeUnpin,
PhantomData<ArcInner<File>>: UnsafeUnpin,
*const ArcInner<Error> is !null: UnsafeUnpin,
PhantomData<ArcInner<Error>>: UnsafeUnpin,
I32NotAllOnes: UnsafeUnpin,
*const LeafNode<String, bool> is !null: UnsafeUnpin,
PhantomData<Box<(String, bool)>>: UnsafeUnpin,
PhantomData<LockWitness>: UnsafeUnpin,
PhantomData<ChildWitness>: UnsafeUnpin,
*const LeafNode<i32, OwnedFd> is !null: UnsafeUnpin,
PhantomData<Box<(i32, OwnedFd)>>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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