pub struct BlockServer<SM: SessionManager> { /* private fields */ }Expand description
BlockServer is an implementation of fuchsia.hardware.block.partition.Partition. cbindgen:no-export
Implementations§
Source§impl<SM: SessionManager> BlockServer<SM>
impl<SM: SessionManager> BlockServer<SM>
pub fn new( block_size: u32, orchestrator: impl IntoOrchestrator<SM = SM>, ) -> Self
pub fn session_manager(&self) -> &SM
Sourcepub async fn handle_requests(
&self,
requests: BlockRequestStream,
) -> Result<(), Error>
pub async fn handle_requests( &self, requests: BlockRequestStream, ) -> Result<(), Error>
Called to process requests for fuchsia.storage.block.Block.
Auto Trait Implementations§
impl<SM> Freeze for BlockServer<SM>
impl<SM> RefUnwindSafe for BlockServer<SM>
impl<SM> Send for BlockServer<SM>
impl<SM> Sync for BlockServer<SM>
impl<SM> Unpin for BlockServer<SM>
impl<SM> UnsafeUnpin for BlockServer<SM>
impl<SM> UnwindSafe for BlockServer<SM>
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