Skip to main content

ResumeBootstrap

Struct ResumeBootstrap 

Source
pub struct ResumeBootstrap { /* private fields */ }
Expand description

A startup request whose handover has been checked before daemon startup.

Implementations§

Source§

impl ResumeBootstrap

Source

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.

Source

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 ResumeBootstrap
where *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 ResumeBootstrap
where 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 ResumeBootstrap
where 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 ResumeBootstrap
where *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 ResumeBootstrap
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more