pub struct ErofsVolume { /* private fields */ }Expand description
Holds the volume-level state for an active EROFS instance.
Implementations§
Source§impl ErofsVolume
impl ErofsVolume
pub fn new(backing_vmo: Vmo, pager: Arc<ErofsPager>) -> Result<Self, Error>
Sourcepub fn serve(
backing_vmo: Vmo,
pager: Arc<ErofsPager>,
flags: Flags,
root: ServerEnd<DirectoryMarker>,
) -> Result<(), Error>
pub fn serve( backing_vmo: Vmo, pager: Arc<ErofsPager>, flags: Flags, root: ServerEnd<DirectoryMarker>, ) -> Result<(), Error>
Sets up and serves an EROFS volume from a backing VMO.
Sourcepub fn fs(&self) -> &ErofsFilesystem
pub fn fs(&self) -> &ErofsFilesystem
Returns a reference to the filesystem.
Sourcepub fn pager(&self) -> &ErofsPager
pub fn pager(&self) -> &ErofsPager
Returns a reference to the pager.
Auto Trait Implementations§
impl Freeze for ErofsVolume
impl !RefUnwindSafe for ErofsVolume
impl Send for ErofsVolume
impl Sync for ErofsVolume
impl Unpin for ErofsVolume
impl UnsafeUnpin for ErofsVolume
impl !UnwindSafe for ErofsVolume
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more