pub struct Flux2SessionCache { /* private fields */ }Expand description
Process-wide cache of Flux2Runner instances (CLI --reuse-session / serve mode).
Implementations§
Source§impl Flux2SessionCache
impl Flux2SessionCache
pub fn global() -> &'static Flux2SessionCache
pub fn get_or_open( &self, builder: Flux2RunnerBuilder, ) -> Result<Flux2Session, Error>
pub fn len(&self) -> Result<usize, Error>
pub fn is_empty(&self) -> Result<bool, Error>
Trait Implementations§
Source§impl Default for Flux2SessionCache
impl Default for Flux2SessionCache
Source§fn default() -> Flux2SessionCache
fn default() -> Flux2SessionCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for Flux2SessionCache
impl RefUnwindSafe for Flux2SessionCache
impl Send for Flux2SessionCache
impl Sync for Flux2SessionCache
impl Unpin for Flux2SessionCache
impl UnsafeUnpin for Flux2SessionCache
impl UnwindSafe for Flux2SessionCache
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> 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