pub struct DirReceiver { /* private fields */ }Expand description
Implementations§
Source§impl DirReceiver
impl DirReceiver
pub fn new(receiver: UnboundedReceiver<ServerEnd<DirectoryMarker>>) -> Self
Sourcepub async fn receive(&self) -> Option<ServerEnd<DirectoryMarker>>
pub async fn receive(&self) -> Option<ServerEnd<DirectoryMarker>>
Waits to receive a message, or return None if there are no more messages and all
senders are dropped.
Trait Implementations§
Source§impl Clone for DirReceiver
impl Clone for DirReceiver
Auto Trait Implementations§
impl Freeze for DirReceiver
impl !RefUnwindSafe for DirReceiver
impl Send for DirReceiver
impl Sync for DirReceiver
impl Unpin for DirReceiver
impl !UnwindSafe for DirReceiver
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more