netstack3_fuchsia

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, F>(&mut self, name: T, f: F)
where T: Display, F: FnOnce(&mut Self::ChildInspector<'_>),

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

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

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

fn record_counter(&mut self, name: &str, value: &Counter)

Records a counter.
Source§

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

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

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

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

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

Records an IP address.
Source§

fn record_zoned_addr_with_port<I, A, D, P>( &mut self, name: &str, addr: ZonedAddr<A, D>, port: P, )
where I: InspectorDeviceExt<D>, A: IpAddress, P: Display,

Records a ZonedAddr and it’s port, mapping the zone into an inspectable device identifier.
Source§

fn record_local_socket_addr<I, A, D, P>( &mut self, addr_with_port: Option<(ZonedAddr<A, D>, P)>, )
where I: InspectorDeviceExt<D>, A: IpAddress, P: Display,

Records the local address of a socket.
Source§

fn record_remote_socket_addr<I, A, D, P>( &mut self, addr_with_port: Option<(ZonedAddr<A, D>, P)>, )
where I: InspectorDeviceExt<D>, A: IpAddress, P: Display,

Records the remote address of a socket.
Source§

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

Records an implementor of InspectableValue.
Source§

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

Records an implementor of Inspectable under name.
Source§

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

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.

§

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<CC, BC, Meta> RecvFrameContext<Meta, BC> for CC
where Meta: ReceivableFrameMeta<CC, BC>,

Source§

fn receive_frame<B>(&mut self, bindings_ctx: &mut BC, metadata: Meta, frame: B)
where B: BufferMut + Debug,

Receive a frame. Read more
Source§

impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CC
where Meta: SendableFrameMeta<CC, BC>,

Source§

fn send_frame<S>( &mut self, bindings_ctx: &mut BC, metadata: Meta, frame: S, ) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>
where S: Serializer, <S as Serializer>::Buffer: BufferMut,

Send a frame. Read more
Source§

impl<Id, CC, BC> TimerHandler<BC, Id> for CC
where BC: TimerBindingsTypes, Id: HandleableTimer<CC, BC>,

Source§

fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )

Handle a timer firing. 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.
Source§

impl<L, T> UnlockedAccess<L> for T

Source§

type Data = <L as UnlockedAccessMarkerFor<T>>::Data

The type of state being accessed.
Source§

type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l

A guard providing read access to the data.
Source§

fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>

How to access the state.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<B, A> LockBefore<B> for A
where B: LockAfter<A>,