pub struct Share { /* private fields */ }Expand description
One share definition, attached to a single backend.
Implementations§
Sourcepub fn new(name: impl Into<String>, backend: impl ShareBackend) -> Self
pub fn new(name: impl Into<String>, backend: impl ShareBackend) -> Self
Build a new share with the given name and backend.
Sourcepub fn public_read_only(self) -> Self
pub fn public_read_only(self) -> Self
Anonymous + authenticated read-only.
Auto Trait Implementations§
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