pub struct PortLease {
pub port: u16,
pub branch: String,
pub session_uuid: String,
pub pid: u32,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub status: String,
}Expand description
A port allocated to a worktree, with an 8-hour TTL.
Fields§
§port: u16§branch: String§session_uuid: String§pid: u32§created_at: DateTime<Utc>§expires_at: DateTime<Utc>§status: String“active” or “stale” (after worktree eviction, before TTL expiry).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortLease
impl<'de> Deserialize<'de> for PortLease
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PortLease
impl RefUnwindSafe for PortLease
impl Send for PortLease
impl Sync for PortLease
impl Unpin for PortLease
impl UnsafeUnpin for PortLease
impl UnwindSafe for PortLease
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more