Struct FuchsiaInspector

Source
pub struct FuchsiaInspector<'a, D> { /* private fields */ }
Expand description

Provides a Fuchsia implementation of Inspector.

Implementations§

Source§

impl<'a, D> FuchsiaInspector<'a, D>

Source

pub fn new(node: &'a Node) -> Self

Create a new FuchsiaInspector rooted at node.

Trait Implementations§

Source§

impl<'a, D> Inspector for FuchsiaInspector<'a, D>

Source§

type ChildInspector<'l> = FuchsiaInspector<'l, D>

The type given to record contained children.
Source§

fn record_child<F: FnOnce(&mut Self::ChildInspector<'_>)>( &mut self, name: &str, f: F, )

Records a nested inspector with name calling f with the nested child to be filled in. Read more
Source§

fn record_unnamed_child<F: FnOnce(&mut Self::ChildInspector<'_>)>( &mut self, f: F, )

Records a child without a name. Read more
Source§

fn record_usize<T: Into<usize>>(&mut self, name: &str, value: T)

Records anything that can be represented by a usize.
Source§

fn record_uint<T: Into<u64>>(&mut self, name: &str, value: T)

Records anything that can be represented by a u64.
Source§

fn record_int<T: Into<i64>>(&mut self, name: &str, value: T)

Records anything that can be represented by a i64.
Source§

fn record_double<T: Into<f64>>(&mut self, name: &str, value: T)

Records anything that can be represented by a f64.
Source§

fn record_str(&mut self, name: &str, value: &str)

Records a str value.
Source§

fn record_string(&mut self, name: &str, value: String)

Records an owned string.
Source§

fn record_bool(&mut self, name: &str, value: bool)

Records a boolean.
Source§

fn record_display_child<T: Display, F: FnOnce(&mut Self::ChildInspector<'_>)>( &mut self, name: T, f: F, )

Records a child whose name is the display implementation of T.
Source§

fn record_debug_child<T: Debug, F: FnOnce(&mut Self::ChildInspector<'_>)>( &mut self, name: T, f: F, )

Records a child whose name is the Debug implementation of T.
Source§

fn record_display<T: Display>(&mut self, name: &str, value: T)

Records a value that implements Display as its display string.
Source§

fn record_debug<T: Debug>(&mut self, name: &str, value: T)

Records a value that implements Debug as its debug string.
Source§

fn record_ip_addr<A: IpAddress>(&mut self, name: &str, value: A)

Records an IP address.
Source§

fn record_inspectable_value<V: InspectableValue>( &mut self, name: &str, value: &V, )

Records an implementor of InspectableValue.
Source§

fn record_instant<V: InspectableInstant>( &mut self, name: InstantPropertyName, value: &V, )

Records an implementor of InspectableInstant.
Source§

fn record_inspectable<V: Inspectable>(&mut self, name: &str, value: &V)

Records an implementor of Inspectable under name.
Source§

fn delegate_inspectable<V: Inspectable>(&mut self, value: &V)

Delegates more fields to be added by an Inspectable implementation.
Source§

impl<'a, D, P: InspectorDeviceIdProvider<D>> InspectorDeviceExt<D> for FuchsiaInspector<'a, P>

Source§

fn record_device<I: Inspector>(inspector: &mut I, name: &str, device: &D)

Records an entry named name with value device.
Source§

fn device_identifier_as_address_zone(id: D) -> impl Display

Returns the Display representation of the IPv6 scoped address zone associated with D.

Auto Trait Implementations§

§

impl<'a, D> Freeze for FuchsiaInspector<'a, D>

§

impl<'a, D> !RefUnwindSafe for FuchsiaInspector<'a, D>

§

impl<'a, D> Send for FuchsiaInspector<'a, D>
where D: Send,

§

impl<'a, D> Sync for FuchsiaInspector<'a, D>
where D: Sync,

§

impl<'a, D> Unpin for FuchsiaInspector<'a, D>
where D: Unpin,

§

impl<'a, D> !UnwindSafe for FuchsiaInspector<'a, D>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.