#[repr(transparent)]pub struct OBEXSessionEventTypes(pub c_uint);OBEX only.Expand description
When a new session event occurs, your selector (or C callback) will be given an OBEXSessionEvent pointer, and in it will be a ‘type’ field with one of the following types in it. Based on that type, you can then read the corresponding field in the union to get out interesting data for that event type. For example, if the type of an event is a ‘kOBEXSessionEventTypeConnectCommandResponseReceived’, you should look in the ‘OBEXConnectCommandResponseData’ part of the structure’s union to find more information pased to you in the event. Note that some you will never see, depending on the type of session you are using - a client or server. If you are a client (most likely case), you will never see the “Command” events, but instead you will only receive the “CommandResponse” events since you will be the issuer oft he commands, not the receiver of them. Both types of sessions will receive error type events.
See also Apple’s documentation
Tuple Fields§
§0: c_uintImplementations§
Source§impl OBEXSessionEventTypes
impl OBEXSessionEventTypes
pub const ConnectCommandResponseReceived: Self
pub const DisconnectCommandResponseReceived: Self
pub const PutCommandResponseReceived: Self
pub const GetCommandResponseReceived: Self
pub const SetPathCommandResponseReceived: Self
pub const AbortCommandResponseReceived: Self
pub const ConnectCommandReceived: Self
pub const DisconnectCommandReceived: Self
pub const PutCommandReceived: Self
pub const GetCommandReceived: Self
pub const SetPathCommandReceived: Self
pub const AbortCommandReceived: Self
pub const Error: Self
Trait Implementations§
Source§impl Clone for OBEXSessionEventTypes
impl Clone for OBEXSessionEventTypes
Source§fn clone(&self) -> OBEXSessionEventTypes
fn clone(&self) -> OBEXSessionEventTypes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OBEXSessionEventTypes
impl Debug for OBEXSessionEventTypes
Source§impl Encode for OBEXSessionEventTypes
Available on crate feature objc2 only.
impl Encode for OBEXSessionEventTypes
objc2 only.Source§impl Hash for OBEXSessionEventTypes
impl Hash for OBEXSessionEventTypes
Source§impl Ord for OBEXSessionEventTypes
impl Ord for OBEXSessionEventTypes
Source§fn cmp(&self, other: &OBEXSessionEventTypes) -> Ordering
fn cmp(&self, other: &OBEXSessionEventTypes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for OBEXSessionEventTypes
impl PartialEq for OBEXSessionEventTypes
Source§impl PartialOrd for OBEXSessionEventTypes
impl PartialOrd for OBEXSessionEventTypes
Source§impl RefEncode for OBEXSessionEventTypes
Available on crate feature objc2 only.
impl RefEncode for OBEXSessionEventTypes
objc2 only.