#[non_exhaustive]pub struct BackendCapabilities {
pub is_read_only: bool,
pub case_sensitive: bool,
pub named_streams: bool,
pub extended_attributes: bool,
pub block_cloning: bool,
}Expand description
Static, advertised capabilities of a backend. Built from
BackendCapabilities::default; every field is public.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_read_only: boolIf true, all write-class operations are denied at the protocol layer
before reaching the backend (matches LocalFsBackend::read_only()).
case_sensitive: boolTrue iff the backend treats names case-sensitively.
named_streams: boolThe backend stores named streams (file.txt:name), served by
ShareBackend::open_stream, ShareBackend::remove_stream,
ShareBackend::rename_stream and Handle::streams. On a share
that leaves Share::named_streams on,
FileFsAttributeInformation then reports FILE_NAMED_STREAMS. Without
it, a CREATE that names a stream fails with
STATUS_OBJECT_NAME_INVALID before the backend is called.
extended_attributes: boolThe backend stores extended attributes of files and directories,
served by Handle::eas and Handle::set_eas. On a share that
leaves
Share::extended_attributes
on, FileFsAttributeInformation then reports
FILE_SUPPORTS_EXTENDED_ATTRIBUTES. Without it, the share answers as
Share::extended_attributes
describes for a share that turns them off.
block_cloning: boolThe backend can make a range of one file share its storage with a
range of another file on the same volume, served by
ShareBackend::clone_range. On a share that leaves
Share::server_side_copy on,
FileFsAttributeInformation then reports
FILE_SUPPORTS_BLOCK_REFCOUNTING and FSCTL_DUPLICATE_EXTENTS_TO_FILE
reaches the backend. Without it, that FSCTL fails with
STATUS_INVALID_DEVICE_REQUEST.
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
impl Copy for BackendCapabilities
Source§impl Debug for BackendCapabilities
impl Debug for BackendCapabilities
Auto Trait Implementations§
impl Forget for BackendCapabilities
impl Freeze for BackendCapabilities
impl Move for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
NoneValue::null_value produces.