pub struct SessionManager<I: ?Sized> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<I: Interface + ?Sized> SessionManager for SessionManager<I>
impl<I: Interface + ?Sized> SessionManager for SessionManager<I>
async fn on_attach_vmo(self: Arc<Self>, vmo: &Arc<Vmo>) -> Result<(), Status>
Source§async fn open_session(
self: Arc<Self>,
stream: SessionRequestStream,
offset_map: Option<OffsetMap>,
block_size: u32,
) -> Result<(), Error>
async fn open_session( self: Arc<Self>, stream: SessionRequestStream, offset_map: Option<OffsetMap>, block_size: u32, ) -> Result<(), Error>
Creates a new session to handle
stream
.
The returned future should run until the session completes, for example when the client end
closes.
If offset_map
is set, it will be used to remap the dev_offset of FIFO requests.Source§async fn get_info(&self) -> Result<Cow<'_, DeviceInfo>, Status>
async fn get_info(&self) -> Result<Cow<'_, DeviceInfo>, Status>
Called to get block/partition information for Block::GetInfo, Partition::GetTypeGuid, etc.
Source§async fn get_volume_info(
&self,
) -> Result<(VolumeManagerInfo, VolumeInfo), Status>
async fn get_volume_info( &self, ) -> Result<(VolumeManagerInfo, VolumeInfo), Status>
Called to handle the GetVolumeInfo FIDL call.
Source§async fn query_slices(
&self,
start_slices: &[u64],
) -> Result<Vec<VsliceRange>, Status>
async fn query_slices( &self, start_slices: &[u64], ) -> Result<Vec<VsliceRange>, Status>
Called to handle the QuerySlices FIDL call.
Auto Trait Implementations§
impl<I> Freeze for SessionManager<I>where
I: ?Sized,
impl<I> RefUnwindSafe for SessionManager<I>where
I: RefUnwindSafe + ?Sized,
impl<I> Send for SessionManager<I>
impl<I> Sync for SessionManager<I>
impl<I> Unpin for SessionManager<I>where
I: ?Sized,
impl<I> UnwindSafe for SessionManager<I>where
I: RefUnwindSafe + ?Sized,
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