#[non_exhaustive]pub struct Reserver<'a> {
pub run: &'a RunName,
pub by: Option<OperationId>,
pub lease: &'a str,
pub owner: &'a Owner,
}Expand description
Who reserves a port: a run, its operation when journaled, and the lease (its scope, and its owner) the reservation is held under.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.run: &'a RunNameThe run.
by: Option<OperationId>Its operation, when journaled.
lease: &'a strThe lease’s scope (run:<name>).
owner: &'a OwnerThe lease’s owner.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Reserver<'a>
impl<'a> Freeze for Reserver<'a>
impl<'a> Move for Reserver<'a>
impl<'a> RefUnwindSafe for Reserver<'a>
impl<'a> Send for Reserver<'a>
impl<'a> Sync for Reserver<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Reserver<'a>
impl<'a> UnsafeUnpin for Reserver<'a>
impl<'a> UnwindSafe for Reserver<'a>
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