pub struct BlockServer<SM> { /* 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, session_manager: impl IntoSessionManager<SM = SM>, ) -> Self
Sourcepub async fn handle_requests(
&self,
requests: VolumeRequestStream,
) -> Result<(), Error>
pub async fn handle_requests( &self, requests: VolumeRequestStream, ) -> Result<(), Error>
Called to process requests for fuchsia.hardware.block.volume/Volume.
Auto Trait Implementations§
impl<SM> Freeze for BlockServer<SM>
impl<SM> RefUnwindSafe for BlockServer<SM>where
SM: RefUnwindSafe,
impl<SM> Send for BlockServer<SM>
impl<SM> Sync for BlockServer<SM>
impl<SM> Unpin for BlockServer<SM>
impl<SM> UnwindSafe for BlockServer<SM>where
SM: RefUnwindSafe,
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