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.
Trait Implementations§
source§impl SynchronousProxy for DirectoryIteratorSynchronousProxy
impl SynchronousProxy for DirectoryIteratorSynchronousProxy
§type Proxy = DirectoryIteratorProxy
type Proxy = DirectoryIteratorProxy
The async proxy for the same protocol.
§type Protocol = DirectoryIteratorMarker
type Protocol = DirectoryIteratorMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DirectoryIteratorSynchronousProxy
impl Send for DirectoryIteratorSynchronousProxy
impl Sync for DirectoryIteratorSynchronousProxy
impl Unpin for DirectoryIteratorSynchronousProxy
impl UnwindSafe for DirectoryIteratorSynchronousProxy
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