Top "Lifetime" questions

A variable's life-time is the time during which the variable is bound to a specific memory location.

Lifetime of the SSL session in https

We have an engaged (but friendly) discussion between coworkers about the life time of the SSL session underlying a https …

session ssl https lifetime
Singleton Per Call Context (Web Request) in Unity

A few days ago, I had an issue with ASP.Net threading. I wanted to have a singleton object per …

asp.net singleton unity-container unit-of-work lifetime
How do I write an iterator that returns references to itself?

I am having trouble expressing the lifetime of the return value of an Iterator implementation. How can I compile this …

iterator rust lifetime
Cannot infer an appropriate lifetime for autoref due to conflicting requirements

I'm having lifetime issues with a particular function in my code. I'm following a tutorial in an attempt to learn …

rust sdl lifetime
Prevent Android activity from being recreated on turning screen off

How to prevent an activity from being recreated on turning screen off? What I do Start Bejewels and go to …

android-intent android-activity lifecycle lifetime activity-lifecycle
Value does not live long enough

I don't completely understand lifetimes, but I think b's lifetime will end before self's. So, how to edit this code? …

rust lifetime borrowing
How do I implement the Add trait for a reference to a struct?

I made a two element Vector struct and I want to overload the + operator. I made all my functions and …

reference rust traits lifetime
The compiler suggests I add a 'static lifetime because the parameter type may not live long enough, but I don't think that's what I want

I'm trying to implement something that looks like this minimal example: trait Bar<T> {} struct Foo<T&…

rust lifetime
Lifetimes in Rust

Occasionally I've found myself wanting to write functions that can be called in either of two ways: // With a string …

rust lifetime
JWT token exception in ASP.Net (Lifetime validation failed. The token is missing an Expiration Time.)

I am creating my own custom authentication on ASP. Net MobileService deployed on Azure. I use JWT tokens. Here is …

asp.net authentication authorization jwt lifetime