pub struct SecurePrivateDirectoryTree { /* private fields */ }Expand description
Open handle to one current-user-owned mode-0700 directory tree.
The root and every created component are opened without following links.
This owns directory scaffolding only; artifact bytes still flow through
SecureCreateNewFilePublisher.
Implementations§
Source§impl SecurePrivateDirectoryTree
impl SecurePrivateDirectoryTree
Sourcepub async fn open_or_create_root(
path: PathBuf,
) -> Result<(Self, bool), SecurePublicationError>
pub async fn open_or_create_root( path: PathBuf, ) -> Result<(Self, bool), SecurePublicationError>
Opens an existing private root or creates exactly that final component.
Sourcepub async fn ensure_directory(
&self,
relative: PathBuf,
) -> Result<(), SecurePublicationError>
pub async fn ensure_directory( &self, relative: PathBuf, ) -> Result<(), SecurePublicationError>
Creates or verifies one bounded relative directory chain below the root.
Auto Trait Implementations§
impl Freeze for SecurePrivateDirectoryTree
impl RefUnwindSafe for SecurePrivateDirectoryTree
impl Send for SecurePrivateDirectoryTree
impl Sync for SecurePrivateDirectoryTree
impl Unpin for SecurePrivateDirectoryTree
impl UnsafeUnpin for SecurePrivateDirectoryTree
impl UnwindSafe for SecurePrivateDirectoryTree
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request