#[repr(u32)]pub enum EventType {
CapabilityRequested = 1,
DirectoryReady = 2,
Discovered = 3,
Destroyed = 4,
Resolved = 5,
Started = 6,
Stopped = 7,
DebugStarted = 8,
Unresolved = 9,
}
Expand description
These EventTypes are used for the EventStream protocol. They are FIDL versions of the EventType enum in hooks.rs and have the same meaning.
Variants§
CapabilityRequested = 1
DirectoryReady = 2
Discovered = 3
Destroyed = 4
Resolved = 5
Started = 6
Stopped = 7
DebugStarted = 8
Unresolved = 9
Trait Implementations§
Source§impl Encodable for EventType
impl Encodable for EventType
Source§type Encoded = WireEventType
type Encoded = WireEventType
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl From<EventType> for WireEventType
impl From<EventType> for WireEventType
Source§impl From<WireEventType> for EventType
impl From<WireEventType> for EventType
Source§fn from(wire: WireEventType) -> Self
fn from(wire: WireEventType) -> Self
Converts to this type from the input type.
Source§impl TakeFrom<WireEventType> for EventType
impl TakeFrom<WireEventType> for EventType
Source§fn take_from(from: &WireEventType) -> Self
fn take_from(from: &WireEventType) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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