pub struct ServiceSlot { /* private fields */ }Expand description
Holds the resource lock and immutable start specification. Drop never releases the durable fence. Only the bound journal’s verified absence can release it.
Implementations§
Source§impl ServiceSlot
impl ServiceSlot
Sourcepub fn mapped_root(
base: &Path,
project: &str,
resource: &str,
) -> Result<PathBuf, Invalid>
pub fn mapped_root( base: &Path, project: &str, resource: &str, ) -> Result<PathBuf, Invalid>
Stable mapping is independent of image, host path, invocation or config changes: those changes cannot select a new slot for an unresolved resource.
pub fn acquire_mapped( base: &Path, resolve: Request, plan: CreatePlan, healthcheck: Vec<String>, ) -> Result<Self, Invalid>
Source§impl ServiceSlot
impl ServiceSlot
Source§impl ServiceSlot
impl ServiceSlot
pub fn acquire( root: &Path, resolve: Request, plan: CreatePlan, healthcheck: Vec<String>, ) -> Result<Self, Invalid>
pub fn check(&self) -> Result<(), Invalid>
pub fn resolve_request(&self) -> &Request
pub fn plan(&self) -> &CreatePlan
pub fn healthcheck(&self) -> &[String]
pub fn fence(&self) -> u64
pub fn reserve(&mut self) -> Result<Reservation, Invalid>
pub fn finish(&mut self, journal: Journal) -> Result<(), Invalid>
Auto Trait Implementations§
impl Freeze for ServiceSlot
impl RefUnwindSafe for ServiceSlot
impl Send for ServiceSlot
impl Sync for ServiceSlot
impl Unpin for ServiceSlot
impl UnsafeUnpin for ServiceSlot
impl UnwindSafe for ServiceSlot
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