pub enum FipsBleEvent {
Listening {
request_id: u64,
psm: u16,
},
AdvertisingStarted {
request_id: u64,
},
AdvertisingStopped {
request_id: u64,
},
ScanningStarted {
request_id: u64,
},
PeerDiscovered {
peer_token: String,
bootstrap: Vec<u8>,
},
Connected {
request_id: u64,
connection_id: u64,
peer_token: String,
send_segment_mtu: u16,
receive_segment_mtu: u16,
},
IncomingConnection {
connection_id: u64,
peer_token: String,
send_segment_mtu: u16,
receive_segment_mtu: u16,
},
BytesReceived {
connection_id: u64,
bytes: Vec<u8>,
},
WriteCompleted {
request_id: u64,
},
Disconnected {
connection_id: u64,
reason: Option<String>,
},
Failed {
request_id: u64,
message: String,
},
}Variants§
Listening
AdvertisingStarted
AdvertisingStopped
ScanningStarted
PeerDiscovered
Connected
Fields
IncomingConnection
BytesReceived
WriteCompleted
Disconnected
Failed
Trait Implementations§
Source§impl Clone for FipsBleEvent
impl Clone for FipsBleEvent
Source§impl<UT> ConvertError<UT> for FipsBleEvent
impl<UT> ConvertError<UT> for FipsBleEvent
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FipsBleEvent
impl Debug for FipsBleEvent
impl Eq for FipsBleEvent
Source§impl<UT> FfiConverter<UT> for FipsBleEvent
impl<UT> FfiConverter<UT> for FipsBleEvent
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Type ID metadata, serialized into a MetadataBuffer.
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
The low-level type used for passing values of this type over the FFI. Read more
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§impl From<FipsBleEvent> for HostBleEvent
impl From<FipsBleEvent> for HostBleEvent
Source§fn from(event: FipsBleEvent) -> Self
fn from(event: FipsBleEvent) -> Self
Converts to this type from the input type.
Source§impl<UT> Lift<UT> for FipsBleEvent
impl<UT> Lift<UT> for FipsBleEvent
Source§impl<UT> LiftRef<UT> for FipsBleEvent
impl<UT> LiftRef<UT> for FipsBleEvent
type LiftType = FipsBleEvent
Source§impl<UT> LiftReturn<UT> for FipsBleEvent
impl<UT> LiftReturn<UT> for FipsBleEvent
Source§type ReturnType = <FipsBleEvent as Lift<UT>>::FfiType
type ReturnType = <FipsBleEvent as Lift<UT>>::FfiType
FFI return type for trait interfaces
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Lift a foreign returned value from a trait interface Read more
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Lift a Rust value for a callback interface method error result Read more
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more
Source§impl<UT> Lower<UT> for FipsBleEvent
impl<UT> Lower<UT> for FipsBleEvent
type FfiType = <FipsBleEvent as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for FipsBleEvent
impl<UT> LowerError<UT> for FipsBleEvent
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for FipsBleEvent
impl<UT> LowerReturn<UT> for FipsBleEvent
Source§type ReturnType = <FipsBleEvent as Lower<UT>>::FfiType
type ReturnType = <FipsBleEvent as Lower<UT>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl PartialEq for FipsBleEvent
impl PartialEq for FipsBleEvent
impl StructuralPartialEq for FipsBleEvent
Source§impl<UT> TypeId<UT> for FipsBleEvent
impl<UT> TypeId<UT> for FipsBleEvent
Auto Trait Implementations§
impl Forget for FipsBleEvent
impl Freeze for FipsBleEvent
impl Move for FipsBleEvent
impl RefUnwindSafe for FipsBleEvent
impl Send for FipsBleEvent
impl Sync for FipsBleEvent
impl Unpin for FipsBleEvent
impl UnsafeUnpin for FipsBleEvent
impl UnwindSafe for FipsBleEvent
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.