pub enum NormalizedRoot {
EnforceableFileSystem {
uri: String,
name: Option<String>,
normalized_path: String,
},
UnenforceableFileSystem {
uri: String,
name: Option<String>,
reason: String,
},
NonFileSystem {
uri: String,
name: Option<String>,
scheme: String,
},
}Expand description
Normalized root view consumed by the shared runtime.
RootDefinition remains the transport shape received from the client. The
runtime uses NormalizedRoot to freeze whether a root is enforceable for
filesystem-shaped access or should be treated as metadata only.
Variants§
Implementations§
Source§impl NormalizedRoot
impl NormalizedRoot
pub fn from_root_definition(root: &RootDefinition) -> NormalizedRoot
pub fn is_enforceable_filesystem(&self) -> bool
pub fn normalized_filesystem_path(&self) -> Option<&str>
pub fn uri(&self) -> &str
Trait Implementations§
Source§impl Clone for NormalizedRoot
impl Clone for NormalizedRoot
Source§fn clone(&self) -> NormalizedRoot
fn clone(&self) -> NormalizedRoot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedRoot
impl Debug for NormalizedRoot
Source§impl<'de> Deserialize<'de> for NormalizedRoot
impl<'de> Deserialize<'de> for NormalizedRoot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NormalizedRoot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NormalizedRoot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NormalizedRoot
impl PartialEq for NormalizedRoot
Source§impl Serialize for NormalizedRoot
impl Serialize for NormalizedRoot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NormalizedRoot
impl StructuralPartialEq for NormalizedRoot
Auto Trait Implementations§
impl Freeze for NormalizedRoot
impl RefUnwindSafe for NormalizedRoot
impl Send for NormalizedRoot
impl Sync for NormalizedRoot
impl Unpin for NormalizedRoot
impl UnsafeUnpin for NormalizedRoot
impl UnwindSafe for NormalizedRoot
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