pub struct MappingSessionProxy { /* private fields */ }Implementations§
Source§impl MappingSessionProxy
impl MappingSessionProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.storage.mapping/MappingSession.
Sourcepub fn take_event_stream(&self) -> MappingSessionEventStream
pub fn take_event_stream(&self) -> MappingSessionEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn open(
&self,
key: u64,
identifier: &[u8],
) -> QueryResponseFut<MappingSessionOpenResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn open( &self, key: u64, identifier: &[u8], ) -> QueryResponseFut<MappingSessionOpenResult, DefaultFuchsiaResourceDialect> ⓘ
Registers a node’s extents in the mapping session, returning its uncompressed size in bytes.
The filesystem resolves the identifier to locate the node on disk and transmits its
extent mappings to the block driver associated with key.
Sourcepub fn close(
&self,
key: u64,
) -> QueryResponseFut<MappingSessionCloseResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn close( &self, key: u64, ) -> QueryResponseFut<MappingSessionCloseResult, DefaultFuchsiaResourceDialect> ⓘ
Unregisters a node’s extents from the session by its session-unique key.
Trait Implementations§
Source§impl Clone for MappingSessionProxy
impl Clone for MappingSessionProxy
Source§fn clone(&self) -> MappingSessionProxy
fn clone(&self) -> MappingSessionProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MappingSessionProxy
impl Debug for MappingSessionProxy
Source§impl MappingSessionProxyInterface for MappingSessionProxy
impl MappingSessionProxyInterface for MappingSessionProxy
type OpenResponseFut = QueryResponseFut<Result<u64, i32>>
type CloseResponseFut = QueryResponseFut<Result<(), i32>>
fn open(&self, key: u64, identifier: &[u8]) -> Self::OpenResponseFut
fn close(&self, key: u64) -> Self::CloseResponseFut
Source§impl Proxy for MappingSessionProxy
impl Proxy for MappingSessionProxy
Source§type Protocol = MappingSessionMarker
type Protocol = MappingSessionMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MappingSessionProxy
impl !UnwindSafe for MappingSessionProxy
impl Freeze for MappingSessionProxy
impl Send for MappingSessionProxy
impl Sync for MappingSessionProxy
impl Unpin for MappingSessionProxy
impl UnsafeUnpin for MappingSessionProxy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.