#[repr(u8)]pub enum OpCode {
Show 14 variants
Connect = 128,
Disconnect = 129,
Put = 2,
PutFinal = 130,
Get = 3,
GetFinal = 131,
Reserved = 4,
ReservedFinal = 132,
SetPath = 133,
Action = 6,
ActionFinal = 134,
Session = 135,
User(u8),
Abort = 255,
}
Variants§
Connect = 128
Disconnect = 129
Put = 2
PutFinal = 130
Get = 3
GetFinal = 131
Reserved = 4
ReservedFinal = 132
SetPath = 133
Action = 6
ActionFinal = 134
Session = 135
User(u8)
0x08 to 0x0F are reserved and not used in OBEX. 0x10 to 0x1f are user defined.
Abort = 255
Implementations§
Source§impl OpCode
impl OpCode
Sourcepub fn response_data_length(&self) -> usize
pub fn response_data_length(&self) -> usize
Returns the expected optional response data length (in bytes) if the Operation is expected to include response data. Returns 0 if the Operation is not expected to contain any data. See OBEX 1.5 Section 3.4 for more details on the specifics of the Operations.
Trait Implementations§
impl Copy for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl Freeze for OpCode
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)