pub struct SessionFs { /* private fields */ }Expand description
Files reached through a persistent session: the container counterpart of LocalFs at a
round trip of a few milliseconds, instead of 2-5 docker exec per operation (a container
edit cost about 300 ms). Content crosses through a heredoc read by the read builtin, so no byte is interpreted on the
way. Falls back to ContainerFs (or LocalFs for a local launcher) when no session can
start. Error messages match ContainerFs.
Implementations§
Trait Implementations§
Source§impl Fs for SessionFs
impl Fs for SessionFs
fn read(&self, path: &Path) -> Result<String, String>
fn write(&self, path: &Path, content: &str) -> Result<(), String>
Auto Trait Implementations§
impl !Freeze for SessionFs
impl !RefUnwindSafe for SessionFs
impl !UnwindSafe for SessionFs
impl Forget for SessionFs
impl Move for SessionFs
impl Send for SessionFs
impl Sync for SessionFs
impl Unpin for SessionFswhere
*const u8 is !null: Unpin,
Arc<dyn Fn() -> Result<Profile, String> + Sync + Send>: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
I32NotAllOnes: Unpin,
*mut Counter<Channel<Vec<u8>>>: Unpin,
*mut Counter<Channel<Vec<u8>>>: Unpin,
*mut Counter<Channel<Vec<u8>>>: Unpin,
Box<dyn Shell>: Unpin,
Box<dyn Fs>: Unpin,
impl UnsafeUnpin for SessionFswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
*const ArcInner<dyn Fn() -> Result<Profile, String> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn() -> Result<Profile, String> + Sync + Send>>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
I32NotAllOnes: UnsafeUnpin,
*mut Counter<Channel<Vec<u8>>>: UnsafeUnpin,
*mut Counter<Channel<Vec<u8>>>: UnsafeUnpin,
*mut Counter<Channel<Vec<u8>>>: UnsafeUnpin,
*const dyn Shell is !null: UnsafeUnpin,
PhantomData<dyn Shell>: UnsafeUnpin,
*const dyn Fs is !null: UnsafeUnpin,
PhantomData<dyn Fs>: UnsafeUnpin,
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