fuchsia_component::directory

Trait AsRefDirectory

Source
pub trait AsRefDirectory {
    // Required method
    fn as_ref_directory(&self) -> &dyn Directory;
}
Expand description

A trait for types that can vend out a Directory reference.

A new trait is needed because both DirectoryProxy and AsRef are external types. As a result, implementing AsRef<&dyn Directory> for DirectoryProxy is not allowed under coherence rules.

Required Methods§

Source

fn as_ref_directory(&self) -> &dyn Directory

Get a Directory reference.

Implementations on Foreign Types§

Source§

impl AsRefDirectory for ClientEnd<DirectoryMarker>

Source§

impl AsRefDirectory for DirectoryProxy

Source§

impl AsRefDirectory for DirectorySynchronousProxy

Source§

impl<T: Directory> AsRefDirectory for &T

Source§

impl<T: Directory> AsRefDirectory for Box<T>

Source§

impl<T: Directory> AsRefDirectory for Arc<T>

Implementors§