pub struct DirectoryIteratorSynchronousProxy { /* private fields */ }
Implementations§
source§impl DirectoryIteratorSynchronousProxy
impl DirectoryIteratorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<DirectoryIteratorEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<DirectoryIteratorEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn get_next(
&self,
___deadline: Time
) -> Result<DirectoryIteratorGetNextResult, Error>
pub fn get_next( &self, ___deadline: Time ) -> Result<DirectoryIteratorGetNextResult, Error>
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.