Struct fidl_fuchsia_io::DirectoryIteratorProxy
source · pub struct DirectoryIteratorProxy { /* private fields */ }
Implementations§
source§impl DirectoryIteratorProxy
impl DirectoryIteratorProxy
sourcepub fn take_event_stream(&self) -> DirectoryIteratorEventStream
pub fn take_event_stream(&self) -> DirectoryIteratorEventStream
Get a Stream of events from the remote end of the DirectoryIterator protocol
Panics
Panics if the event stream was already taken.
sourcepub fn get_next(&self) -> QueryResponseFut<DirectoryIteratorGetNextResult>
pub fn get_next(&self) -> QueryResponseFut<DirectoryIteratorGetNextResult>
Reads a collection of variably sized directory entries into a buffer.
The number of entries in a directory may be very large: akin to
calling read multiple times on a file, directories have a seek
offset which is updated on subsequent calls to Enumerate
.
The caller should always use a receiving buffer size as large as the
maximum channel limit.
When the end of iteration is reached, the returned entries
vector
will be empty.
This method does not require any rights, as the rights are checked
in the [Directory.Enumerate
] call.
Trait Implementations§
source§impl Clone for DirectoryIteratorProxy
impl Clone for DirectoryIteratorProxy
source§fn clone(&self) -> DirectoryIteratorProxy
fn clone(&self) -> DirectoryIteratorProxy
Returns a copy of the value. Read more
1.0.0 · 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 DirectoryIteratorProxy
impl Debug for DirectoryIteratorProxy
source§impl DirectoryIteratorProxyInterface for DirectoryIteratorProxy
impl DirectoryIteratorProxyInterface for DirectoryIteratorProxy
type GetNextResponseFut = QueryResponseFut<Result<Vec<DirectoryEntry, Global>, i32>>
fn get_next(&self) -> Self::GetNextResponseFut
source§impl Proxy for DirectoryIteratorProxy
impl Proxy for DirectoryIteratorProxy
§type Protocol = DirectoryIteratorMarker
type Protocol = DirectoryIteratorMarker
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